targets/spiflash: Simplify self.cpu.set_reset_address call.

This commit is contained in:
Florent Kermarrec 2022-01-07 15:19:23 +01:00
parent 30cacc19c2
commit 4b6a9b2cf0
10 changed files with 10 additions and 30 deletions

View file

@ -112,8 +112,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Video ------------------------------------------------------------------------------------

View file

@ -107,8 +107,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Build --------------------------------------------------------------------------------------------

View file

@ -74,8 +74,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -125,8 +125,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -93,8 +93,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -93,8 +93,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -100,8 +100,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -101,8 +101,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# HyperRAM ---------------------------------------------------------------------------------

View file

@ -53,8 +53,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# Leds -------------------------------------------------------------------------------------

View file

@ -87,8 +87,6 @@ class BaseSoC(SoCCore):
size = 32*kB,
linker = True)
)
# Set CPU reset address to ROM.
if hasattr(self.cpu, "set_reset_address"):
self.cpu.set_reset_address(self.bus.regions["rom"].origin)
# SDR SDRAM --------------------------------------------------------------------------------