Re: [Qemu-devel] How is address of helper function for slow path calculated ?

2014-02-26 Thread Xuebing wang
Somebody may concisely refer tcg as a disassembler + a compiler (assembler). I guess your question is how to calculate the value of i386 register (%r10 in your case, the address for the helper function). I might be wrong, my understanding is that it is calculated by the assembler (to generate

Re: [Qemu-devel] How is address of helper function for slow path calculated ?

2014-02-26 Thread Peter Maydell
On 26 February 2014 13:46, Gaurav Sharma wrote: > Thanks Peter, > So, the following instruction only make up the call stack for the function > call : > > 0x2aaade72d120: mov%r14,%rdi > 0x2aaade72d123: xor%edx,%edx > 0x2aaade72d125: lea-0x42(%rip),%rcx# 0x2aaade72d0ea This i

Re: [Qemu-devel] How is address of helper function for slow path calculated ?

2014-02-26 Thread Gaurav Sharma
Thanks Peter, So, the following instruction only make up the call stack for the function call : 0x2aaade72d120: mov%r14,%rdi 0x2aaade72d123: xor%edx,%edx 0x2aaade72d125: lea-0x42(%rip),%rcx# 0x2aaade72d0ea Thanks, Gaurav On Wed, Feb 26, 2014 at 6:44 PM, Peter Maydell wrote

Re: [Qemu-devel] How is address of helper function for slow path calculated ?

2014-02-26 Thread Peter Maydell
On 26 February 2014 13:04, Gaurav Sharma wrote: > Hi, > I have been trying to trace the for how address translation is done for any > load/store instructions. I was trying to emulate arm on an x86-64 machine. > However, i need some clarifications : > 1. During the slow path, qemu uses helper funct

[Qemu-devel] How is address of helper function for slow path calculated ?

2014-02-26 Thread Gaurav Sharma
Hi, I have been trying to trace the for how address translation is done for any load/store instructions. I was trying to emulate arm on an x86-64 machine. However, i need some clarifications : 1. During the slow path, qemu uses helper functions to translate address. 2. This is done by calling the f