The PC is not updated after every instruction in QEMU; instead it is updated at the end of each block. If you want to see how the update is done, you can look at the gen_jmp_im function in target-i386/translate.c.
-Brendan On Tue, Nov 26, 2013 at 12:51 PM, Mar Tsan <martsa...@gmail.com> wrote: > I'm a master's student and I' ve taken up a project for which I must find > where the program counter update is performed *in the source code*. I've > built the Android source from the git repositories and I'm working with the > Android Emulator (not Qemu per se). I'm currently searching in the > target-i386/translate.c file. Can someone point me in the right direction?