summaryrefslogtreecommitdiff
path: root/src/arch/x86/insts/microldstop.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/microldstop.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/microldstop.cc')
-rw-r--r--src/arch/x86/insts/microldstop.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/insts/microldstop.cc b/src/arch/x86/insts/microldstop.cc
index 330a1b7bd..8a52ad932 100644
--- a/src/arch/x86/insts/microldstop.cc
+++ b/src/arch/x86/insts/microldstop.cc
@@ -66,13 +66,13 @@ namespace X86ISA
std::stringstream response;
printMnemonic(response, instMnem, mnemonic);
- printReg(response, data);
+ printReg(response, data, dataSize);
response << ", ";
printSegment(response, segment);
ccprintf(response, ":[%d*", scale);
- printReg(response, index);
+ printReg(response, index, addressSize);
response << " + ";
- printReg(response, base);
+ printReg(response, base, addressSize);
ccprintf(response, " + %#x]", disp);
return response.str();
}