Merge pull request #315 from ucb-bar/fix-addrmap-error-msg
correctly print out the addrmap overlapping error message
This commit is contained in:
commit
74fc7c5803
@ -125,7 +125,7 @@ class AddrMap(
|
||||
val brEnd = br.start + br.size
|
||||
val abOverlaps = ar.start < brEnd && br.start < arEnd
|
||||
require(!abOverlaps,
|
||||
"region $an@0x${ar.start.toString(16)} overlaps region $bn@0x${br.start.toString(16)}")
|
||||
s"region $an@0x${ar.start.toString(16)} overlaps region $bn@0x${br.start.toString(16)}")
|
||||
}
|
||||
|
||||
def toRange: MemRange = MemRange(start, size, attr)
|
||||
|
Loading…
Reference in New Issue
Block a user