diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-10-05 19:21:55 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-10-05 19:21:55 -0700 |
commit | 9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf (patch) | |
tree | c091afbd928b9a3a0dcae4518298dcdf10acf6d3 /riscv | |
parent | 2d58d46c890b17d94c969e428c748e7fb367e462 (diff) | |
download | spike-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.h | 4 |
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; |