From 658df56bf3faba0d3bbd2b46c2835cb4ee7c6a17 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 8 Jun 2007 17:06:34 +0000 Subject: Clean things up a little. --HG-- extra : convert_revision : 62ad0839847db85738054da6f7da8a956b24143e --- src/arch/x86/isa/specialize.isa | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/arch/x86/isa/specialize.isa') 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) }}; -- cgit v1.2.3