diff options
author | robert <robert@FreeBSD.org> | 2002-02-26 10:13:35 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-02-26 10:13:35 +0000 |
commit | a3d52070880e115f522ee53be1b21889905c3b4b (patch) | |
tree | 859349bc75139ed47304b7bef6646ed8c5a2d8ae /usr.bin/doscmd | |
parent | 01103f42563904d9b698d890cd7cc84ac8579bd1 (diff) | |
download | FreeBSD-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.c | 1 |
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() |