soc/integration/soc_core: use cpu_reset_address = self.mem_map["rom"] when using...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 30 Jan 2017 13:10:57 +0000 (14:10 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 30 Jan 2017 13:10:57 +0000 (14:10 +0100)
litex/soc/integration/soc_core.py

index 223380dae958e5ac1c529bbf24c3e2ab0e72ef1c..9bf9f52469c489bf9b4af61b59965e1cac512004 100644 (file)
@@ -49,7 +49,7 @@ class SoCCore(Module):
 
         self.cpu_type = cpu_type
         if integrated_rom_size:
-            cpu_reset_address = 0
+            cpu_reset_address = self.mem_map["rom"]
         self.cpu_reset_address = cpu_reset_address
 
         self.integrated_rom_size = integrated_rom_size