summaryrefslogtreecommitdiff
path: root/src/arch/x86/insts/microregop.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-17 18:12:33 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-17 18:12:33 -0700
commite524240d689a6341a53865e0911ad04d440c6683 (patch)
tree29f9df63ba07cc2da94501882439156d4548f4d0 /src/arch/x86/insts/microregop.cc
parent2e80f71dcd2367ceae00df88405deee66a68b9ca (diff)
downloadgem5-e524240d689a6341a53865e0911ad04d440c6683.tar.xz
Make disassembled x86 register indices reflect their size.
This doesn't handle high byte register accesses. It also highlights the fact that address size isn't actually being calculated, and that the size a microop uses needs to be overridable from the microassembly. --HG-- extra : convert_revision : d495ac4f5756dc55a5f71953ff6963b3c030e6cb
Diffstat (limited to 'src/arch/x86/insts/microregop.cc')
-rw-r--r--src/arch/x86/insts/microregop.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/x86/insts/microregop.cc b/src/arch/x86/insts/microregop.cc
index 3c60d7212..f4559d95f 100644
--- a/src/arch/x86/insts/microregop.cc
+++ b/src/arch/x86/insts/microregop.cc
@@ -165,11 +165,11 @@ namespace X86ISA
std::stringstream response;
printMnemonic(response, instMnem, mnemonic);
- printReg(response, dest);
+ printReg(response, dest, dataSize);
response << ", ";
- printReg(response, src1);
+ printReg(response, src1, dataSize);
response << ", ";
- printReg(response, src2);
+ printReg(response, src2, dataSize);
return response.str();
}
@@ -179,9 +179,9 @@ namespace X86ISA
std::stringstream response;
printMnemonic(response, instMnem, mnemonic);
- printReg(response, dest);
+ printReg(response, dest, dataSize);
response << ", ";
- printReg(response, src1);
+ printReg(response, src1, dataSize);
ccprintf(response, ", %#x", imm8);
return response.str();
}