Go to the documentation of this file.
43 #include "debug/Malta.hh"
51 #include "params/MaltaIO.hh"
83 panic(
"MaltaIO::read(...) not implemented inside malta_io.cc");
90 panic(
"MaltaIO::write(...) not implemented inside malta_io.cc");
148 MaltaIOParams::create()
uint8_t picr
Raw PIC interrupt register before masking.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
MaltaCChip * cchip
Pointer to the Malta CChip.
void unserialize(const std::string &base, CheckpointIn &cp)
Reconstruct the state of this object from a checkpoint.
void clearIntr(uint8_t interrupt)
Clear an Interrupt to the CPU.
Tick write(PacketPtr pkt) override
Pure virtual function that the device must implement.
#define UNSERIALIZE_SCALAR(scalar)
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
void clearIntr(uint32_t interrupt)
clear an interrupt previously posted to the CPU.
void startup()
Start ticking.
Malta * malta
A pointer to the Malta device which be belong to.
uint64_t Tick
Tick count type.
uint8_t mode2
Mode of PIC2.
Intel8254Timer pitimer
Intel 8253 Periodic Interval Timer.
RTC(const std::string &name, const MaltaIOParams *p)
uint8_t mask1
Mask of the PIC1.
Tick Frequency
The simulated frequency of curTick(). (In ticks per second)
const Params * params() const
void serialize(const std::string &base, CheckpointOut &cp) const
Serialize this object to the given output stream.
void postIntr(uint32_t interrupt)
post an interrupt to the CPU.
uint8_t mode1
Mode of PIC1.
uint8_t mask2
Mask of the PIC2.
Real-Time Clock (MC146818)
void unserialize(CheckpointIn &cp) override
Unserialize an object.
const std::string & name()
#define SERIALIZE_SCALAR(scalar)
virtual const std::string name() const
void postIntr(uint8_t interrupt)
Post an Interrupt to the CPU.
Tick frequency() const
Return the freqency of the RTC.
Overload hash function for BasicBlockRange type.
Top level class for Malta Chipset emulation.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
uint16_t timerData
The interval is set via two writes to the PIT.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Tick pioDelay
Delay that the device experinces on an access.
Malta I/O device is a catch all for all the south bridge stuff we care to implement.
std::ostream CheckpointOut
bool picInterrupting
Is the pic interrupting right now or not.
MaltaIO * io
Pointer to the MaltaIO device which has the RTC.
Tick read(PacketPtr pkt) override
Pure virtual function that the device must implement.
MaltaIO(const Params *p)
Initialize all the data for devices supported by Malta I/O.
#define panic(...)
This implements a cprintf based panic() function.
void startup() override
Start running.
virtual void startup()
Start ticking.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17