28 #ifndef __ARCH_ARM_FASTMODEL_IRIS_CPU_HH__
29 #define __ARCH_ARM_FASTMODEL_IRIS_CPU_HH__
32 #include "iris/detail/IrisInterface.h"
33 #include "params/IrisBaseCPU.hh"
70 panic(
"%s not implemented.", __FUNCTION__);
76 panic(
"%s not implemented.", __FUNCTION__);
93 panic(
"%s not implemented.", __FUNCTION__);
122 iris::IrisConnectionInterface *iris_if) :
125 const std::string parent_path =
evs->
name();
129 for (
const std::string &sub_path:
params.thread_paths) {
130 std::string
path = parent_path +
"." + sub_path;
131 auto id = thread_id++;
132 auto *tc =
new TC(
this,
id, sys,
params.mmu,
std::vector< ThreadContext * > threadContexts
Counter totalOps() const override
void wakeup(ThreadID tid) override
Iris::BaseCpuEvs * evs_base_cpu
Port & getDataPort() override
Purely virtual method that returns a reference to the data port.
BaseCPU(const BaseCPUParams ¶ms, sc_core::sc_module *_evs)
void serializeThread(CheckpointOut &cp, ThreadID tid) const override
Serialize a single thread.
virtual void setResetAddr(Addr addr, bool secure=false)
void clockPeriodUpdated() override
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is ch...
Counter totalInsts() const override
Port & getInstPort() override
Purely virtual method that returns a reference to the instruction port.
virtual void setSysCounterFrq(uint64_t sys_counter_frq)=0
virtual void setClkPeriod(Tick clk_period)=0
virtual void setResetAddr(int core, Addr addr, bool secure)=0
virtual void setCluster(SimObject *cluster)=0
virtual void sendFunc(PacketPtr pkt)=0
CPU(const IrisBaseCPUParams ¶ms, iris::IrisConnectionInterface *iris_if)
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Ports are used to interface objects to each other.
static std::stack< std::string > path
Abstract superclass for simulation objects.
@ Suspended
Temporarily inactive.
const char * name() const
#define panic(...)
This implements a cprintf based panic() function.
const Params & params() const
double Counter
All counters are of 64-bit values.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
int16_t ThreadID
Thread index/ID type.
std::ostream CheckpointOut
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.