Thu Sep 26 17:35:00 1996 James G. Smith <jsmith@cygnus.co.uk>
authorJackie Smith Cashion <jsmith@redhat.com>
Thu, 26 Sep 1996 16:42:57 +0000 (16:42 +0000)
committerJackie Smith Cashion <jsmith@redhat.com>
Thu, 26 Sep 1996 16:42:57 +0000 (16:42 +0000)
* interp.c (SignalException): Check for explicit terminating
  breakpoint value.
* gencode.c: Pass instruction value through SignalException()
  calls for Trap, Breakpoint and Syscall.

sim/mips/gencode.c

index dce648ae93ebdbf9b0d414c6c772aee28cb3e630..eef4cad65176fb7752b1a4fe57c78aada361aa3d 100644 (file)
@@ -1204,11 +1204,11 @@ process_instructions(doarch,features)
         break ;
 
        case SYSCALL:
-        printf("   SignalException(SystemCall);\n");
+        printf("   SignalException(SystemCall,instruction);\n");
         break ;
 
        case BREAK:
-        printf("   SignalException(BreakPoint);\n");
+        printf("   SignalException(BreakPoint,instruction);\n");
         break ;
 
        case TRAP:
@@ -1232,7 +1232,7 @@ process_instructions(doarch,features)
          printf("  if ((%sword64)op1 ",(boolU ? "u" : ""));
          printf("%c%s",(boolNOT ? '!' : (boolLT ? '<' : (boolGT ? '>' : '='))),(boolEQ ? "=" : ""));
          printf(" (%sword64)op2)\n",(boolU ? "u" : ""));
-         printf("   SignalException(Trap);\n");
+         printf("   SignalException(Trap,instruction);\n");
         }
         break ;