mirror of https://gitee.com/openkylin/qemu.git
tcg: Fix jit debug for x32
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
d3452f1f40
commit
edee2579ae
10
tcg/tcg.c
10
tcg/tcg.c
|
@ -49,10 +49,10 @@
|
||||||
|
|
||||||
#include "tcg-op.h"
|
#include "tcg-op.h"
|
||||||
|
|
||||||
#if TCG_TARGET_REG_BITS == 64
|
#if UINTPTR_MAX == UINT32_MAX
|
||||||
# define ELF_CLASS ELFCLASS64
|
|
||||||
#else
|
|
||||||
# define ELF_CLASS ELFCLASS32
|
# define ELF_CLASS ELFCLASS32
|
||||||
|
#else
|
||||||
|
# define ELF_CLASS ELFCLASS64
|
||||||
#endif
|
#endif
|
||||||
#ifdef HOST_WORDS_BIGENDIAN
|
#ifdef HOST_WORDS_BIGENDIAN
|
||||||
# define ELF_DATA ELFDATA2MSB
|
# define ELF_DATA ELFDATA2MSB
|
||||||
|
@ -82,8 +82,8 @@ typedef struct {
|
||||||
typedef struct QEMU_PACKED {
|
typedef struct QEMU_PACKED {
|
||||||
uint32_t len __attribute__((aligned((sizeof(void *)))));
|
uint32_t len __attribute__((aligned((sizeof(void *)))));
|
||||||
uint32_t cie_offset;
|
uint32_t cie_offset;
|
||||||
tcg_target_long func_start;
|
uintptr_t func_start;
|
||||||
tcg_target_long func_len;
|
uintptr_t func_len;
|
||||||
} DebugFrameFDEHeader;
|
} DebugFrameFDEHeader;
|
||||||
|
|
||||||
static void tcg_register_jit_int(void *buf, size_t size,
|
static void tcg_register_jit_int(void *buf, size_t size,
|
||||||
|
|
Loading…
Reference in New Issue