cores/cpu/microwatt: Re-map csr/xics and keep the lower 128MBs for the SoC IO auto-allocation.
This commit is contained in:
parent
9a82fd1d54
commit
4c26dbe98f
|
@ -39,9 +39,10 @@ class Microwatt(CPU):
|
||||||
@property
|
@property
|
||||||
def mem_map(self):
|
def mem_map(self):
|
||||||
return {
|
return {
|
||||||
"csr": 0xc0000000,
|
# Keep the lower 128MBs for SoC IOs auto-allocation.
|
||||||
"xicsicp": 0xc3ff0000,
|
"csr": 0xc8000000,
|
||||||
"xicsics": 0xc3ff1000
|
"xicsicp": 0xcbff0000,
|
||||||
|
"xicsics": 0xcbff1000,
|
||||||
}
|
}
|
||||||
|
|
||||||
# GCC Flags.
|
# GCC Flags.
|
||||||
|
|
|
@ -233,7 +233,7 @@ class SoCBusHandler(Module):
|
||||||
for _, search_region in search_regions.items():
|
for _, search_region in search_regions.items():
|
||||||
origin = search_region.origin
|
origin = search_region.origin
|
||||||
while (origin + size) < (search_region.origin + search_region.size_pow2):
|
while (origin + size) < (search_region.origin + search_region.size_pow2):
|
||||||
# Create a Candicate.
|
# Create a Candidate.
|
||||||
candidate = SoCRegion(origin=origin, size=size, cached=cached)
|
candidate = SoCRegion(origin=origin, size=size, cached=cached)
|
||||||
overlap = False
|
overlap = False
|
||||||
# Check Candidate does not overlap with allocated existing regions.
|
# Check Candidate does not overlap with allocated existing regions.
|
||||||
|
|
Loading…
Reference in New Issue