summaryrefslogtreecommitdiff
path: root/src/dev/arm
diff options
context:
space:
mode:
authorAli Saidi <Ali.Saidi@ARM.com>2010-10-01 16:04:02 -0500
committerAli Saidi <Ali.Saidi@ARM.com>2010-10-01 16:04:02 -0500
commitf0c0b8a7f613758cc99af827cfc0bb7d4587131e (patch)
treee925604e12f9102a47c23c754a72da16d274c47b /src/dev/arm
parent9792bbc32400f522830ff8d92209c672d12440f3 (diff)
downloadgem5-f0c0b8a7f613758cc99af827cfc0bb7d4587131e.tar.xz
ARM: Add a fake flash controller so that unmodified linux can boot
With this change an unmodified Linux kernel can boot in M5.
Diffstat (limited to 'src/dev/arm')
-rw-r--r--src/dev/arm/RealView.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dev/arm/RealView.py b/src/dev/arm/RealView.py
index 0efaa73bb..0b29a8270 100644
--- a/src/dev/arm/RealView.py
+++ b/src/dev/arm/RealView.py
@@ -101,6 +101,7 @@ class RealViewPBX(RealView):
timer1 = Sp804(int_num0=37, int_num1=37, pio_addr=0x10012000)
l2x0_fake = IsaFake(pio_addr=0x1f002000, pio_size=0xfff, warn_access="1")
+ flash_fake = IsaFake(pio_addr=0x40000000, pio_size=0x4000000)
dmac_fake = AmbaFake(pio_addr=0x10030000)
uart1_fake = AmbaFake(pio_addr=0x1000a000)
uart2_fake = AmbaFake(pio_addr=0x1000b000)
@@ -153,6 +154,7 @@ class RealViewPBX(RealView):
self.kmi0_fake.pio = bus.port
self.kmi1_fake.pio = bus.port
self.rtc_fake.pio = bus.port
+ self.flash_fake.pio = bus.port
class RealViewEB(RealView):
uart = Pl011(pio_addr=0x10009000, int_num=44)