1
0
Fork 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
1 changed files with 1 additions and 1 deletions

View File

@ -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)