projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sort #includes
[gem5.git]
/
dev
/
baddev.cc
diff --git
a/dev/baddev.cc
b/dev/baddev.cc
index 7c563e80a169871507c9e393fedc16872b8db9da..73b082d4772a480600e72a32c154254c88a43eac 100644
(file)
--- 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)
{
HierParams *hier, Bus *bus, const string &devicename)
: PioDevice(name), addr(a), devname(devicename)
{
- mmu->add_child(this, Range
<Addr>(addr, addr +
size));
+ mmu->add_child(this, Range
Size(addr,
size));
if (bus) {
pioInterface = newPioInterface(name, hier, bus, this,
&BadDevice::cacheAccess);
if (bus) {
pioInterface = newPioInterface(name, hier, bus, this,
&BadDevice::cacheAccess);
- pioInterface->addAddrRange(
addr, addr + size - 1
);
+ pioInterface->addAddrRange(
RangeSize(addr, size)
);
}
}
}
}