44 #include "config/the_isa.hh"
51 using namespace TheISA;
56 struct tm tm = p->time;
59 DPRINTFN(
"Real-time clock set to %s\n", asctime(&tm));
79 panic(
"Dumb tod device doesn't support writes\n");
95 DumbTODParams::create()
void serialize(CheckpointOut &cp) const override
Serialize an object.
void set(T v, ByteOrder endian)
Set the value in the data pointer to v using the specified endianness.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
#define UNSERIALIZE_SCALAR(scalar)
Addr pioSize
Size that the device's address range.
void makeAtomicResponse()
uint64_t Tick
Tick count type.
This device acts as a simple time of date device.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
#define SERIALIZE_SCALAR(scalar)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
std::ostream CheckpointOut
time_t mkutctime(struct tm *time)
Tick pioDelay
Delay that the device experinces on an access.
DumbTOD simply returns some idea of time when read.
Addr pioAddr
Address that the device listens to.