gem5
v20.1.0.0
|
#include <decoder.hh>
Public Member Functions | |
Decoder (ISA *isa=nullptr) | |
void | process () |
void | reset () |
void | moreBytes (const PCState &pc, Addr fetchPC, MachInst inst) |
void | moreBytes (MachInst machInst) |
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 (PowerISA::PCState &nextPC) |
Public Member Functions inherited from InstDecoder | |
virtual StaticInstPtr | fetchRomMicroop (MicroPC micropc, StaticInstPtr curMacroop) |
Protected Attributes | |
ExtMachInst | emi |
bool | instDone |
Static Protected Attributes | |
static GenericISA::BasicDecodeCache | defaultCache |
A cache of decoded instruction objects. More... | |
Definition at line 41 of file decoder.hh.
|
inline |
Definition at line 49 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 106 of file decoder.hh.
References addr, GenericISA::BasicDecodeCache::decode(), and defaultCache.
Referenced by decode().
|
inline |
Definition at line 112 of file decoder.hh.
StaticInstPtr PowerISA::Decoder::decodeInst | ( | ExtMachInst | mach_inst | ) |
|
inline |
Definition at line 88 of file decoder.hh.
References instDone.
Definition at line 67 of file decoder.hh.
References betoh(), emi, and instDone.
Referenced by moreBytes().
|
inline |
Definition at line 76 of file decoder.hh.
References moreBytes().
|
inline |
Definition at line 82 of file decoder.hh.
|
inline |
Definition at line 54 of file decoder.hh.
|
inline |
Definition at line 59 of file decoder.hh.
References instDone.
|
inline |
Definition at line 93 of file decoder.hh.
|
staticprotected |
A cache of decoded instruction objects.
Definition at line 97 of file decoder.hh.
Referenced by decode().
|
protected |
Definition at line 45 of file decoder.hh.
Referenced by decode(), and moreBytes().
|
protected |
Definition at line 46 of file decoder.hh.
Referenced by decode(), instReady(), moreBytes(), and reset().