gem5  v20.1.0.0
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MipsISA::Decoder Class Reference

#include <decoder.hh>

Inheritance diagram for MipsISA::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 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)
 
- Public Member Functions inherited from InstDecoder
virtual StaticInstPtr fetchRomMicroop (MicroPC micropc, StaticInstPtr curMacroop)
 

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 43 of file decoder.hh.

Constructor & Destructor Documentation

◆ Decoder()

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

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

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

Referenced by decode().

◆ decode() [2/2]

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

Definition at line 105 of file decoder.hh.

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

◆ decodeInst()

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

◆ instReady()

bool MipsISA::Decoder::instReady ( )
inline

Definition at line 81 of file decoder.hh.

References instDone.

◆ moreBytes()

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

Definition at line 68 of file decoder.hh.

References emi, instDone, and letoh().

◆ needMoreBytes()

bool MipsISA::Decoder::needMoreBytes ( )
inline

Definition at line 75 of file decoder.hh.

◆ process()

void MipsISA::Decoder::process ( )
inline

Definition at line 55 of file decoder.hh.

◆ reset()

void MipsISA::Decoder::reset ( )
inline

Definition at line 60 of file decoder.hh.

References instDone.

◆ takeOverFrom()

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

Definition at line 86 of file decoder.hh.

Member Data Documentation

◆ defaultCache

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

A cache of decoded instruction objects.

Definition at line 90 of file decoder.hh.

Referenced by decode().

◆ emi

ExtMachInst MipsISA::Decoder::emi
protected

Definition at line 47 of file decoder.hh.

Referenced by decode(), and moreBytes().

◆ instDone

bool MipsISA::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 Wed Sep 30 2020 14:03:06 for gem5 by doxygen 1.8.17