Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Jack Biggs
Hi Richard, thanks for your help. Which instruction, then, I should add my gen_helper to in order for it to be called at the end of each basic block, as I've previously stated? Is there a way I can generically have this change apply to every target? Jack On 05/30/2014 06:25 PM, Richard

Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Alex Bennée
Jack Biggs writes: Hi Richard, thanks for your help. Which instruction, then, I should add my gen_helper to in order for it to be called at the end of each basic block, as I've previously stated? Is there a way I can generically have this change apply to every target? Jack On

Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Jack Biggs
When you say arbitrary code what do you mean? Are you wanting to put backend specific code there or a common post-amble of tcg ops? Can you give a bit more detail about your use case? I'm trying to add a clock-synchronization library so that I can have two (or more) instances of QEMU run in a

Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Peter Maydell
On 2 June 2014 11:15, Jack Biggs john.bi...@epfl.ch wrote: When you say arbitrary code what do you mean? Are you wanting to put backend specific code there or a common post-amble of tcg ops? Can you give a bit more detail about your use case? I'm trying to add a clock-synchronization library

Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Jack Biggs
Hi Peter, This is not a problem for now, the main reason we wanted to have this at the end is to potentially trace load / stores in the future. How would you recommend integrating this into icount? Just wanting to make sure I don't run into anything unexpected. Regards, Jack On

Re: [Qemu-devel] Question about gen_jmp_tb

2014-06-02 Thread Peter Maydell
On 2 June 2014 11:53, Jack Biggs john.bi...@epfl.ch wrote: This is not a problem for now, the main reason we wanted to have this at the end is to potentially trace load / stores in the future. How would you recommend integrating this into icount? Just wanting to make sure I don't run into

[Qemu-devel] Question about gen_jmp_tb

2014-05-30 Thread Jack Biggs
Hi all, I'm trying to add some arbitrary code to the end of each translation block, and I wanted to confirm my suspicion that each translation block ends in a jmp instruction, and that each translation block ends (or jumps to another TB) with the call to gen_jmp_tb. My guest is i386, but if

Re: [Qemu-devel] Question about gen_jmp_tb

2014-05-30 Thread Richard Henderson
On 05/30/2014 01:56 AM, Jack Biggs wrote: Hi all, I'm trying to add some arbitrary code to the end of each translation block, and I wanted to confirm my suspicion that each translation block ends in a jmp instruction, and that each translation block ends (or jumps to another TB) with