DOSEMU reaches version 1.4.0
Posted May 10, 2007 6:28 UTC (Thu) by
bartoldeman (subscriber, #4205)
Parent article:
DOSEMU reaches version 1.4.0
Thanks for the review and the bug report...
Yes, the CPU emulator is still not as widely tested as many other parts of DOSEMU. But you can run Larry using $_cpu_emu="vm86sim" or like this
dosemu__cpu_emu=vm86sim dosemu
Which gives a simulated CPU instead of JIT translation, a truely 80s experience with 286 (perhaps 386)-style speeds. The following one-liner also fixes the problem (beware of tabs and line wraps).
--- src/emu-i386/simx86/sigsegv.c (revision 1769)
+++ src/emu-i386/simx86/sigsegv.c (working copy)
@@ -510,7 +510,7 @@
* linked by Cpatch will do it */
/* ACH: we can set up a data patch for code
* which has not yet been executed! */
- if (InCompiledCode && Cpatch(scp))
+ if (InCompiledCode && !e_querymark((void *)_cr2) && Cpatch(scp))
return 1;
/* We HAVE to invalidate all the code in the page
* if the page is going to be unprotected */
(
Log in to post comments)