2002-09-17 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 17 Sep 2002 22:58:01 +0000 (22:58 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 17 Sep 2002 22:58:01 +0000 (22:58 +0000)
* mips-stub.c (restore_and_return): Postpone restoring of PSW.
        RTE will take care of it.

gdb/ChangeLog
gdb/m32r-stub.c

index f951d80c9cbb97a18081e137dfac943ee4a1513c..8a7e668466afa2c5dc5741d82d44f97ae5c753c0 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-17  Michael Snyder  <msnyder@redhat.com>
+
+       * mips-stub.c (restore_and_return): Postpone restoring of PSW.
+       RTE will take care of it.
+
 2002-09-17  Andrew Cagney  <ac131313@redhat.com>
 
        * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
index cb956264d67533216f6a834dbe5f92d845e5ca25..a691a657a23b8025144180444f70fb196d856879 100644 (file)
@@ -1288,8 +1288,7 @@ restore_and_return:
        ld r13, @r0+    ; restore r13
        ld r14, @r0+    ; restore r14
        ld r15, @r0+    ; restore r15
-       ld r1, @r0+     ; restore cr0 == PSW
-       mvtc r1, cr0
+       addi r0, #4     ; don't restore PSW (rte will do it)
        ld r1, @r0+     ; restore cr1 == CBR (no-op, because it's read only)
        mvtc r1, cr1
        ld r1, @r0+     ; restore cr2 == SPI