From: Gabe Black Date: Wed, 13 Jun 2007 18:01:23 +0000 (+0000) Subject: Fix the immediate version of register operations, and get their name to show up corre... X-Git-Tag: m5_2.0_beta4~357 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc13db857861ed1a52d84790d64ab6af233f4833;p=gem5.git Fix the immediate version of register operations, and get their name to show up correctly. --HG-- extra : convert_revision : 9fc36b99c9027e35f22983d5d1e22c940fa093de --- diff --git a/src/arch/x86/isa/microops/regop.isa b/src/arch/x86/isa/microops/regop.isa index c2aa27b67..a99194c5e 100644 --- a/src/arch/x86/isa/microops/regop.isa +++ b/src/arch/x86/isa/microops/regop.isa @@ -231,11 +231,10 @@ let {{ self.ext = 0 def getAllocator(self, *microFlags): - allocator = '''new %(class_name)s(machInst, "%(mnemonic)s" + allocator = '''new %(class_name)s(machInst, mnemonic %(flags)s, %(src1)s, %(src2)s, %(dest)s, %(setStatus)s, %(dataSize)s, %(ext)s)''' % { "class_name" : self.className, - "mnemonic" : self.mnemonic, "flags" : self.microFlagsText(microFlags), "src1" : self.src1, "src2" : self.src2, "dest" : self.dest, @@ -245,20 +244,19 @@ let {{ return allocator class RegOpImm(X86Microop): - def __init__(self, dest, src1, imm): + def __init__(self, dest, src1, imm8): self.dest = dest self.src1 = src1 - self.imm = imm + self.imm8 = imm8 self.setStatus = False self.dataSize = 1 self.ext = 0 def getAllocator(self, *microFlags): - allocator = '''new %(class_name)s(machInst, "%(mnemonic)s" + allocator = '''new %(class_name)s(machInst, mnemonic %(flags)s, %(src1)s, %(imm8)s, %(dest)s, %(setStatus)s, %(dataSize)s, %(ext)s)''' % { "class_name" : self.className, - "mnemonic" : self.mnemonic, "flags" : self.microFlagsText(microFlags), "src1" : self.src1, "imm8" : self.imm8, "dest" : self.dest, @@ -318,7 +316,7 @@ let {{ self.className = Name + "Imm" self.mnemonic = name + "i" - microopClasses[name + "i"] = RegOpChild + microopClasses[name + "i"] = RegOpImmChild defineMicroRegOp('Add', 'DestReg = merge(DestReg, SrcReg1 + op2, dataSize)') #Needs to set OF,CF,SF defineMicroRegOp('Or', 'DestReg = merge(DestReg, SrcReg1 | op2, dataSize)')