From 1f43e244bda0c78844720609455fd77f6f275e51 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Thu, 11 Jul 2013 21:57:04 -0500 Subject: 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 --- src/dev/pciconfigall.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dev/pciconfigall.cc') diff --git a/src/dev/pciconfigall.cc b/src/dev/pciconfigall.cc index d5ebb7d57..b0da01f0b 100644 --- a/src/dev/pciconfigall.cc +++ b/src/dev/pciconfigall.cc @@ -44,13 +44,11 @@ #include "sim/system.hh" PciConfigAll::PciConfigAll(const Params *p) - : BasicPioDevice(p) + : BasicPioDevice(p, p->size) { // the pio_addr Python parameter is ignored, and overridden by // this caluclated value pioAddr = p->platform->calcPciConfigAddr(params()->bus,0,0); - - pioSize = params()->size; } -- cgit v1.2.3