Go to the documentation of this file.
29 #ifndef __ARCH_GENERIC_DECODE_CACHE_HH__
30 #define __ARCH_GENERIC_DECODE_CACHE_HH__
42 template <
typename Decoder,
typename EMI>
62 if (entry.inst && (entry.machInst == mach_inst))
65 entry.machInst = mach_inst;
67 auto iter =
instMap.find(mach_inst);
69 entry.inst = iter->second;
73 entry.inst =
decoder->decodeInst(mach_inst);
74 instMap[mach_inst] = entry.inst;
82 #endif // __ARCH_GENERIC_DECODE_CACHE_HH__
std::unordered_map< EMI, StaticInstPtr > InstMap
Hash for decoded instructions.
decode_cache::InstMap< EMI > instMap
A sparse map from an Addr to a Value, stored in page chunks.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
decode_cache::AddrMap< AddrMapEntry > decodePages
StaticInstPtr decode(Decoder *const decoder, EMI mach_inst, Addr addr)
Decode a machine instruction.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Generated on Thu Jul 28 2022 13:32:25 for gem5 by doxygen 1.8.17