summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-30 15:44:48 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-30 15:44:48 -0700
commit463e8a7516240e49706fd71bc9f84060d5f9b3a5 (patch)
treef3749ace2efde3e0522aec7ddbea45ea9f55402a /src
parent595ff465e5824d2ba82036b0316cd66ecbed2730 (diff)
downloadgem5-463e8a7516240e49706fd71bc9f84060d5f9b3a5.tar.xz
X86: Attach the "DIV" instruction implementation to the decoder.
--HG-- extra : convert_revision : 8aef1c8d1ced2db998ed0d31241cadc17e19eadd
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/isa/decoder/one_byte_opcodes.isa5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86/isa/decoder/one_byte_opcodes.isa b/src/arch/x86/isa/decoder/one_byte_opcodes.isa
index 3253c9fec..507f75bb8 100644
--- a/src/arch/x86/isa/decoder/one_byte_opcodes.isa
+++ b/src/arch/x86/isa/decoder/one_byte_opcodes.isa
@@ -521,7 +521,8 @@
0x3: Inst::NEG(Eb);
0x4: Inst::MUL_B(Eb);
0x5: Inst::IMUL_B(Eb);
- 0x6: div_Eb();
+ //This should be Eb, but it access the entire word value ax.
+ 0x6: Inst::DIV_B(Ew);
0x7: idiv_Eb();
}
//0x7: group3_Ev();
@@ -532,7 +533,7 @@
0x3: Inst::NEG(Ev);
0x4: Inst::MUL(Ev);
0x5: Inst::IMUL(Ev);
- 0x6: div_Ev();
+ 0x6: Inst::DIV(Ev);
0x7: idiv_Ev();
}
}