|
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 (PowerISA::PCState &nextPC) |
Public Member Functions inherited from gem5::InstDecoder | |
| 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 |
| bool | instDone |
Protected Attributes inherited from gem5::InstDecoder | |
| 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 46 of file decoder.hh.
|
inline |
Definition at line 54 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 101 of file decoder.hh.
References gem5::X86ISA::addr, defaultCache, DPRINTF, and gem5::PowerISA::si.
Referenced by decode().
|
inline |
Definition at line 111 of file decoder.hh.
References decode(), emi, gem5::GenericISA::PCStateBase::instAddr(), and instDone.
|
protected |
|
inline |
Definition at line 83 of file decoder.hh.
References instDone.
Definition at line 70 of file decoder.hh.
References emi, gem5::gtoh(), instDone, and gem5::MipsISA::pc.
|
inline |
Definition at line 77 of file decoder.hh.
|
inline |
Definition at line 57 of file decoder.hh.
|
inline |
Definition at line 62 of file decoder.hh.
References instDone.
|
inline |
Definition at line 88 of file decoder.hh.
|
friend |
Definition at line 93 of file decoder.hh.
|
staticprotected |
A cache of decoded instruction objects.
Definition at line 92 of file decoder.hh.
Referenced by decode().
|
protected |
Definition at line 50 of file decoder.hh.
Referenced by decode(), and moreBytes().
|
protected |
Definition at line 51 of file decoder.hh.
Referenced by decode(), instReady(), moreBytes(), and reset().