summaryrefslogtreecommitdiffstats
path: root/exec.h
diff options
context:
space:
mode:
authorbellard2003-06-05 02:54:44 +0200
committerbellard2003-06-05 02:54:44 +0200
commit95f7652d65ccd2d67efa3180259a39cbbdb8c6a1 (patch)
treeb2c2ea8b611ca3826cd01ebe206b238a5b8fff81 /exec.h
parentseparated helpers from micro operations (diff)
downloadqemu-95f7652d65ccd2d67efa3180259a39cbbdb8c6a1.tar.gz
qemu-95f7652d65ccd2d67efa3180259a39cbbdb8c6a1.tar.xz
qemu-95f7652d65ccd2d67efa3180259a39cbbdb8c6a1.zip
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
Diffstat (limited to 'exec.h')
-rw-r--r--exec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec.h b/exec.h
index 0098ad83ac..d8fc640b63 100644
--- 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