46 #ifndef __CPU_SIMPLE_BASE_HH__
47 #define __CPU_SIMPLE_BASE_HH__
50 #include "config/the_isa.hh"
80 struct BaseSimpleCPUParams;
163 #endif // __CPU_SIMPLE_BASE_HH__
StaticInstPtr curStaticInst
Counter totalInsts() const override
void advancePC(const Fault &fault)
std::list< ThreadID > activeThreads
Addr dbg_vtophys(Addr addr)
Declaration of a request, the overall memory request consisting of the parts of the request that are ...
TheISA::MachInst inst
Current instruction.
void wakeup(ThreadID tid) override
void checkForInterrupts()
BaseSimpleCPU(BaseSimpleCPUParams *params)
ThreadContext is the external interface to all thread state for anything outside of the CPU...
Declaration of Statistics objects.
void resetStats() override
virtual Fault initiateMemRead(Addr addr, unsigned size, Request::Flags flags)=0
void haltContext(ThreadID thread_num) override
void unserializeThread(CheckpointIn &cp, ThreadID tid) override
StaticInstPtr curMacroStaticInst
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int64_t Counter
Statistics counter type.
void serializeThread(CheckpointOut &cp, ThreadID tid) const override
Basically a wrapper class to hold both the branch predictor and the BTB.
int16_t ThreadID
Thread index/ID type.
virtual Fault writeMem(uint8_t *data, unsigned size, Addr addr, Request::Flags flags, uint64_t *res)=0
Declaration of the Packet class.
Counter totalOps() const override
std::ostream CheckpointOut
Trace::InstRecord * traceData
std::vector< SimpleExecContext * > threadInfo
virtual Fault readMem(Addr addr, uint8_t *data, unsigned size, Request::Flags flags)=0
std::shared_ptr< FaultBase > Fault
void setupFetchRequest(Request *req)