gem5
v21.1.0.2
|
#include <decoder.hh>
Public Member Functions | |
Decoder (ISA *isa=nullptr) | |
void | process () |
void | reset () |
void | moreBytes (const PCState &pc, Addr fetchPC) |
bool | needMoreBytes () |
bool | instReady () |
void | takeOverFrom (Decoder *old) |
StaticInstPtr | decode (MipsISA::PCState &nextPC) |
![]() | |
template<typename MoreBytesType > | |
InstDecoder (MoreBytesType *mb_buf) | |
virtual StaticInstPtr | fetchRomMicroop (MicroPC micropc, StaticInstPtr curMacroop) |
void * | moreBytesPtr () const |
size_t | moreBytesSize () const |
Addr | pcMask () const |
Protected Member Functions | |
StaticInstPtr | decodeInst (ExtMachInst mach_inst) |
StaticInstPtr | decode (ExtMachInst mach_inst, Addr addr) |
Decode a machine instruction. More... | |
Protected Attributes | |
ExtMachInst | emi |
uint32_t | machInst |
bool | instDone |
![]() | |
void * | _moreBytesPtr |
size_t | _moreBytesSize |
Addr | _pcMask |
Static Protected Attributes | |
static GenericISA::BasicDecodeCache< Decoder, ExtMachInst > | defaultCache |
A cache of decoded instruction objects. More... | |
Friends | |
class | GenericISA::BasicDecodeCache< Decoder, ExtMachInst > |
Definition at line 47 of file decoder.hh.
|
inline |
Definition at line 56 of file decoder.hh.
|
inlineprotected |
Decode a machine instruction.
mach_inst | The binary instruction to decode. |
A | pointer to the corresponding StaticInst object. |
Definition at line 104 of file decoder.hh.
References gem5::X86ISA::addr, defaultCache, DPRINTF, and gem5::ArmISA::si.
Referenced by decode().
|
inline |
Definition at line 114 of file decoder.hh.
References decode(), emi, gem5::GenericISA::PCStateBase::instAddr(), and instDone.
|
protected |
|
inline |
Definition at line 86 of file decoder.hh.
References instDone.
Definition at line 73 of file decoder.hh.
References emi, instDone, gem5::letoh(), and machInst.
|
inline |
Definition at line 80 of file decoder.hh.
|
inline |
Definition at line 60 of file decoder.hh.
|
inline |
Definition at line 65 of file decoder.hh.
References instDone.
|
inline |
Definition at line 91 of file decoder.hh.
|
friend |
Definition at line 96 of file decoder.hh.
|
staticprotected |
A cache of decoded instruction objects.
Definition at line 95 of file decoder.hh.
Referenced by decode().
|
protected |
Definition at line 51 of file decoder.hh.
Referenced by decode(), and moreBytes().
|
protected |
Definition at line 53 of file decoder.hh.
Referenced by decode(), instReady(), moreBytes(), and reset().
|
protected |
Definition at line 52 of file decoder.hh.
Referenced by moreBytes().