> But how would you do that?  Once you switch to running on the
> real CPU, you lose all control and you no longer have the 
> ability to decide when to switch back to emulation.

If the code to be run natively consists of exactly one subroutine call
(from the entry point to the return, including any nested calls) then
just change the return address to be somewhere in the emulator.
This technique of mixing emulated and non-emulated code is at least
53 years old.

-- 

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to