Go to the documentation of this file.
30 #ifndef __ARCH_RISCV_STATIC_INST_HH__
31 #define __ARCH_RISCV_STATIC_INST_HH__
67 retPC.
pc(curPC.
npc());
90 flags[IsMacroop] =
true;
104 panic(
"Tried to execute a macroop directly!\n");
111 panic(
"Tried to execute a macroop directly!\n");
117 panic(
"Tried to execute a macroop directly!\n");
131 flags[IsMicroop] =
true;
140 #endif // __ARCH_RISCV_STATIC_INST_HH__
Fault completeAcc(PacketPtr pkt, ExecContext *xc, Trace::InstRecord *traceData) const override
RiscvMicroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
Base class for all RISC-V static instructions.
StaticInstPtr fetchMicroop(MicroPC upc) const override
Return the microop that goes with a particular micropc.
size_t simpleAsBytes(void *buf, size_t max_size, const T &t)
Base class for all RISC-V Macroops.
Fault initiateAcc(ExecContext *xc, Trace::InstRecord *traceData) const override
RiscvStaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
RiscvMacroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
Base, ISA-independent static instruction class.
std::shared_ptr< FaultBase > Fault
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
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...
std::bitset< Num_Flags > flags
Flag values for this instruction.
void advancePC(PCState &pcState) const override
Fault execute(ExecContext *xc, Trace::InstRecord *traceData) const override
void advancePC(PCState &pc) const override
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
Base class for all RISC-V Microops.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
PCState buildRetPC(const PCState &curPC, const PCState &callPC) const override
std::vector< StaticInstPtr > microops
#define panic(...)
This implements a cprintf based panic() function.
Generated on Tue Sep 21 2021 12:24:35 for gem5 by doxygen 1.8.17