X86: Mark prefetches as such in their instruction and request flags.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 2 Mar 2011 06:42:18 +0000 (22:42 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 2 Mar 2011 06:42:18 +0000 (22:42 -0800)
src/arch/x86/isa/microops/ldstop.isa

index cd649d64474d2a8161a51bdfb95efe8701ccac57..86c2dccf7a725b798f91e56038ad1ffcb6cee8e1 100644 (file)
@@ -282,8 +282,10 @@ let {{
             self.memFlags = baseFlags
             if atCPL0:
                 self.memFlags += " | (CPL0FlagBit << FlagShift)"
+            self.instFlags = ""
             if prefetch:
                 self.memFlags += " | Request::PREFETCH"
+                self.instFlags += " | StaticInst::IsDataPrefetch"
             self.memFlags += " | (machInst.legacy.addr ? " + \
                              "(AddrSizeFlagBit << FlagShift) : 0)"
 
@@ -293,7 +295,7 @@ let {{
                     %(disp)s, %(segment)s, %(data)s,
                     %(dataSize)s, %(addressSize)s, %(memFlags)s)''' % {
                 "class_name" : self.className,
-                "flags" : self.microFlagsText(microFlags),
+                "flags" : self.microFlagsText(microFlags) + self.instFlags,
                 "scale" : self.scale, "index" : self.index,
                 "base" : self.base,
                 "disp" : self.disp,