summaryrefslogtreecommitdiff
path: root/src/dev/x86/PC.py
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-11 01:13:11 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-11 01:13:11 -0700
commitf22c7d48f3b99994c697075f5cc3b59c72f84092 (patch)
tree08e815794cbf29b528b8dded19755a6abc13581c /src/dev/x86/PC.py
parent8c5dfa453296c5a87a46c409f68e0ef50ebfceb6 (diff)
downloadgem5-f22c7d48f3b99994c697075f5cc3b59c72f84092.tar.xz
X86: Change the CMOS from a sub-device to a real SimObject
--HG-- rename : src/dev/x86/south_bridge/cmos.cc => src/dev/x86/cmos.cc rename : src/dev/x86/south_bridge/cmos.hh => src/dev/x86/cmos.hh
Diffstat (limited to 'src/dev/x86/PC.py')
-rw-r--r--src/dev/x86/PC.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dev/x86/PC.py b/src/dev/x86/PC.py
index 5165308ed..6460e7402 100644
--- a/src/dev/x86/PC.py
+++ b/src/dev/x86/PC.py
@@ -29,6 +29,7 @@
from m5.params import *
from m5.proxy import *
+from Cmos import Cmos
from Device import IsaFake
from Pci import PciConfigAll
from Platform import Platform
@@ -47,6 +48,7 @@ class PC(Platform):
pciconfig = PciConfigAll()
south_bridge = SouthBridge()
+ cmos = Cmos(pio_addr=x86IOAddress(0x70))
# "Non-existant" port used for timing purposes by the linux kernel
i_dont_exist = IsaFake(pio_addr=x86IOAddress(0x80), pio_size=1)
@@ -63,6 +65,7 @@ class PC(Platform):
def attachIO(self, bus):
self.south_bridge.pio = bus.port
+ self.cmos.pio = bus.port
self.i_dont_exist.pio = bus.port
self.behind_pci.pio = bus.port
self.com_1.pio = bus.port