47 #include "config/the_isa.hh"
48 #include "debug/Malta.hh"
56 #include "params/MaltaIO.hh"
60 using namespace TheISA;
63 :
MC146818(p->malta, name, p->time, p->year_is_bcd, p->frequency),
89 panic(
"MaltaIO::read(...) not implemented inside malta_io.cc");
96 panic(
"MaltaIO::write(...) not implemented inside malta_io.cc");
154 MaltaIOParams::create()
void serialize(CheckpointOut &cp) const override
Serialize an object.
MaltaIO(const Params *p)
Initialize all the data for devices supported by Malta I/O.
Emulation of the Malta CChip CSRs.
const std::string & name()
void clearIntr(uint32_t interrupt)
clear an interrupt previously posted to the CPU.
Real-Time Clock (MC146818)
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
Tick frequency() const
Return the freqency of the RTC.
void startup()
Start ticking.
RTC(const std::string &name, const MaltaIOParams *p)
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
#define UNSERIALIZE_SCALAR(scalar)
uint8_t mask1
Mask of the PIC1.
void postIntr(uint8_t interrupt)
Post an Interrupt to the CPU.
uint16_t timerData
The interval is set via two writes to the PIT.
uint64_t Tick
Tick count type.
void clearIntr(uint8_t interrupt)
Clear an Interrupt to the CPU.
void startup() override
Start running.
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
MaltaIO * io
Pointer to the MaltaIO device which has the RTC.
Intel8254Timer pitimer
Intel 8253 Periodic Interval Timer.
Top level class for Malta Chipset emulation.
#define SERIALIZE_SCALAR(scalar)
virtual const std::string name() const
Malta * malta
A pointer to the Malta device which be belong to.
Declaration of the Packet class.
std::ostream CheckpointOut
virtual void startup()
Start ticking.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
uint8_t mode1
Mode of PIC1.
uint8_t mode2
Mode of PIC2.
Tick pioDelay
Delay that the device experinces on an access.
void postIntr(uint32_t interrupt)
post an interrupt to the CPU.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
MaltaCChip * cchip
Pointer to the Malta CChip.
Malta I/O device is a catch all for all the south bridge stuff we care to implement.
uint8_t mask2
Mask of the PIC2.
bool picInterrupting
Is the pic interrupting right now or not.
const Params * params() const
Malta I/O Space mapping including RTC/timer interrupts.
Declaration of top level class for the Malta chipset.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
uint8_t picr
Raw PIC interrupt register before masking.