changeset b35d43e2e303 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=b35d43e2e303
description:
X86: Add fake devices for non-existant serial ports.
diffstat:
1 file changed, 8 insertions(+)
src/dev/x86/Pc.py | 8 ++++++++
diffs (23 lines):
diff -r 18ed7aa8e8e1 -r b35d43e2e303 src/dev/x86/Pc.py
--- a/src/dev/x86/Pc.py Sun Jan 25 20:33:27 2009 -0800
+++ b/src/dev/x86/Pc.py Sun Jan 25 20:33:52 2009 -0800
@@ -61,11 +61,19 @@
com_1.pio_addr = x86IOAddress(0x3f8)
com_1.terminal = terminal
+ # Devices to catch access to non-existant serial ports.
+ fake_com_2 = IsaFake(pio_addr=x86IOAddress(0x2f8), 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)
+
def attachIO(self, bus):
self.south_bridge.attachIO(bus)
self.i_dont_exist.pio = bus.port
self.behind_pci.pio = bus.port
self.com_1.pio = bus.port
+ self.fake_com_2.pio = bus.port
+ self.fake_com_3.pio = bus.port
+ self.fake_com_4.pio = bus.port
self.pciconfig.pio = bus.default
bus.responder_set = True
bus.responder = self.pciconfig
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev