From 4aee3aa073f9a20fff88daf0dd224e5c11d84b4e Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 21 Sep 2012 10:11:24 -0400 Subject: Mem: Tidy up bus member variables types This patch merely tidies up the types used for the bus member variables. It also makes the constant ones const. --- src/mem/bus.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/mem/bus.cc') diff --git a/src/mem/bus.cc b/src/mem/bus.cc index ba45bfcb5..4dfcbad1c 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -61,15 +61,7 @@ BaseBus::BaseBus(const BaseBusParams *p) useDefaultRange(p->use_default_range), defaultBlockSize(p->block_size), cachedBlockSize(0), cachedBlockSizeValid(false) -{ - //width, clock period, and header cycles must be positive - if (width <= 0) - fatal("Bus width must be positive\n"); - if (clock <= 0) - fatal("Bus clock period must be positive\n"); - if (headerCycles <= 0) - fatal("Number of header cycles must be positive\n"); -} +{} BaseBus::~BaseBus() { -- cgit v1.2.3