diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2008-10-11 01:22:20 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2008-10-11 01:22:20 -0700 |
commit | 2753c07dc5131972d1dcbb7628e2f0712c778fec (patch) | |
tree | 1088254bfb5c9bcc4121cdfc6acfcf6c52c0d2d2 /src/dev/x86/PC.py | |
parent | f22c7d48f3b99994c697075f5cc3b59c72f84092 (diff) | |
download | gem5-2753c07dc5131972d1dcbb7628e2f0712c778fec.tar.xz |
X86: Change the I8259 from a subdevice into a real SimObject.
--HG--
rename : src/dev/x86/south_bridge/i8259.cc => src/dev/x86/i8259.cc
rename : src/dev/x86/south_bridge/i8259.hh => src/dev/x86/i8259.hh
Diffstat (limited to 'src/dev/x86/PC.py')
-rw-r--r-- | src/dev/x86/PC.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dev/x86/PC.py b/src/dev/x86/PC.py index 6460e7402..d0516ec13 100644 --- a/src/dev/x86/PC.py +++ b/src/dev/x86/PC.py @@ -32,6 +32,7 @@ from m5.proxy import * from Cmos import Cmos from Device import IsaFake from Pci import PciConfigAll +from I8259 import I8259 from Platform import Platform from SouthBridge import SouthBridge from Terminal import Terminal @@ -49,6 +50,8 @@ class PC(Platform): south_bridge = SouthBridge() cmos = Cmos(pio_addr=x86IOAddress(0x70)) + pic1 = I8259(pio_addr=x86IOAddress(0x20), master=True) + pic2 = I8259(pio_addr=x86IOAddress(0xA0), master=False) # "Non-existant" port used for timing purposes by the linux kernel i_dont_exist = IsaFake(pio_addr=x86IOAddress(0x80), pio_size=1) @@ -66,6 +69,8 @@ class PC(Platform): def attachIO(self, bus): self.south_bridge.pio = bus.port self.cmos.pio = bus.port + self.pic1.pio = bus.port + self.pic2.pio = bus.port self.i_dont_exist.pio = bus.port self.behind_pci.pio = bus.port self.com_1.pio = bus.port |