46 #include "debug/AMBA.hh"
62 DPRINTF(AMBA,
" read register %#x\n", daddr);
64 pkt->
set<uint32_t>(0);
66 panic(
"Tried to read AmbaFake at offset %#x that doesn't exist\n", daddr);
78 if (!
params()->ignore_access)
79 panic(
"Tried to write AmbaFake at offset %#x that doesn't exist\n", daddr);
87 AmbaFakeParams::create()
virtual Tick read(PacketPtr pkt)
Pure virtual function that the device must implement.
void set(T v, ByteOrder endian)
Set the value in the data pointer to v using the specified endianness.
AmbaFake(const Params *p)
AmbaPioDeviceParams Params
Addr pioSize
Size that the device's address range.
void makeAtomicResponse()
uint64_t Tick
Tick count type.
bool readId(PacketPtr pkt, uint64_t amba_id, Addr pio_addr)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
Declaration of the Packet class.
virtual Tick write(PacketPtr pkt)
Pure virtual function that the device must implement.
Tick pioDelay
Delay that the device experinces on an access.
const Params * params() const
This device sits in memory and reponds appropriately so the linux kernel ignores the device it is try...
Addr pioAddr
Address that the device listens to.