projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1bb827
)
[sim] add ability to clear IPIs
author
Andrew Waterman
<waterman@cs.berkeley.edu>
Sun, 5 Jun 2011 06:17:19 +0000
(23:17 -0700)
committer
Andrew Waterman
<waterman@cs.berkeley.edu>
Sun, 5 Jun 2011 06:17:19 +0000
(23:17 -0700)
riscv/insns/mfpcr.h
patch
|
blob
|
history
diff --git
a/riscv/insns/mfpcr.h
b/riscv/insns/mfpcr.h
index b72b850416fb3b115917bba3dd071276315c974f..b151150f421c5ce05109a29f807ae606ff0d9abd 100644
(file)
--- 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;