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"
69 panic(
"%s not implemented.", __FUNCTION__);
75 panic(
"%s not implemented.", __FUNCTION__);
92 panic(
"%s not implemented.", __FUNCTION__);
121 iris::IrisConnectionInterface *iris_if) :
124 const std::string parent_path =
evs->
name();
128 for (
const std::string &sub_path:
params.thread_paths) {
129 std::string
path = parent_path +
"." + sub_path;
130 auto id = thread_id++;
131 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
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)
Port & getInstPort() override
Purely virtual method that returns a reference to the instruction port.
void clockPeriodUpdated() override
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is ch...
Port & getDataPort() override
Purely virtual method that returns a reference to the data port.
Counter totalInsts() const override
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
CPU(const IrisBaseCPUParams ¶ms, iris::IrisConnectionInterface *iris_if)
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.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
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.