summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-02-26 10:13:35 +0000
committerrobert <robert@FreeBSD.org>2002-02-26 10:13:35 +0000
commita3d52070880e115f522ee53be1b21889905c3b4b (patch)
tree859349bc75139ed47304b7bef6646ed8c5a2d8ae /usr.bin/doscmd
parent01103f42563904d9b698d890cd7cc84ac8579bd1 (diff)
downloadFreeBSD-src-a3d52070880e115f522ee53be1b21889905c3b4b.zip
FreeBSD-src-a3d52070880e115f522ee53be1b21889905c3b4b.tar.gz
- Emulate instructions prefixed with 'rep' correctly: set the CX
register to zero. Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> PR: 35147
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r--usr.bin/doscmd/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/doscmd/cpu.c b/usr.bin/doscmd/cpu.c
index f69af86..56f5f16 100644
--- a/usr.bin/doscmd/cpu.c
+++ b/usr.bin/doscmd/cpu.c
@@ -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()
OpenPOWER on IntegriCloud