diff options
author | Vincentius Robby <acolyte@umich.edu> | 2007-08-04 14:25:17 -0400 |
---|---|---|
committer | Vincentius Robby <acolyte@umich.edu> | 2007-08-04 14:25:17 -0400 |
commit | acac5580f211809927f58d99f6dfd034a8dacd30 (patch) | |
tree | 947bdc41083d20ed230a43208b0ef9fb97fc2baf /src/cpu | |
parent | cae8d20633c0f43fdae23576adfb894284a7ee86 (diff) | |
download | gem5-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.hh | 7 |
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. |