gem5
|
#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 | setContext (MiscReg _asi) |
void | takeOverFrom (Decoder *old) |
StaticInstPtr | decodeInst (ExtMachInst mach_inst) |
StaticInstPtr | decode (ExtMachInst mach_inst, Addr addr) |
Decode a machine instruction. More... | |
StaticInstPtr | decode (SparcISA::PCState &nextPC) |
Protected Attributes | |
ExtMachInst | emi |
bool | instDone |
MiscReg | asi |
Static Protected Attributes | |
static GenericISA::BasicDecodeCache | defaultCache |
A cache of decoded instruction objects. More... | |
Definition at line 43 of file decoder.hh.
|
inline |
Definition at line 52 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 114 of file decoder.hh.
References GenericISA::BasicDecodeCache::decode(), and defaultCache.
Referenced by decode().
|
inline |
Definition at line 120 of file decoder.hh.
References decode(), emi, GenericISA::PCStateBase::instAddr(), and instDone.
StaticInstPtr SparcISA::Decoder::decodeInst | ( | ExtMachInst | mach_inst | ) |
|
inline |
Definition at line 90 of file decoder.hh.
References instDone.
|
inline |
Definition at line 84 of file decoder.hh.
|
inline |
Definition at line 55 of file decoder.hh.
|
inline |
Definition at line 58 of file decoder.hh.
References instDone.
|
inline |
Definition at line 96 of file decoder.hh.
References asi.
|
inline |
Definition at line 101 of file decoder.hh.
|
protected |
Definition at line 49 of file decoder.hh.
Referenced by moreBytes(), and setContext().
|
staticprotected |
A cache of decoded instruction objects.
Definition at line 105 of file decoder.hh.
Referenced by decode().
|
protected |
Definition at line 47 of file decoder.hh.
Referenced by decode(), and moreBytes().
|
protected |
Definition at line 48 of file decoder.hh.
Referenced by decode(), instReady(), moreBytes(), and reset().