diff options
author | Benjamin Nash <benash@umich.edu> | 2005-07-01 15:57:14 -0400 |
---|---|---|
committer | Benjamin Nash <benash@umich.edu> | 2005-07-01 15:57:14 -0400 |
commit | 6d7911dea0a4f60cbe6726416a9e3248843cc03b (patch) | |
tree | df48c6631e28a368a27f04b6a7ddee854f938d2b /dev/tsunami_io.hh | |
parent | 6bf97032135fcff8eb4993409cef3511db800e6c (diff) | |
parent | 4f2480a18bdf98792e2ebf3471ce7cd3109ef824 (diff) | |
download | gem5-6d7911dea0a4f60cbe6726416a9e3248843cc03b.tar.xz |
Hand merge ide_disk.cc
dev/ide_disk.cc:
Don't initialize data to 0.
--HG--
extra : convert_revision : 643bcf15b52c3e14231d8136b8cb049a8896457a
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 |