summaryrefslogtreecommitdiff
path: root/src/arch/riscv/interrupts.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/interrupts.hh')
-rw-r--r--src/arch/riscv/interrupts.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/riscv/interrupts.hh b/src/arch/riscv/interrupts.hh
index 406fe4ffa..ed946879b 100644
--- a/src/arch/riscv/interrupts.hh
+++ b/src/arch/riscv/interrupts.hh
@@ -74,7 +74,7 @@ class Interrupts : public SimObject
std::bitset<NumInterruptTypes>
globalMask(ThreadContext *tc) const
{
- INTERRUPT mask;
+ INTERRUPT mask = 0;
STATUS status = tc->readMiscReg(MISCREG_STATUS);
if (status.mie)
mask.mei = mask.mti = mask.msi = 1;