summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-08-07 15:31:36 -0700
committerGabe Black <gblack@eecs.umich.edu>2007-08-07 15:31:36 -0700
commit0fd999ca403f427ab5278bf69b005ed1ce851876 (patch)
tree71b8758cd0140466c1a52ff47d1d4ccc6b92e4b5 /src/cpu
parente85144bff21445ef19864c38be87055045d95c35 (diff)
parent1db9e1fb8f8921a599a0b2933d682a20f97abdb8 (diff)
downloadgem5-0fd999ca403f427ab5278bf69b005ed1ce851876.tar.xz
Merge with head.
--HG-- extra : convert_revision : ae7b3df573368c29a66d5b027ecad9ffb3a99104
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.