From 9817b7be3d5a497a79bfd4bf80b6d8f4c31c28bf Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 5 Oct 2010 19:21:55 -0700 Subject: [PATCH] [opcodes] added code field back to syscall/break --- riscv/execute.h | 4 ++-- 1 file 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; -- 2.30.2