This code should now build the x86_x64-softmmu part 2.
This commit is contained in:
@ -277,7 +277,7 @@ static inline void tb_set_jmp_target(TranslationBlock *tb,
|
||||
int n, uintptr_t addr)
|
||||
{
|
||||
uint16_t offset = tb->tb_jmp_offset[n];
|
||||
tb_set_jmp_target1((uintptr_t)(tb->tc_ptr + offset), addr);
|
||||
tb_set_jmp_target1((uintptr_t)((char*)tb->tc_ptr + offset), addr);
|
||||
}
|
||||
|
||||
#else
|
||||
@ -310,6 +310,9 @@ static inline void tb_add_jump(TranslationBlock *tb, int n,
|
||||
#if defined(CONFIG_TCG_INTERPRETER)
|
||||
extern uintptr_t tci_tb_ptr;
|
||||
# define GETRA() tci_tb_ptr
|
||||
#elif defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
# define GETRA() (uintptr_t)_ReturnAddress()
|
||||
#else
|
||||
# define GETRA() \
|
||||
((uintptr_t)__builtin_extract_return_addr(__builtin_return_address(0)))
|
||||
|
Reference in New Issue
Block a user