relax address map alignment requirement
This commit is contained in:
parent
33d5905c50
commit
993da60f2c
@ -91,7 +91,6 @@ class AddrMap(entriesIn: Seq[AddrMapEntry], val start: BigInt = BigInt(0)) exten
|
|||||||
if (r.start != 0) {
|
if (r.start != 0) {
|
||||||
val align = BigInt(1) << log2Ceil(r.size)
|
val align = BigInt(1) << log2Ceil(r.size)
|
||||||
require(r.start >= base, s"region $name base address 0x${r.start.toString(16)} overlaps previous base 0x${base.toString(16)}")
|
require(r.start >= base, s"region $name base address 0x${r.start.toString(16)} overlaps previous base 0x${base.toString(16)}")
|
||||||
require(r.start % align == 0, s"region $name base address 0x${r.start.toString(16)} not aligned to 0x${align.toString(16)}")
|
|
||||||
base = r.start
|
base = r.start
|
||||||
} else {
|
} else {
|
||||||
base = (base + r.size - 1) / r.size * r.size
|
base = (base + r.size - 1) / r.size * r.size
|
||||||
|
Loading…
Reference in New Issue
Block a user