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
|
||||
def mem_map(self):
|
||||
return {
|
||||
"csr": 0xc0000000,
|
||||
"xicsicp": 0xc3ff0000,
|
||||
"xicsics": 0xc3ff1000
|
||||
# Keep the lower 128MBs for SoC IOs auto-allocation.
|
||||
"csr": 0xc8000000,
|
||||
"xicsicp": 0xcbff0000,
|
||||
"xicsics": 0xcbff1000,
|
||||
}
|
||||
|
||||
# GCC Flags.
|
||||
|
|
|
@ -233,7 +233,7 @@ class SoCBusHandler(Module):
|
|||
for _, search_region in search_regions.items():
|
||||
origin = search_region.origin
|
||||
while (origin + size) < (search_region.origin + search_region.size_pow2):
|
||||
# Create a Candicate.
|
||||
# Create a Candidate.
|
||||
candidate = SoCRegion(origin=origin, size=size, cached=cached)
|
||||
overlap = False
|
||||
# Check Candidate does not overlap with allocated existing regions.
|
||||
|
|
Loading…
Reference in New Issue