44#include "debug/AMBA.hh"
65 pkt->
setLE<uint32_t>(0);
67 panic(
"Tried to read AmbaFake %s at offset %#x that doesn't exist\n",
80 if (!
params().ignore_access)
81 panic(
"Tried to write AmbaFake %s at offset %#x that doesn't exist\n",
This device sits in memory and reponds appropriately so the linux kernel ignores the device it is try...
bool readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
virtual Tick write(PacketPtr pkt)
Pure virtual function that the device must implement.
virtual Tick read(PacketPtr pkt)
Pure virtual function that the device must implement.
AmbaFake(const Params &p)
AmbaPioDevice(const Params &p, Addr pio_size)
AmbaPioDeviceParams Params
Addr pioAddr
Address that the device listens to.
Tick pioDelay
Delay that the device experinces on an access.
Addr pioSize
Size that the device's address range.
void setLE(T v)
Set the value in the data pointer to v as little endian.
void makeAtomicResponse()
#define panic(...)
This implements a cprintf based panic() function.
const Params & params() const
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
Declaration of the Packet class.
const std::string & name()