gem5  v21.1.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
gem5::PowerISA::Decoder Class Reference

#include <decoder.hh>

Inheritance diagram for gem5::PowerISA::Decoder:
gem5::InstDecoder

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, ExtMachInstdefaultCache
 A cache of decoded instruction objects. More...
 

Friends

class GenericISA::BasicDecodeCache< Decoder, ExtMachInst >
 

Detailed Description

Definition at line 46 of file decoder.hh.

Constructor & Destructor Documentation

◆ Decoder()

gem5::PowerISA::Decoder::Decoder ( ISA isa = nullptr)
inline

Definition at line 54 of file decoder.hh.

Member Function Documentation

◆ decode() [1/2]

StaticInstPtr gem5::PowerISA::Decoder::decode ( ExtMachInst  mach_inst,
Addr  addr 
)
inlineprotected

Decode a machine instruction.

Parameters
mach_instThe binary instruction to decode.
Return values
Apointer 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().

◆ decode() [2/2]

StaticInstPtr gem5::PowerISA::Decoder::decode ( PowerISA::PCState nextPC)
inline

Definition at line 111 of file decoder.hh.

References decode(), emi, gem5::GenericISA::PCStateBase::instAddr(), and instDone.

◆ decodeInst()

StaticInstPtr gem5::PowerISA::Decoder::decodeInst ( ExtMachInst  mach_inst)
protected

◆ instReady()

bool gem5::PowerISA::Decoder::instReady ( )
inline

Definition at line 83 of file decoder.hh.

References instDone.

◆ moreBytes()

void gem5::PowerISA::Decoder::moreBytes ( const PCState pc,
Addr  fetchPC 
)
inline

Definition at line 70 of file decoder.hh.

References emi, gem5::gtoh(), instDone, and gem5::MipsISA::pc.

◆ needMoreBytes()

bool gem5::PowerISA::Decoder::needMoreBytes ( )
inline

Definition at line 77 of file decoder.hh.

◆ process()

void gem5::PowerISA::Decoder::process ( )
inline

Definition at line 57 of file decoder.hh.

◆ reset()

void gem5::PowerISA::Decoder::reset ( )
inline

Definition at line 62 of file decoder.hh.

References instDone.

◆ takeOverFrom()

void gem5::PowerISA::Decoder::takeOverFrom ( Decoder old)
inline

Definition at line 88 of file decoder.hh.

Friends And Related Function Documentation

◆ GenericISA::BasicDecodeCache< Decoder, ExtMachInst >

Definition at line 93 of file decoder.hh.

Member Data Documentation

◆ defaultCache

GenericISA::BasicDecodeCache< Decoder, ExtMachInst > gem5::PowerISA::Decoder::defaultCache
staticprotected

A cache of decoded instruction objects.

Definition at line 92 of file decoder.hh.

Referenced by decode().

◆ emi

ExtMachInst gem5::PowerISA::Decoder::emi
protected

Definition at line 50 of file decoder.hh.

Referenced by decode(), and moreBytes().

◆ instDone

bool gem5::PowerISA::Decoder::instDone
protected

Definition at line 51 of file decoder.hh.

Referenced by decode(), instReady(), moreBytes(), and reset().


The documentation for this class was generated from the following files:

Generated on Tue Sep 21 2021 12:31:49 for gem5 by doxygen 1.8.17