1
0

correctly print out the addrmap overlapping error message

This commit is contained in:
Yunsup Lee 2016-09-19 13:34:58 -07:00
parent f0debb89e4
commit 1b26d78114

View File

@ -125,7 +125,7 @@ class AddrMap(
val brEnd = br.start + br.size val brEnd = br.start + br.size
val abOverlaps = ar.start < brEnd && br.start < arEnd val abOverlaps = ar.start < brEnd && br.start < arEnd
require(!abOverlaps, 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) def toRange: MemRange = MemRange(start, size, attr)