diff options
Diffstat (limited to 'src/arch/sparc/interrupts.hh')
-rw-r--r-- | src/arch/sparc/interrupts.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/sparc/interrupts.hh b/src/arch/sparc/interrupts.hh index 42bbfc5cf..dc3b235fe 100644 --- a/src/arch/sparc/interrupts.hh +++ b/src/arch/sparc/interrupts.hh @@ -67,8 +67,10 @@ class Interrupts { 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) |