Go to the documentation of this file.
30 #ifndef __ARCH_RISCV_STATIC_INST_HH__
31 #define __ARCH_RISCV_STATIC_INST_HH__
73 flags[IsMacroop] =
true;
87 panic(
"Tried to execute a macroop directly!\n");
94 panic(
"Tried to execute a macroop directly!\n");
100 panic(
"Tried to execute a macroop directly!\n");
114 flags[IsMicroop] =
true;
122 #endif // __ARCH_RISCV_STATIC_INST_HH__
RiscvMacroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
std::vector< StaticInstPtr > microops
std::bitset< Num_Flags > flags
Flag values for this instruction.
Base class for all RISC-V Macroops.
void advancePC(PCState &pcState) const override
Base, ISA-independent static instruction class.
Fault initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const override
size_t asBytes(void *buf, size_t size) override
Instruction classes can override this function to return a a representation of themselves as a blob o...
StaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
Constructor.
std::shared_ptr< FaultBase > Fault
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
TheISA::ExtMachInst ExtMachInst
Binary extended machine instruction type.
void advancePC(PCState &pc) const override
Base class for all RISC-V static instructions.
size_t simpleAsBytes(void *buf, size_t max_size, const T &t)
Base class for all RISC-V Microops.
const ExtMachInst machInst
The binary machine instruction.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Fault execute(ExecContext *xc, Trace::InstRecord *traceData) const override
StaticInstPtr fetchMicroop(MicroPC upc) const override
Return the microop that goes with a particular micropc.
Fault completeAcc(PacketPtr pkt, ExecContext *xc, Trace::InstRecord *traceData) const override
#define panic(...)
This implements a cprintf based panic() function.
RiscvMicroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
Generated on Wed Sep 30 2020 14:02:00 for gem5 by doxygen 1.8.17