[opcodes] added code field back to syscall/break
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>
Wed, 6 Oct 2010 02:21:55 +0000 (19:21 -0700)
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>
Wed, 6 Oct 2010 02:21:55 +0000 (19:21 -0700)
riscv/execute.h

index 4063443f3c0802f9c5b81a6c26b70171195df006..fe51660d1dc91f20b5a0f7bf55af14cb067e3341 100644 (file)
@@ -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;