From: Vincentius Robby Date: Sat, 4 Aug 2007 18:25:17 +0000 (-0400) Subject: StaticInst: Fix decode cache initialization. Cache functionality was negated. X-Git-Tag: m5_2.0_beta4~157^2~15^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acac5580f211809927f58d99f6dfd034a8dacd30;p=gem5.git StaticInst: Fix decode cache initialization. Cache functionality was negated. --HG-- extra : convert_revision : fe313718dba8236f3e9bceb49f8c5efccfc06a06 --- 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.