diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-03-25 02:08:54 -0400 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-03-25 02:08:54 -0400 |
commit | 48409ca512da9e972b159d45068a1173d2ae1759 (patch) | |
tree | 95d565a2e084b88e16940719767811e0fcb60f19 /src/dev/x86/PC.py | |
parent | b0c52885ce5164c2c6105a1de1963c1d761477d1 (diff) | |
download | gem5-48409ca512da9e972b159d45068a1173d2ae1759.tar.xz |
X86: Start implementing the south bridge stuff.
--HG--
extra : convert_revision : 92918c05eb3363155d78889bdab17baa8eae9dca
Diffstat (limited to 'src/dev/x86/PC.py')
-rw-r--r-- | src/dev/x86/PC.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/dev/x86/PC.py b/src/dev/x86/PC.py index 3314e7741..86ae4c3ba 100644 --- a/src/dev/x86/PC.py +++ b/src/dev/x86/PC.py @@ -28,8 +28,9 @@ from m5.params import * from m5.proxy import * -from Device import BasicPioDevice, PioDevice, IsaFake, BadAddr from Uart import Uart8250 +from Device import IsaFake +from SouthBridge import SouthBridge from Platform import Platform from Pci import PciConfigAll from SimConsole import SimConsole @@ -44,6 +45,11 @@ class PC(Platform): pciconfig = PciConfigAll() + south_bridge = SouthBridge() + + # "Non-existant" port used for timing purposes by the linux kernel + i_dont_exist = IsaFake(pio_addr=x86IOAddress(0x80), pio_size=1) + # Serial port and console console = SimConsole() com_1 = Uart8250() @@ -51,6 +57,8 @@ class PC(Platform): com_1.sim_console = console def attachIO(self, bus): + self.south_bridge.pio = bus.port + self.i_dont_exist.pio = bus.port self.com_1.pio = bus.port self.pciconfig.pio = bus.default bus.responder_set = True |