gem5  v20.0.0.2
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
MipsISA::Decoder Class Reference

#include <decoder.hh>

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 takeOverFrom (Decoder *old)
 
StaticInstPtr decodeInst (ExtMachInst mach_inst)
 
StaticInstPtr decode (ExtMachInst mach_inst, Addr addr)
 Decode a machine instruction. More...
 
StaticInstPtr decode (MipsISA::PCState &nextPC)
 

Protected Attributes

ExtMachInst emi
 
bool instDone
 

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()

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

Definition at line 50 of file decoder.hh.

Member Function Documentation

◆ decode() [1/2]

StaticInstPtr MipsISA::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 98 of file decoder.hh.

References GenericISA::BasicDecodeCache::decode().

Referenced by decode().

◆ decode() [2/2]

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

Definition at line 104 of file decoder.hh.

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

◆ decodeInst()

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

◆ instReady()

bool MipsISA::Decoder::instReady ( )
inline

Definition at line 80 of file decoder.hh.

References instDone.

◆ moreBytes()

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

Definition at line 67 of file decoder.hh.

References letoh().

◆ needMoreBytes()

bool MipsISA::Decoder::needMoreBytes ( )
inline

Definition at line 74 of file decoder.hh.

◆ process()

void MipsISA::Decoder::process ( )
inline

Definition at line 54 of file decoder.hh.

◆ reset()

void MipsISA::Decoder::reset ( )
inline

Definition at line 59 of file decoder.hh.

◆ takeOverFrom()

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

Definition at line 85 of file decoder.hh.

Member Data Documentation

◆ defaultCache

GenericISA::BasicDecodeCache MipsISA::Decoder::defaultCache
staticprotected

A cache of decoded instruction objects.

Definition at line 89 of file decoder.hh.

◆ emi

ExtMachInst MipsISA::Decoder::emi
protected

Definition at line 46 of file decoder.hh.

◆ instDone

bool MipsISA::Decoder::instDone
protected

Definition at line 47 of file decoder.hh.

Referenced by instReady().


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

Generated on Mon Jun 8 2020 15:45:58 for gem5 by doxygen 1.8.13