diff options
author | Steve Reinhardt <stever@gmail.com> | 2013-07-11 21:57:04 -0500 |
---|---|---|
committer | Steve Reinhardt <stever@gmail.com> | 2013-07-11 21:57:04 -0500 |
commit | 1f43e244bda0c78844720609455fd77f6f275e51 (patch) | |
tree | 65eb7262e58a61992368dfe10f2152dd85eb6129 /src/dev/arm/rtc_pl031.cc | |
parent | 502ad1e6757116867e0e0529c0c080320a2b440b (diff) | |
download | gem5-1f43e244bda0c78844720609455fd77f6f275e51.tar.xz |
dev: make BasicPioDevice take size in constructor
Instead of relying on derived classes explicitly assigning
to the BasicPioDevice pioSize field, require them to pass
a size value in to the constructor.
Committed by: Nilay Vaish <nilay@cs.wisc.edu>
Diffstat (limited to 'src/dev/arm/rtc_pl031.cc')
-rw-r--r-- | src/dev/arm/rtc_pl031.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dev/arm/rtc_pl031.cc b/src/dev/arm/rtc_pl031.cc index ca1486f04..8f421a1da 100644 --- a/src/dev/arm/rtc_pl031.cc +++ b/src/dev/arm/rtc_pl031.cc @@ -49,11 +49,10 @@ #include "mem/packet_access.hh" PL031::PL031(Params *p) - : AmbaIntDevice(p), timeVal(mkutctime(&p->time)), lastWrittenTick(0), - loadVal(0), matchVal(0), rawInt(false), maskInt(false), - pendingInt(false), matchEvent(this) + : AmbaIntDevice(p, 0xfff), timeVal(mkutctime(&p->time)), + lastWrittenTick(0), loadVal(0), matchVal(0), + rawInt(false), maskInt(false), pendingInt(false), matchEvent(this) { - pioSize = 0xfff; } |