From 02c376ac44584484268bd714a45fa0f0265a896a Mon Sep 17 00:00:00 2001 From: Cagdas Dirik Date: Sat, 3 Jan 2015 17:51:48 -0600 Subject: dev: prevent RTC events firing before startup This change includes edits to MC146818 timer to prevent RTC events firing before startup to comply with SimObject initialization call sequence. Committed by: Nilay Vaish --- src/dev/mips/malta_io.cc | 6 ++++++ src/dev/mips/malta_io.hh | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'src/dev/mips') diff --git a/src/dev/mips/malta_io.cc b/src/dev/mips/malta_io.cc index d769b1112..6797a054c 100755 --- a/src/dev/mips/malta_io.cc +++ b/src/dev/mips/malta_io.cc @@ -142,6 +142,12 @@ MaltaIO::unserialize(Checkpoint *cp, const string §ion) rtc.unserialize("rtc", cp, section); } +void +MaltaIO::startup() +{ + rtc.startup(); +} + MaltaIO * MaltaIOParams::create() { diff --git a/src/dev/mips/malta_io.hh b/src/dev/mips/malta_io.hh index f74d42da4..dd035aea2 100755 --- a/src/dev/mips/malta_io.hh +++ b/src/dev/mips/malta_io.hh @@ -143,6 +143,11 @@ class MaltaIO : public BasicPioDevice */ virtual void unserialize(Checkpoint *cp, const std::string §ion); + /** + * Start running. + */ + virtual void startup(); + }; #endif // __DEV_MALTA_IO_HH__ -- cgit v1.2.3