gem5
v20.0.0.2
|
#include <decoder.hh>
Public Member Functions | |
Decoder (ISA *isa=nullptr) | |
void | process () |
void | reset () |
void | moreBytes (const PCState &pc, Addr fetchPC, MachInst inst) |
bool | needMoreBytes () |
bool | instReady () |
void | takeOverFrom (Decoder *old) |
StaticInstPtr | decodeInst (ExtMachInst mach_inst) |
StaticInstPtr | decode (ExtMachInst mach_inst, Addr addr) |
Decode a machine instruction. More... | |
StaticInstPtr | decode (MipsISA::PCState &nextPC) |
Protected Attributes | |
ExtMachInst | emi |
bool | instDone |
Static Protected Attributes | |
static GenericISA::BasicDecodeCache | defaultCache |
A cache of decoded instruction objects. More... | |
Definition at line 42 of file decoder.hh.
|
inline |
Definition at line 50 of file decoder.hh.
|
inline |
Decode a machine instruction.
mach_inst | The binary instruction to decode. |
A | pointer to the corresponding StaticInst object. |
Definition at line 98 of file decoder.hh.
References GenericISA::BasicDecodeCache::decode().
Referenced by decode().
|
inline |
Definition at line 104 of file decoder.hh.
References decode(), and GenericISA::PCStateBase::instAddr().
StaticInstPtr MipsISA::Decoder::decodeInst | ( | ExtMachInst | mach_inst | ) |
|
inline |
Definition at line 80 of file decoder.hh.
References instDone.
Definition at line 67 of file decoder.hh.
References letoh().
|
inline |
Definition at line 74 of file decoder.hh.
|
inline |
Definition at line 54 of file decoder.hh.
|
inline |
Definition at line 59 of file decoder.hh.
|
inline |
Definition at line 85 of file decoder.hh.
|
staticprotected |
A cache of decoded instruction objects.
Definition at line 89 of file decoder.hh.
|
protected |
Definition at line 46 of file decoder.hh.
|
protected |
Definition at line 47 of file decoder.hh.
Referenced by instReady().