42#include "debug/Malta.hh"
48#include "params/MaltaCChip.hh"
57 warn(
"MaltaCCHIP::MaltaCChip() not implemented.");
67 panic(
"MaltaCCHIP::read() not implemented.");
74 panic(
"MaltaCCHIP::write() not implemented.");
81 panic(
"MaltaCCHIP::clear() not implemented.");
87 panic(
"MaltaCCHIP::clearITI() not implemented.");
93 panic(
"MaltaCCHIP::reqIPI() not implemented.");
100 panic(
"MaltaCCHIP::postRTC() not implemented.");
109 for (
int i=0;
i < size;
i++) {
113 tc->getCpuPtr()->postInterrupt(tc->threadId(), interrupt, 0);
114 DPRINTF(
Malta,
"posting interrupt to cpu %d, interrupt %d\n",
125 for (
int i=0;
i < size;
i++) {
129 tc->getCpuPtr()->clearInterrupt(tc->threadId(), interrupt, 0);
130 DPRINTF(
Malta,
"clearing interrupt to cpu %d, interrupt %d\n",
Tick pioDelay
Delay that the device experinces on an access.
MaltaCChip(const Params &p)
Initialize the Malta CChip by setting all of the device register to 0.
void clearIntr(uint32_t interrupt)
clear an interrupt previously posted to the CPU.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
MaltaCChipParams Params
The dims are device interrupt mask registers.
void serialize(CheckpointOut &cp) const override
Serialize an object.
void reqIPI(uint64_t ipreq)
request an interrupt be posted to the CPU.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
void clearIPI(uint64_t ipintr)
post an ipi interrupt to the CPU.
void clearITI(uint64_t itintr)
clear a timer interrupt previously posted to the CPU.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
void postIntr(uint32_t interrupt)
post an interrupt to the CPU.
void postRTC()
post an RTC interrupt to the CPU
Malta * malta
pointer to the malta object.
Top level class for Malta Chipset emulation.
static const int Max_CPUs
Max number of CPUs in a Malta.
MaltaCChip * cchip
Pointer to the Malta CChip.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
#define panic(...)
This implements a cprintf based panic() function.
Declaration of top level class for the Malta chipset.
Emulation of the Malta CChip CSRs.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::ostream CheckpointOut
uint64_t Tick
Tick count type.
Declaration of the Packet class.