On 17 Apr 2005, at 12:27, Paul Brook wrote:

Unfortunately it's not that simple. The push instruction may cause an
exception. Whatever optimizations you apply you've got to make sure that the
guest state is still consistent when the exception occurs.

If we just concatenate the C code of the two procedures, won't gcc take care of that for us? Or could scheduling mess this up? Maybe there's a switch to avoid having it reschedule instructions in a way that side effects happen in a different order? (that would still give us the advantage of CSE and peephole optimizations)



Jonas



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to