From: Andrew Waterman Date: Sun, 5 Jun 2011 06:17:19 +0000 (-0700) Subject: [sim] add ability to clear IPIs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca156be905c8b414424673825cfda3f6425d3998;p=riscv-isa-sim.git [sim] add ability to clear IPIs --- 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;