From 8014584c88e80efee6c34e2510c78abff24eb1b1 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 7 Jun 2011 06:55:01 +0000 Subject: [PATCH] i286 - Fix for Phar Lap and Borland 16-bit DPMI servers. [Carl] --- src/emu/cpu/i86/instr86.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/cpu/i86/instr86.c b/src/emu/cpu/i86/instr86.c index 8d477125627..f05daf8f710 100644 --- a/src/emu/cpu/i86/instr86.c +++ b/src/emu/cpu/i86/instr86.c @@ -2813,6 +2813,9 @@ static void PREFIX(_sti)(i8086_state *cpustate) /* Opcode 0xfb */ #ifndef I80186 static void PREFIX86(_hlt)(i8086_state *cpustate) /* Opcode 0xf4 */ { +#ifdef I80286 + if(PM && (CPL!=0)) throw TRAP(GENERAL_PROTECTION_FAULT,0); +#endif cpustate->halted=1; ICOUNT = 0; }