1
0
Fork 0

Merge pull request #315 from ucb-bar/fix-addrmap-error-msg

correctly print out the addrmap overlapping error message
This commit is contained in:
Howard Mao 2016-09-19 19:39:56 -07:00 committed by GitHub
commit 74fc7c5803
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)