- Emulate instructions prefixed with 'rep' correctly: set the CX

register to zero.

Submitted by:	Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
PR:		35147
This commit is contained in:
Robert Drehmel 2002-02-26 10:13:35 +00:00
parent 4d79812a7c
commit b48d8537aa

View File

@ -276,6 +276,7 @@ emu_instr(regcontext_t *REGS)
R_IP = --ip; /* Move IP back to the 'rep' instruction. */
return -1;
}
R_CX = 0;
break;
default:
/* Unknown instruction, get out of here and let trap.c:sigbus()