removed warning
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 Nov 2007 17:26:45 +0000 (17:26 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 11 Nov 2007 17:26:45 +0000 (17:26 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3599 c046a42c-6fe2-441c-8c8c-71466251a162

translate-all.c

index c42fedf..9f602be 100644 (file)
@@ -241,7 +241,7 @@ int cpu_restore_state(TranslationBlock *tb,
         if (npc == 1) {
             /* dynamic NPC: already stored */
         } else if (npc == 2) {
-            target_ulong t2 = (target_ulong)puc;
+            target_ulong t2 = (target_ulong)(unsigned long)puc;
             /* jump PC: use T2 and the jump targets of the translation */
             if (t2)
                 env->npc = gen_opc_jump_pc[0];