Skip to contentSkip to conversation

[4217] Save the exact SWI return address in Thumb mode.

Qemu-devel Andrzej Zaborowski 1 participant 1 message Apr 16, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4217

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4217
Author:   balrog
Date:     2008-04-16 23:17:02 +0000 (Wed, 16 Apr 2008)

Log Message:
-----------
Save the exact SWI return address in Thumb mode.

Modified Paths:
--------------
trunk/target-arm/translate.c

Modified: trunk/target-arm/translate.c
===================================================================

target-arm/translate.c +1 -1
@@ -8492,7 +8492,7 @@
         if (cond == 0xf) {
             /* swi */
             gen_set_condexec(s);
-            gen_set_pc_im(s->pc | 1);
+            gen_set_pc_im(s->pc);
             s->is_jmp = DISAS_SWI;
             break;
         }