summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2007-02-01 15:35:26 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2007-02-01 15:35:26 -0500
commit17cbfe55fdd80ccd4c9c33ade3b636ba793def56 (patch)
tree189adcf8dc78022866c1b5f69dd4e7108971be53 /src/arch
parent8a244ef04045084c6878284f5dabb833edbf43f3 (diff)
parent1e8bbb81cbd6584c4f6384b8d554f076bf1c29e7 (diff)
downloadgem5-17cbfe55fdd80ccd4c9c33ade3b636ba793def56.tar.xz
Merge zizzer:/bk/newmem
into zed.eecs.umich.edu:/z/hsul/work/sparc/x86.m5 --HG-- extra : convert_revision : 62a0017a1147631513db7878f4e4d08fca776bc1
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/sparc/interrupts.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/sparc/interrupts.hh b/src/arch/sparc/interrupts.hh
index 99ddb4919..3af4f6342 100644
--- a/src/arch/sparc/interrupts.hh
+++ b/src/arch/sparc/interrupts.hh
@@ -67,8 +67,11 @@ enum interrupts_t {
{
if (int_type < 0 || int_type >= num_interrupt_types)
panic("posting unknown interrupt!\n");
- interrupts[int_type] = true;
- ++numPosted;
+
+ if (interrupts[int_type] == false) {
+ interrupts[int_type] = true;
+ ++numPosted;
+ }
}
void post(int int_num, int index)