gem5  v20.1.0.0
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 defaultCache
 A cache of decoded instruction objects. More...
 

Detailed Description

Definition at line 42 of file decoder.hh.

Constructor & Destructor Documentation

◆ Decoder()

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

Definition at line 51 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 113 of file decoder.hh.

References addr, GenericISA::BasicDecodeCache::decode(), and defaultCache.

Referenced by decode().

◆ decode() [2/2]

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

Definition at line 119 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 89 of file decoder.hh.

References instDone.

◆ moreBytes()

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

Definition at line 65 of file decoder.hh.

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

◆ needMoreBytes()

bool SparcISA::Decoder::needMoreBytes ( )
inline

Definition at line 83 of file decoder.hh.

◆ process()

void SparcISA::Decoder::process ( )
inline

Definition at line 54 of file decoder.hh.

◆ reset()

void SparcISA::Decoder::reset ( )
inline

Definition at line 57 of file decoder.hh.

References instDone.

◆ setContext()

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

Definition at line 95 of file decoder.hh.

References asi.

◆ takeOverFrom()

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

Definition at line 100 of file decoder.hh.

Member Data Documentation

◆ asi

RegVal SparcISA::Decoder::asi
protected

Definition at line 48 of file decoder.hh.

Referenced by moreBytes(), and setContext().

◆ defaultCache

GenericISA::BasicDecodeCache SparcISA::Decoder::defaultCache
staticprotected

A cache of decoded instruction objects.

Definition at line 104 of file decoder.hh.

Referenced by decode().

◆ emi

ExtMachInst SparcISA::Decoder::emi
protected

Definition at line 46 of file decoder.hh.

Referenced by decode(), and moreBytes().

◆ instDone

bool SparcISA::Decoder::instDone
protected

Definition at line 47 of file decoder.hh.

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


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

Generated on Wed Sep 30 2020 14:03:11 for gem5 by doxygen 1.8.17