Commit 95f7652d authored by bellard's avatar bellard
Browse files

use 32 bit pointer for tb_next even on 64 bit archs

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 3ec9c4fc
......@@ -65,7 +65,7 @@ typedef struct TranslationBlock {
uint16_t tb_jmp_offset[2]; /* offset of jump instruction */
uint8_t *tb_next[2]; /* address of jump generated code */
uint32_t tb_next[2]; /* address of jump generated code */
/* 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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment