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/uart.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dev/uart.cc') diff --git a/src/dev/uart.cc b/src/dev/uart.cc index ab0ebde2c..084511444 100644 --- a/src/dev/uart.cc +++ b/src/dev/uart.cc @@ -38,8 +38,8 @@ using namespace std; -Uart::Uart(const Params *p) - : BasicPioDevice(p), platform(p->platform), term(p->terminal) +Uart::Uart(const Params *p, Addr pio_size) + : BasicPioDevice(p, pio_size), platform(p->platform), term(p->terminal) { status = 0; -- cgit v1.2.3