diff options
author | Miguel Serrano <mserrano@umich.edu> | 2005-07-01 15:10:18 -0400 |
---|---|---|
committer | Miguel Serrano <mserrano@umich.edu> | 2005-07-01 15:10:18 -0400 |
commit | 16a2357e8637fed706a94ab0da6226df8a2e7f07 (patch) | |
tree | 3ee9fbbcc2d24e19049bc2c23d61e95235210ee1 /dev/tsunami_io.hh | |
parent | 8b042182626b94ed6380f0ba6b99c0e862aa710f (diff) | |
download | gem5-16a2357e8637fed706a94ab0da6226df8a2e7f07.tar.xz |
.
--HG--
extra : convert_revision : 1ed206b27498641b64d7f35c74ea1f0623398d4e
Diffstat (limited to 'dev/tsunami_io.hh')
-rw-r--r-- | dev/tsunami_io.hh | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/dev/tsunami_io.hh b/dev/tsunami_io.hh index dca651d4b..4b28635e8 100644 --- a/dev/tsunami_io.hh +++ b/dev/tsunami_io.hh @@ -75,18 +75,14 @@ class TsunamiIO : public PioDevice uint8_t mode; /** The status of the PIT */ uint8_t status; - /** The counts (current and latched) of the PIT */ - union { - uint16_t whole; - struct { - uint8_t msb; - uint8_t lsb; - } half; - } current_count, latched_count; - - /** Thse state of the output latch of the PIT */ + /** The current count of the PIT */ + uint16_t current_count; + /** The latched count of the PIT */ + uint16_t latched_count; + /** The state of the output latch of the PIT */ bool latch_on; - bool read_msb; + /** The next count half (byte) to read */ + enum {READ_LSB, READ_MSB} read_byte; public: /** @@ -158,6 +154,9 @@ class TsunamiIO : public PioDevice Tsunami* tsunami; Tick interval; + /** Count of the number of RTC interrupts that have occured */ + uint32_t intr_count; + public: /** * RTC Event initializes the RTC event by scheduling an event |