X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fbaddev.cc;h=73b082d4772a480600e72a32c154254c88a43eac;hb=b1bc7d8a7df62d29a4814ced8f74ad734ae3f708;hp=7c563e80a169871507c9e393fedc16872b8db9da;hpb=374e12c2de1d65bace95fb1db4bad122d7fff9ca;p=gem5.git diff --git a/dev/baddev.cc b/dev/baddev.cc index 7c563e80a..73b082d47 100644 --- a/dev/baddev.cc +++ b/dev/baddev.cc @@ -50,12 +50,12 @@ BadDevice::BadDevice(const string &name, Addr a, MemoryController *mmu, HierParams *hier, Bus *bus, const string &devicename) : PioDevice(name), addr(a), devname(devicename) { - mmu->add_child(this, Range(addr, addr + size)); + mmu->add_child(this, RangeSize(addr, size)); if (bus) { pioInterface = newPioInterface(name, hier, bus, this, &BadDevice::cacheAccess); - pioInterface->addAddrRange(addr, addr + size - 1); + pioInterface->addAddrRange(RangeSize(addr, size)); } }