summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/microops/limmop.isa
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-07-30 13:23:33 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-07-30 13:23:33 -0700
commitd8beeff324f0d47927716e0081fe4a72c56601f7 (patch)
treea3eb9393a591cf73d88f98beb8076c3f3106bc75 /src/arch/x86/isa/microops/limmop.isa
parent9b5421dcbabb3e085edca359d8ce29978594dd98 (diff)
downloadgem5-d8beeff324f0d47927716e0081fe4a72c56601f7.tar.xz
X86: Make disassembly use the final register index. Add bits to indicate whether or not register indexes should be "folded".
--HG-- extra : convert_revision : 4b46e71ca91e480f6e1662b7f37b75240d6598e9
Diffstat (limited to 'src/arch/x86/isa/microops/limmop.isa')
-rw-r--r--src/arch/x86/isa/microops/limmop.isa4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/isa/microops/limmop.isa b/src/arch/x86/isa/microops/limmop.isa
index ec68c36dc..c357c1d6c 100644
--- a/src/arch/x86/isa/microops/limmop.isa
+++ b/src/arch/x86/isa/microops/limmop.isa
@@ -78,6 +78,7 @@ def template MicroLimmOpDeclare {{
const RegIndex dest;
const uint64_t imm;
const uint8_t dataSize;
+ RegIndex foldOBit;
void buildMe();
std::string generateDisassembly(Addr pc,
@@ -104,7 +105,7 @@ def template MicroLimmOpDisassembly {{
std::stringstream response;
printMnemonic(response, instMnem, mnemonic);
- printReg(response, dest, dataSize);
+ printDestReg(response, 0, dataSize);
response << ", ";
ccprintf(response, "%#x", imm);
return response.str();
@@ -115,6 +116,7 @@ def template MicroLimmOpConstructor {{
inline void %(class_name)s::buildMe()
{
+ foldOBit = (dataSize == 1 && !machInst.rex.present) ? 1 << 6 : 0;
%(constructor)s;
}