cpu: Add default set_reset_address function to CPU that will be overrided by each CPU (avoid hasattr check).
This commit is contained in:
parent
cb13f71b56
commit
c010a98719
|
@ -26,6 +26,9 @@ class CPU(Module):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def set_reset_address(self, reset_address):
|
||||||
|
pass
|
||||||
|
|
||||||
class CPUNone(CPU):
|
class CPUNone(CPU):
|
||||||
variants = ["standard"]
|
variants = ["standard"]
|
||||||
data_width = 32
|
data_width = 32
|
||||||
|
@ -34,7 +37,11 @@ class CPUNone(CPU):
|
||||||
io_regions = {0x00000000: 0x100000000} # origin, length
|
io_regions = {0x00000000: 0x100000000} # origin, length
|
||||||
periph_buses = []
|
periph_buses = []
|
||||||
memory_buses = []
|
memory_buses = []
|
||||||
mem_map = {"csr": 0x00000000, "ethmac": 0x00020000} # FIXME: remove ethmac.
|
mem_map = {
|
||||||
|
"csr" : 0x00000000,
|
||||||
|
"ethmac" : 0x00020000, # FIXME: Remove.
|
||||||
|
"spiflash" : 0x10000000, # FIXME: Remove.
|
||||||
|
}
|
||||||
|
|
||||||
CPU_GCC_TRIPLE_RISCV32 = (
|
CPU_GCC_TRIPLE_RISCV32 = (
|
||||||
"riscv64-unknown-elf",
|
"riscv64-unknown-elf",
|
||||||
|
|
Loading…
Reference in New Issue