IntDev: packet latency fix
authorJoel Hestness <hestness@cs.utexas.edu>
Mon, 7 Feb 2011 06:14:17 +0000 (22:14 -0800)
committerJoel Hestness <hestness@cs.utexas.edu>
Mon, 7 Feb 2011 06:14:17 +0000 (22:14 -0800)
The x86 local apic now includes a separate latency parameter for interrupts.

src/arch/x86/X86LocalApic.py
src/arch/x86/interrupts.cc

index 483c65ef888c81604a09fcd748dc99e904462c7b..b9be19b64f221136680244fbc2b900c7bced6330 100644 (file)
@@ -34,3 +34,5 @@ class X86LocalApic(BasicPioDevice):
     cxx_class = 'X86ISA::Interrupts'
     pio_latency = Param.Latency('1ns', 'Programmed IO latency in simticks')
     int_port = Port("Port for sending and receiving interrupt messages")
+    int_latency = Param.Latency('1ns', \
+            "Latency for an interrupt to propagate through this device.")
index a7d9f32775d42f13fbbf8fa8f5bfc58c94e21d9d..61800e1ea7cf2c752eb75fa97caed8d9d0658157 100644 (file)
@@ -595,7 +595,8 @@ X86ISA::Interrupts::setReg(ApicRegIndex reg, uint32_t val)
 
 
 X86ISA::Interrupts::Interrupts(Params * p) :
-    BasicPioDevice(p), IntDev(this), latency(p->pio_latency), clock(0),
+    BasicPioDevice(p), IntDev(this, p->int_latency), latency(p->pio_latency), 
+    clock(0),
     apicTimerEvent(this),
     pendingSmi(false), smiVector(0),
     pendingNmi(false), nmiVector(0),