gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 44 of file decoder.hh.

Constructor & Destructor Documentation

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

Definition at line 52 of file decoder.hh.

Member Function Documentation

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

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

Referenced by decode().

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

Definition at line 106 of file decoder.hh.

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

StaticInstPtr MipsISA::Decoder::decodeInst ( ExtMachInst  mach_inst)
bool MipsISA::Decoder::instReady ( )
inline

Definition at line 82 of file decoder.hh.

References instDone.

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

Definition at line 69 of file decoder.hh.

References emi, and instDone.

bool MipsISA::Decoder::needMoreBytes ( )
inline

Definition at line 76 of file decoder.hh.

void MipsISA::Decoder::process ( )
inline

Definition at line 56 of file decoder.hh.

void MipsISA::Decoder::reset ( )
inline

Definition at line 61 of file decoder.hh.

References instDone.

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

Definition at line 87 of file decoder.hh.

Member Data Documentation

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

A cache of decoded instruction objects.

Definition at line 91 of file decoder.hh.

Referenced by decode().

ExtMachInst MipsISA::Decoder::emi
protected

Definition at line 48 of file decoder.hh.

Referenced by decode(), and moreBytes().

bool MipsISA::Decoder::instDone
protected

Definition at line 49 of file decoder.hh.

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


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

Generated on Fri Jun 9 2017 13:04:33 for gem5 by doxygen 1.8.6