Commit 95f7652d65ccd2d67efa3180259a39cbbdb8c6a1

Authored by bellard
1 parent 3ec9c4fc

use 32 bit pointer for tb_next even on 64 bit archs


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@205 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
... ... @@ -65,7 +65,7 @@ typedef struct TranslationBlock {
65 65 #ifdef USE_DIRECT_JUMP
66 66 uint16_t tb_jmp_offset[2]; /* offset of jump instruction */
67 67 #else
68   - uint8_t *tb_next[2]; /* address of jump generated code */
  68 + uint32_t tb_next[2]; /* address of jump generated code */
69 69 #endif
70 70 /* list of TBs jumping to this one. This is a circular list using
71 71 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,
142 142 static inline void tb_set_jmp_target(TranslationBlock *tb,
143 143 int n, unsigned long addr)
144 144 {
145   - tb->tb_next[n] = (void *)addr;
  145 + tb->tb_next[n] = addr;
146 146 }
147 147  
148 148 #endif
... ...