summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-03-01 22:42:18 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-03-01 22:42:18 -0800
commit72d35701e9842a454ea0bd1e4546d161c3024f93 (patch)
treee24e0f4e99c8fae4dd6d964a157ac0392f0aefba /src/arch
parent3a10b200f7d663ebc1fecc7449871a2cd356e815 (diff)
downloadgem5-72d35701e9842a454ea0bd1e4546d161c3024f93.tar.xz
X86: Mark prefetches as such in their instruction and request flags.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/isa/microops/ldstop.isa4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/isa/microops/ldstop.isa b/src/arch/x86/isa/microops/ldstop.isa
index cd649d644..86c2dccf7 100644
--- a/src/arch/x86/isa/microops/ldstop.isa
+++ b/src/arch/x86/isa/microops/ldstop.isa
@@ -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,