gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SparcISA::Decoder Class Reference

#include <decoder.hh>

Inheritance diagram for SparcISA::Decoder:
InstDecoder

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 (RegVal _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)
 
- Public Member Functions inherited from InstDecoder
virtual StaticInstPtr fetchRomMicroop (MicroPC micropc, StaticInstPtr curMacroop)
 

Protected Attributes

ExtMachInst emi
 
bool instDone
 
RegVal asi
 

Static Protected Attributes

static GenericISA::BasicDecodeCache< Decoder, ExtMachInstdefaultCache
 A cache of decoded instruction objects. More...
 

Detailed Description

Definition at line 43 of file decoder.hh.

Constructor & Destructor Documentation

◆ Decoder()

SparcISA::Decoder::Decoder ( ISA isa = nullptr)
inline

Definition at line 52 of file decoder.hh.

Member Function Documentation

◆ decode() [1/2]

StaticInstPtr SparcISA::Decoder::decode ( ExtMachInst  mach_inst,
Addr  addr 
)
inline

Decode a machine instruction.

Parameters
mach_instThe binary instruction to decode.
Return values
Apointer to the corresponding StaticInst object.

Definition at line 114 of file decoder.hh.

References X86ISA::addr, defaultCache, DPRINTF, and ArmISA::si.

Referenced by decode().

◆ decode() [2/2]

StaticInstPtr SparcISA::Decoder::decode ( SparcISA::PCState nextPC)
inline

Definition at line 123 of file decoder.hh.

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

◆ decodeInst()

StaticInstPtr SparcISA::Decoder::decodeInst ( ExtMachInst  mach_inst)

◆ instReady()

bool SparcISA::Decoder::instReady ( )
inline

Definition at line 90 of file decoder.hh.

References instDone.

◆ moreBytes()

void SparcISA::Decoder::moreBytes ( const PCState pc,
Addr  fetchPC,
MachInst  inst 
)
inline

Definition at line 66 of file decoder.hh.

References asi, betoh(), bits(), emi, and instDone.

◆ needMoreBytes()

bool SparcISA::Decoder::needMoreBytes ( )
inline

Definition at line 84 of file decoder.hh.

◆ process()

void SparcISA::Decoder::process ( )
inline

Definition at line 55 of file decoder.hh.

◆ reset()

void SparcISA::Decoder::reset ( )
inline

Definition at line 58 of file decoder.hh.

References instDone.

◆ setContext()

void SparcISA::Decoder::setContext ( RegVal  _asi)
inline

Definition at line 96 of file decoder.hh.

References asi.

◆ takeOverFrom()

void SparcISA::Decoder::takeOverFrom ( Decoder old)
inline

Definition at line 101 of file decoder.hh.

Member Data Documentation

◆ asi

RegVal SparcISA::Decoder::asi
protected

Definition at line 49 of file decoder.hh.

Referenced by moreBytes(), and setContext().

◆ defaultCache

GenericISA::BasicDecodeCache< Decoder, ExtMachInst > SparcISA::Decoder::defaultCache
staticprotected

A cache of decoded instruction objects.

Definition at line 105 of file decoder.hh.

Referenced by decode().

◆ emi

ExtMachInst SparcISA::Decoder::emi
protected

Definition at line 47 of file decoder.hh.

Referenced by decode(), and moreBytes().

◆ instDone

bool SparcISA::Decoder::instDone
protected

Definition at line 48 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 Jun 22 2021 15:29:12 for gem5 by doxygen 1.8.17