On 10/24/2011 08:21 PM, Michael Karcher wrote: > If you know the 8086 architecture by heart, and also know the qemu code, > you could get the idea that there might be an emulation bug causing the > premature acceptance of the second interrupt (would it be accepted after > cleaning up the stack frames, there would be no problem), namely that > after an IRET or STI instruction, interrupts are only accepted after one > further instruction - and only if they are still enabled.
This is true for STI (and only if interrupts were previously disabled), not IRET. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.