aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-10-05 19:21:55 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-10-05 19:21:55 -0700
commit9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf (patch)
treec091afbd928b9a3a0dcae4518298dcdf10acf6d3 /riscv
parent2d58d46c890b17d94c969e428c748e7fb367e462 (diff)
downloadspike-9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf.zip
spike-9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf.tar.gz
spike-9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf.tar.bz2
[opcodes] added code field back to syscall/break
Diffstat (limited to 'riscv')
-rw-r--r--riscv/execute.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/execute.h b/riscv/execute.h
index 4063443..fe51660 100644
--- a/riscv/execute.h
+++ b/riscv/execute.h
@@ -1007,7 +1007,7 @@ switch((insn.bits >> 0x19) & 0x7f)
}
case 0x5:
{
- if((insn.bits & 0xffffffff) == 0xf6005000)
+ if((insn.bits & 0xfffff000) == 0xf6005000)
{
#include "insns/syscall.h"
break;
@@ -1016,7 +1016,7 @@ switch((insn.bits >> 0x19) & 0x7f)
}
case 0x6:
{
- if((insn.bits & 0xffffffff) == 0xf6006000)
+ if((insn.bits & 0xfffff000) == 0xf6006000)
{
#include "insns/break.h"
break;