summaryrefslogtreecommitdiff
path: root/src/cpu/o3/fetch.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-12 15:24:27 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-12 15:24:27 -0400
commit6d120b7912e554aaa44e28d1133f4bbfd9d04f66 (patch)
treef0339a87984f0927afa88edcc0561d0c69be35de /src/cpu/o3/fetch.hh
parent0b0cb2bca71acdab4a30acc639509030631f9dfd (diff)
downloadgem5-6d120b7912e554aaa44e28d1133f4bbfd9d04f66.tar.xz
Track the PC of the cache data stored in fetch so it doesn't access memory multiple times if information is already in fetch.
--HG-- extra : convert_revision : 00b160b255e998cf99286bcc21894110c7642624
Diffstat (limited to 'src/cpu/o3/fetch.hh')
-rw-r--r--src/cpu/o3/fetch.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/o3/fetch.hh b/src/cpu/o3/fetch.hh
index 85654cebc..0331cf07f 100644
--- a/src/cpu/o3/fetch.hh
+++ b/src/cpu/o3/fetch.hh
@@ -404,6 +404,9 @@ class DefaultFetch
/** The cache line being fetched. */
uint8_t *cacheData[Impl::MaxThreads];
+ /** The PC of the cacheline that has been loaded. */
+ Addr cacheDataPC[Impl::MaxThreads];
+
/** Size of instructions. */
int instSize;