summaryrefslogtreecommitdiff
path: root/src/dev/x86/Cmos.py
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2008-10-11 01:31:32 -0700
committerGabe Black <gblack@eecs.umich.edu>2008-10-11 01:31:32 -0700
commit8c532d629732e93fa23a38328b653eb4c2314936 (patch)
tree99b731ecb4beba3f6db44f54c24bcb50041baf20 /src/dev/x86/Cmos.py
parentcf9afbba510ceac86e011a4b37ec848cd7f7a6ed (diff)
downloadgem5-8c532d629732e93fa23a38328b653eb4c2314936.tar.xz
X86: Hook the CMOS device to the I8259 PICs.
Diffstat (limited to 'src/dev/x86/Cmos.py')
-rw-r--r--src/dev/x86/Cmos.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dev/x86/Cmos.py b/src/dev/x86/Cmos.py
index c786eda36..810432035 100644
--- a/src/dev/x86/Cmos.py
+++ b/src/dev/x86/Cmos.py
@@ -29,6 +29,7 @@
from m5.params import *
from m5.proxy import *
from Device import BasicPioDevice
+from I8259 import I8259
class Cmos(BasicPioDevice):
type = 'Cmos'
@@ -36,3 +37,6 @@ class Cmos(BasicPioDevice):
time = Param.Time('01/01/2009',
"System time to use ('Now' for actual time)")
pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
+ i8259 = Param.I8259('PIC to send RTC alarm interrupts to')
+ int_line = Param.Int(0,
+ 'PIC relative interrupt line to use for alarm interrupts')