diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-01-25 20:34:17 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-01-25 20:34:17 -0800 |
commit | 151bc018dd621b62b60ee5eca10c7531de6eb441 (patch) | |
tree | fd7d2034362ed897fd1e9a1136b4af43bd4f7189 /src/dev | |
parent | dbe28da1be7415ad5f496b983c0345c5e9714fb9 (diff) | |
download | gem5-151bc018dd621b62b60ee5eca10c7531de6eb441.tar.xz |
X86: Add a device to back the non-existant floppy drive controller.
Diffstat (limited to 'src/dev')
-rw-r--r-- | src/dev/x86/Pc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dev/x86/Pc.py b/src/dev/x86/Pc.py index 51a21c349..7211fa3f4 100644 --- a/src/dev/x86/Pc.py +++ b/src/dev/x86/Pc.py @@ -66,6 +66,9 @@ class Pc(Platform): fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8) fake_com_4 = IsaFake(pio_addr=x86IOAddress(0x2e8), pio_size=8) + # A device to catch accesses to the non-existant floppy controller. + fake_floppy = IsaFake(pio_addr=x86IOAddress(0x3f2), pio_size=4) + def attachIO(self, bus): self.south_bridge.attachIO(bus) self.i_dont_exist.pio = bus.port @@ -74,6 +77,7 @@ class Pc(Platform): self.fake_com_2.pio = bus.port self.fake_com_3.pio = bus.port self.fake_com_4.pio = bus.port + self.fake_floppy.pio = bus.port self.pciconfig.pio = bus.default bus.responder_set = True bus.responder = self.pciconfig |