X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fbaddev.cc;h=52c538707c33b396a7d5e98553a430703a099118;hb=1166d4f0bfe67a9dc178be3454b4f0eac38663ad;hp=1d4428f7f17ad7b0c036be923ba1598551d608ac;hpb=715176d450fe2c85d3a72d80cd5c2460f8c552cd;p=gem5.git diff --git a/dev/baddev.cc b/dev/baddev.cc index 1d4428f7f..52c538707 100644 --- a/dev/baddev.cc +++ b/dev/baddev.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 The Regents of The University of Michigan + * Copyright (c) 2004-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -48,13 +48,13 @@ using namespace std; BadDevice::BadDevice(const string &name, Addr a, MemoryController *mmu, - HierParams *hier, Bus *bus, const string &devicename) + HierParams *hier, Bus *pio_bus, const string &devicename) : PioDevice(name, NULL), addr(a), devname(devicename) { mmu->add_child(this, RangeSize(addr, size)); - if (bus) { - pioInterface = newPioInterface(name, hier, bus, this, + if (pio_bus) { + pioInterface = newPioInterface(name, hier, pio_bus, this, &BadDevice::cacheAccess); pioInterface->addAddrRange(RangeSize(addr, size)); } @@ -88,7 +88,7 @@ BEGIN_DECLARE_SIM_OBJECT_PARAMS(BadDevice) SimObjectParam mmu; Param addr; SimObjectParam hier; - SimObjectParam io_bus; + SimObjectParam pio_bus; Param pio_latency; Param devicename; @@ -100,7 +100,7 @@ BEGIN_INIT_SIM_OBJECT_PARAMS(BadDevice) INIT_PARAM(mmu, "Memory Controller"), INIT_PARAM(addr, "Device Address"), INIT_PARAM_DFLT(hier, "Hierarchy global variables", &defaultHierParams), - INIT_PARAM_DFLT(io_bus, "The IO Bus to attach to", NULL), + INIT_PARAM_DFLT(pio_bus, "The IO Bus to attach to", NULL), INIT_PARAM_DFLT(pio_latency, "Programmed IO latency", 1000), INIT_PARAM(devicename, "Name of device to error on") @@ -108,7 +108,7 @@ END_INIT_SIM_OBJECT_PARAMS(BadDevice) CREATE_SIM_OBJECT(BadDevice) { - return new BadDevice(getInstanceName(), addr, mmu, hier, io_bus, + return new BadDevice(getInstanceName(), addr, mmu, hier, pio_bus, devicename); }