summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorVincentius Robby <acolyte@umich.edu>2007-08-04 14:25:17 -0400
committerVincentius Robby <acolyte@umich.edu>2007-08-04 14:25:17 -0400
commitacac5580f211809927f58d99f6dfd034a8dacd30 (patch)
tree947bdc41083d20ed230a43208b0ef9fb97fc2baf /src/cpu
parentcae8d20633c0f43fdae23576adfb894284a7ee86 (diff)
downloadgem5-acac5580f211809927f58d99f6dfd034a8dacd30.tar.xz
StaticInst: Fix decode cache initialization. Cache functionality was negated.
--HG-- extra : convert_revision : fe313718dba8236f3e9bceb49f8c5efccfc06a06
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/static_inst.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh
index f32b61ee5..2e1ebd766 100644
--- a/src/cpu/static_inst.hh
+++ b/src/cpu/static_inst.hh
@@ -353,9 +353,7 @@ class StaticInst : public StaticInstBase
StaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
: StaticInstBase(__opClass),
machInst(_machInst), mnemonic(_mnemonic), cachedDisassembly(0)
- {
- memset(&recentDecodes, 0, 2 * sizeof(cacheElement));
- }
+ { }
public:
@@ -459,6 +457,9 @@ class StaticInst : public StaticInstBase
struct cacheElement {
Addr page_addr;
AddrDecodePage *decodePage;
+
+ cacheElement()
+ :decodePage(NULL) { }
} ;
/// An array of recently decoded instructions.