30 #ifndef __ARCH_RISCV_STATIC_INST_HH__
31 #define __ARCH_RISCV_STATIC_INST_HH__
78 std::unique_ptr<PCStateBase>
85 return std::unique_ptr<PCStateBase>{ret_pc_ptr};
107 flags[IsMacroop] =
true;
121 panic(
"Tried to execute a macroop directly!\n");
128 panic(
"Tried to execute a macroop directly!\n");
134 panic(
"Tried to execute a macroop directly!\n");
148 flags[IsMicroop] =
true;
The ExecContext is an abstract base class the provides the interface used by the ISA to manipulate th...
virtual PCStateBase * clone() const =0
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Base class for all RISC-V Macroops.
std::vector< StaticInstPtr > microops
Fault initiateAcc(ExecContext *xc, trace::InstRecord *traceData) const override
Fault completeAcc(PacketPtr pkt, ExecContext *xc, trace::InstRecord *traceData) const override
RiscvMacroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
StaticInstPtr fetchMicroop(MicroPC upc) const override
Return the microop that goes with a particular micropc.
Fault execute(ExecContext *xc, trace::InstRecord *traceData) const override
Base class for all RISC-V Microops.
RiscvMicroInst(const char *mnem, ExtMachInst _machInst, OpClass __opClass)
void advancePC(PCStateBase &pcState) const override
Base class for all RISC-V static instructions.
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...
bool alignmentOk(ExecContext *xc, Addr addr, Addr size) const
void advancePC(ThreadContext *tc) const override
void advancePC(PCStateBase &pc) const override
RiscvStaticInst(const char *_mnemonic, ExtMachInst _machInst, OpClass __opClass)
std::unique_ptr< PCStateBase > buildRetPC(const PCStateBase &cur_pc, const PCStateBase &call_pc) const override
Base, ISA-independent static instruction class.
size_t simpleAsBytes(void *buf, size_t max_size, const T &t)
std::bitset< Num_Flags > flags
Flag values for this instruction.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual const PCStateBase & pcState() const =0
#define panic(...)
This implements a cprintf based panic() function.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
std::shared_ptr< FaultBase > Fault
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Declaration of the Packet class.