changeset c647872c6590 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=c647872c6590
description:
X86: Add a latency that describes how long an interrupt takes to
propagate through the IO APIC.
diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
src/dev/x86/I82094AA.py | 2 ++
src/dev/x86/i82094aa.cc | 3 ++-
diffs (25 lines):
diff -r e649cb8af113 -r c647872c6590 src/dev/x86/I82094AA.py
--- a/src/dev/x86/I82094AA.py Sat Dec 19 01:49:34 2009 -0800
+++ b/src/dev/x86/I82094AA.py Sat Dec 19 01:50:06 2009 -0800
@@ -38,6 +38,8 @@
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):
diff -r e649cb8af113 -r c647872c6590 src/dev/x86/i82094aa.cc
--- a/src/dev/x86/i82094aa.cc Sat Dec 19 01:49:34 2009 -0800
+++ b/src/dev/x86/i82094aa.cc Sat Dec 19 01:50:06 2009 -0800
@@ -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)
{
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev