From: Andrew Waterman Date: Wed, 6 Oct 2010 02:21:55 +0000 (-0700) Subject: [opcodes] added code field back to syscall/break X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf;p=riscv-isa-sim.git [opcodes] added code field back to syscall/break --- 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;