cpu/soc_core: automatically set csr mapping to 0x00000000 when using CPUNone, remove csr_base parameter that was used for that.

This commit is contained in:
Florent Kermarrec 2020-05-13 09:31:20 +02:00
parent 5ea3bae036
commit 9d1443c1a8
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,7 @@ class CPUNone(CPU):
io_regions = {0x00000000: 0x100000000} # origin, length
periph_buses = []
memory_buses = []
mem_map = {"csr": 0x00000000}
CPU_GCC_TRIPLE_RISCV32 = (
"riscv64-unknown-elf",

View File

@ -85,7 +85,6 @@ class SoCCore(LiteXSoC):
csr_alignment = 32,
csr_address_width = 14,
csr_paging = 0x800,
csr_base = None,
# Identifier parameters
ident = "",
ident_version = False,
@ -185,7 +184,7 @@ class SoCCore(LiteXSoC):
self.add_timer(name="timer0")
# Add CSR bridge
self.add_csr_bridge(self.mem_map["csr"] if csr_base is None else csr_base)
self.add_csr_bridge(self.mem_map["csr"])
# Methods --------------------------------------------------------------------------------------