StaticInst: Fix decode cache initialization. Cache functionality was negated.
--HG-- extra : convert_revision : fe313718dba8236f3e9bceb49f8c5efccfc06a06
This commit is contained in:
parent
cae8d20633
commit
acac5580f2
|
@ -353,9 +353,7 @@ class StaticInst : public StaticInstBase
|
||||||
StaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
|
StaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
|
||||||
: StaticInstBase(__opClass),
|
: StaticInstBase(__opClass),
|
||||||
machInst(_machInst), mnemonic(_mnemonic), cachedDisassembly(0)
|
machInst(_machInst), mnemonic(_mnemonic), cachedDisassembly(0)
|
||||||
{
|
{ }
|
||||||
memset(&recentDecodes, 0, 2 * sizeof(cacheElement));
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -459,6 +457,9 @@ class StaticInst : public StaticInstBase
|
||||||
struct cacheElement {
|
struct cacheElement {
|
||||||
Addr page_addr;
|
Addr page_addr;
|
||||||
AddrDecodePage *decodePage;
|
AddrDecodePage *decodePage;
|
||||||
|
|
||||||
|
cacheElement()
|
||||||
|
:decodePage(NULL) { }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
/// An array of recently decoded instructions.
|
/// An array of recently decoded instructions.
|
||||||
|
|
Loading…
Reference in a new issue