summaryrefslogtreecommitdiff
path: root/src/dev/baddev.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@gmail.com>2013-07-11 21:57:04 -0500
committerSteve Reinhardt <stever@gmail.com>2013-07-11 21:57:04 -0500
commit1f43e244bda0c78844720609455fd77f6f275e51 (patch)
tree65eb7262e58a61992368dfe10f2152dd85eb6129 /src/dev/baddev.cc
parent502ad1e6757116867e0e0529c0c080320a2b440b (diff)
downloadgem5-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/baddev.cc')
-rw-r--r--src/dev/baddev.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dev/baddev.cc b/src/dev/baddev.cc
index 9fb88d876..b3a30b7e5 100644
--- a/src/dev/baddev.cc
+++ b/src/dev/baddev.cc
@@ -46,9 +46,8 @@
using namespace std;
BadDevice::BadDevice(Params *p)
- : BasicPioDevice(p), devname(p->devicename)
+ : BasicPioDevice(p, 0x10), devname(p->devicename)
{
- pioSize = 0x10;
}
Tick