Use SIM*_OVERFLOW_RESULT defined in sim-alu.h
authorAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 1997 07:57:33 +0000 (07:57 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 21 Oct 1997 07:57:33 +0000 (07:57 +0000)
sim/mips/ChangeLog
sim/mips/sim-main.h

index 70e602aa85be06a2bbac14d6a3f263a284a53a56..dc487a27e733b8c64e1bb85f98e8163174c58038 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 20 15:29:04 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * sim-main.h (ALU64_END, ALU32_END): Use ALU*_OVERFLOW_RESULT
+       macro to obtain result of ALU op.
+
 Tue Oct 21 17:39:14 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * interp.c (sim_info): Call profile_print.
index 6a3d4f7fb7822b058c1e3d3e88c13dd106230337..185ada4ab1f54e2c3510ac6b3cae062950ffb193 100644 (file)
@@ -187,13 +187,13 @@ unsigned64 convert PARAMS ((SIM_DESC sd, int rm, unsigned64 op, FP_formats from,
 #define ALU32_END(ANS) \
   if (ALU32_HAD_OVERFLOW) \
     SignalExceptionIntegerOverflow (); \
-  (ANS) = alu_overflow_val;
+  (ANS) = ALU32_OVERFLOW_RESULT
 
 
 #define ALU64_END(ANS) \
   if (ALU64_HAD_OVERFLOW) \
     SignalExceptionIntegerOverflow (); \
-  (ANS) = alu_val;
+  (ANS) = ALU64_OVERFLOW_RESULT;
 
 /* start-sanitize-r5900 */