X86: Add a latency that describes how long an interrupt takes to propagate through...
authorGabe Black <gblack@eecs.umich.edu>
Sat, 19 Dec 2009 09:50:06 +0000 (01:50 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Sat, 19 Dec 2009 09:50:06 +0000 (01:50 -0800)
src/dev/x86/I82094AA.py
src/dev/x86/i82094aa.cc

index 5476becc6605194f8ac0d10309a71c33394f64f5..d4ab2cb17c50a1269004d6a45c36e5964103d75c 100644 (file)
@@ -38,6 +38,8 @@ class I82094AA(BasicPioDevice):
     pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks")
     pio_addr = Param.Addr("Device address")
     int_port = Port("Port for sending and receiving interrupt messages")
+    int_latency = Param.Latency('1ns', \
+            "Latency for an interrupt to propagate through this device.")
     external_int_pic = Param.I8259(NULL, "External PIC, if any")
 
     def pin(self, line):
index 591fee6a4d7d56926ed7a6373d758dfa88262f6b..65b3ee732913d98b38f7b0c736cd51a5ae05193d 100644 (file)
@@ -36,7 +36,8 @@
 #include "mem/packet_access.hh"
 #include "sim/system.hh"
 
-X86ISA::I82094AA::I82094AA(Params *p) : PioDevice(p), IntDev(this),
+X86ISA::I82094AA::I82094AA(Params *p) : PioDevice(p),
+    IntDev(this, p->int_latency),
     latency(p->pio_latency), pioAddr(p->pio_addr),
     extIntPic(p->external_int_pic), lowestPriorityOffset(0)
 {