diff options
author | Ali Saidi <Ali.Saidi@ARM.com> | 2010-10-01 16:04:02 -0500 |
---|---|---|
committer | Ali Saidi <Ali.Saidi@ARM.com> | 2010-10-01 16:04:02 -0500 |
commit | f0c0b8a7f613758cc99af827cfc0bb7d4587131e (patch) | |
tree | e925604e12f9102a47c23c754a72da16d274c47b | |
parent | 9792bbc32400f522830ff8d92209c672d12440f3 (diff) | |
download | gem5-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.
-rw-r--r-- | src/dev/arm/RealView.py | 2 |
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) |