Make store microops actually store instead of load.
authorGabe Black <gblack@eecs.umich.edu>
Thu, 19 Jul 2007 00:45:06 +0000 (17:45 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Thu, 19 Jul 2007 00:45:06 +0000 (17:45 -0700)
--HG--
extra : convert_revision : fe90f8adc96dd0e680cfa45e4c510a906046ae3d

src/arch/x86/isa/microops/ldstop.isa

index 2e98a42bf945df69f9647963190e7b923ee14fc5..9ceaaac198759092fe4ec16ed4877cdb511ff572 100644 (file)
@@ -404,13 +404,13 @@ let {{
 
         class StoreOp(LdStOp):
             def __init__(self, data, segment, addr, disp = 0):
-                super(LoadOp, self).__init__(data, segment, addr, disp)
+                super(StoreOp, self).__init__(data, segment, addr, disp)
                 self.className = Name
                 self.mnemonic = name
 
         microopClasses[name] = StoreOp
 
-    defineMicroLoadOp('St', 'Mem = Data;')
+    defineMicroStoreOp('St', 'Mem = Data;')
 
     iop = InstObjParams("lea", "Lea", 'X86ISA::LdStOp',
             {"code": "Data = merge(Data, EA, dataSize);", "ea_code": calculateEA})