summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-06-08 17:06:34 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-06-08 17:06:34 +0000
commit658df56bf3faba0d3bbd2b46c2835cb4ee7c6a17 (patch)
treea6b028a34adc4de493de7e6834768cc7db9645ef
parentf53b130382a2e1eb45f61304e7a322ead13a44db (diff)
downloadgem5-658df56bf3faba0d3bbd2b46c2835cb4ee7c6a17.tar.xz
Clean things up a little.
--HG-- extra : convert_revision : 62ad0839847db85738054da6f7da8a956b24143e
-rw-r--r--src/arch/x86/isa/specialize.isa10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/arch/x86/isa/specialize.isa b/src/arch/x86/isa/specialize.isa
index de77f130b..79b785ecf 100644
--- a/src/arch/x86/isa/specialize.isa
+++ b/src/arch/x86/isa/specialize.isa
@@ -129,7 +129,6 @@ let {{
# This needs to refer to memory, but we'll fill in the details
# later. It needs to take into account unaligned memory
# addresses.
- # code = "GenFault #${new UnimpInstFault}#\n" + code
print "%0"
memTypes = copy.copy(opTypes)
memTypes.pop(0)
@@ -137,14 +136,12 @@ let {{
return doSplitDecode(Name, specializeInst, "MODRM_MOD",
{"3" : (regTypes, memEnv)}, (memTypes, memEnv))
elif opType.tag in ("I", "J"):
- # Immediates are already in the instruction, so don't leave in
- # those parameters
+ # Immediates
print "IMMEDIATE"
elif opType.tag == "M":
# This needs to refer to memory, but we'll fill in the details
# later. It needs to take into account unaligned memory
# addresses.
- #code = "GenFault #${new UnimpInstFault}#\n" + code
print "%0"
elif opType.tag in ("PR", "R", "VR"):
# There should probably be a check here to verify that mod
@@ -154,8 +151,7 @@ let {{
raise Exception, "Unrecognized tag %s." % opType.tag
opTypes.pop(0)
- # At this point, we've built up "code" to have all the necessary extra
- # instructions needed to implement whatever types of operands were
- # specified. Now we'll assemble it it into a StaticInst.
+ # Generate code to return a macroop of the given name which will
+ # operate in the given "emulation environment"
return genMacroop(Name, env)
}};