Re: [Qemu-devel] TCG jumping inside translation block

2013-08-21 Thread Richard Henderson
On 08/21/2013 06:02 AM, Schrober wrote: > Is qemu just recompiling the block again when it encounters a different entry > point to an already translated block? I am currently starring at the code in > translate-all.c and cpu-exec.c and don't seem to find the right part of the > code which would

Re: [Qemu-devel] TCG jumping inside translation block

2013-08-21 Thread Peter Maydell
On 21 August 2013 14:02, Schrober wrote: > Is qemu just recompiling the block again when it encounters a different entry > point to an already translated block? Yes. We only use a previously translated block if it matches all of: * starts at the PC we want to execute * same flags (CPU-specific,

[Qemu-devel] TCG jumping inside translation block

2013-08-21 Thread Schrober
Hi, I am currently trying to understand how the tcg stuff works from the outside based on some real basic, imaginary processor instruction set. So for example there is following code (each line is one instruction of the processor): i1: set r1, 123 i2: add r1, r1, 456 i3: foobar The foobar ins