X86: Add a device to back the non-existant floppy drive controller.
This commit is contained in:
parent
dbe28da1be
commit
151bc018dd
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,9 @@ class Pc(Platform):
|
||||||
fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8)
|
fake_com_3 = IsaFake(pio_addr=x86IOAddress(0x3e8), pio_size=8)
|
||||||
fake_com_4 = IsaFake(pio_addr=x86IOAddress(0x2e8), 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):
|
def attachIO(self, bus):
|
||||||
self.south_bridge.attachIO(bus)
|
self.south_bridge.attachIO(bus)
|
||||||
self.i_dont_exist.pio = bus.port
|
self.i_dont_exist.pio = bus.port
|
||||||
|
@ -74,6 +77,7 @@ class Pc(Platform):
|
||||||
self.fake_com_2.pio = bus.port
|
self.fake_com_2.pio = bus.port
|
||||||
self.fake_com_3.pio = bus.port
|
self.fake_com_3.pio = bus.port
|
||||||
self.fake_com_4.pio = bus.port
|
self.fake_com_4.pio = bus.port
|
||||||
|
self.fake_floppy.pio = bus.port
|
||||||
self.pciconfig.pio = bus.default
|
self.pciconfig.pio = bus.default
|
||||||
bus.responder_set = True
|
bus.responder_set = True
|
||||||
bus.responder = self.pciconfig
|
bus.responder = self.pciconfig
|
||||||
|
|
Loading…
Reference in a new issue