From ca156be905c8b414424673825cfda3f6425d3998 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 4 Jun 2011 23:17:19 -0700 Subject: [PATCH] [sim] add ability to clear IPIs --- riscv/insns/mfpcr.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/riscv/insns/mfpcr.h b/riscv/insns/mfpcr.h index b72b850..b151150 100644 --- a/riscv/insns/mfpcr.h +++ b/riscv/insns/mfpcr.h @@ -25,6 +25,9 @@ switch(insn.rtype.rs2) case 6: val = cause; break; + case 7: + cause &= ~(1 << (IPI_IRQ+CAUSE_IP_SHIFT)); + break; case 8: val = MEMSIZE >> PGSHIFT; -- 2.30.2