]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commitdiff
use 32 bit pointer for tb_next even on 64 bit archs
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Jun 2003 00:54:44 +0000 (00:54 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 5 Jun 2003 00:54:44 +0000 (00:54 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@205 c046a42c-6fe2-441c-8c8c-71466251a162

exec.h

diff --git a/exec.h b/exec.h
index 0098ad83acca77fb9b5430187773d23fd9c35606..d8fc640b637b64437acfbe9002e2113ff55f8b55 100644 (file)
--- a/exec.h
+++ b/exec.h
@@ -65,7 +65,7 @@ typedef struct TranslationBlock {
 #ifdef USE_DIRECT_JUMP
     uint16_t tb_jmp_offset[2]; /* offset of jump instruction */
 #else
-    uint8_t *tb_next[2]; /* address of jump generated code */
+    uint32_t tb_next[2]; /* address of jump generated code */
 #endif
     /* list of TBs jumping to this one. This is a circular list using
        the two least significant bits of the pointers to tell what is
@@ -142,7 +142,7 @@ static inline void tb_set_jmp_target(TranslationBlock *tb,
 static inline void tb_set_jmp_target(TranslationBlock *tb, 
                                      int n, unsigned long addr)
 {
-    tb->tb_next[n] = (void *)addr;
+    tb->tb_next[n] = addr;
 }
 
 #endif