summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)