Skip to contentSkip to conversation

tcg-arm: Implement tcg_register_jit

PATCH In review Richard Henderson 3 participants 13 messages Jun 5, 2013 – Jul 2, 2013

lore
Share & tools
lore
#0 lore raw

v2 cover tcg-arm: Implement tcg_register_jit

Changes v1-v2:
The suggestions for improvement I got from round 1 apply to all of the hosts, not just arm.

r~

Richard Henderson (4):
tcg: Fix high_pc fields in .debug_info
tcg: Move the CIE and FDE header definitions to common code
tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size
tcg-arm: Implement tcg_register_jit

 tcg/arm/tcg-target.c   | 76 ++++++++++++++++++++++++++++++++++++++++++++------
 tcg/hppa/tcg-target.c  | 35 +++++++----------------
 tcg/i386/tcg-target.c  | 45 +++++++++++-------------------
 tcg/sparc/tcg-target.c | 35 +++++++----------------
 tcg/tcg.c              | 22 +++++++++++++--
 5 files changed, 123 insertions(+), 90 deletions(-)
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH v2 1/4 tcg: Fix high_pc fields in .debug_info

I don't think the debugger actually looks at this for anything, using the correct .debug_frame contents, but might as well get it all correct.

---
 tcg/tcg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tcg/tcg.c +2 -2
index 1d8099c..8ea43b3 100644
@@ -2659,9 +2659,9 @@ static void tcg_register_jit_int(void *buf_ptr, size_t buf_size,
     img->sym[1].st_size = buf_size;
 
     img->di.cu_low_pc = buf;
-    img->di.cu_high_pc = buf_size;
+    img->di.cu_high_pc = buf + buf_size;
     img->di.fn_low_pc = buf;
-    img->di.fn_high_pc = buf_size;
+    img->di.fn_high_pc = buf + buf_size;
 
 #ifdef DEBUG_JIT
     /* Enable this block to be able to debug the ELF image file creation.
Signature · 1 line
1.8.1.4
#2 lore raw

PATCH v2 2/4 tcg: Move the CIE and FDE header definitions to common code

In reply to Richard Henderson

These will necessarily be the same layout for all hosts. This limits the amount of boilerplate required to implement jit debug for a host.

---
 tcg/hppa/tcg-target.c  | 35 ++++++++++-------------------------
 tcg/i386/tcg-target.c  | 39 +++++++++++++--------------------------
 tcg/sparc/tcg-target.c | 35 ++++++++++-------------------------
 tcg/tcg.c              | 18 ++++++++++++++++++
 4 files changed, 51 insertions(+), 76 deletions(-)
tcg/hppa/tcg-target.c +10 -25
index 656e736..68f77ba 100644
@@ -1766,28 +1766,11 @@ static void tcg_target_init(TCGContext *s)
 }
 
 typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t id;
-    uint8_t version;
-    char augmentation[1];
-    uint8_t code_align;
-    uint8_t data_align;
-    uint8_t return_column;
-} DebugFrameCIE;
-
-typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t cie_offset;
-    tcg_target_long func_start __attribute__((packed));
-    tcg_target_long func_len __attribute__((packed));
-    uint8_t def_cfa[4];
-    uint8_t ret_ofs[3];
-    uint8_t reg_ofs[ARRAY_SIZE(tcg_target_callee_save_regs) * 2];
-} DebugFrameFDE;
-
-typedef struct {
     DebugFrameCIE cie;
-    DebugFrameFDE fde;
+    DebugFrameFDEHeader fde;
+    uint8_t fde_def_cfa[4];
+    uint8_t fde_ret_ofs[3];
+    uint8_t fde_reg_ofs[ARRAY_SIZE(tcg_target_callee_save_regs) * 2];
 } DebugFrame;
 
 #define ELF_HOST_MACHINE  EM_PARISC
@@ -1806,16 +1789,18 @@ static DebugFrame debug_frame = {
     .cie.data_align = 1,
     .cie.return_column = 2,
 
-    .fde.len = sizeof(DebugFrameFDE)-4, /* length after .len member */
-    .fde.def_cfa = {
+    /* Total FDE size does not include the "len" member.  */
+    .fde.len = sizeof(DebugFrame) - offsetof(DebugFrame, fde.cie_offset),
+
+    .fde_def_cfa = {
         0x12, 30,                       /* DW_CFA_def_cfa_sf sp, ... */
         (-FRAME_SIZE & 0x7f) | 0x80,     /* ... sleb128 -FRAME_SIZE */
         (-FRAME_SIZE >> 7) & 0x7f
     },
-    .fde.ret_ofs = {
+    .fde_ret_ofs = {
         0x11, 2, (-20 / 4) & 0x7f       /* DW_CFA_offset_extended_sf r2, 20 */
     },
-    .fde.reg_ofs = {
+    .fde_reg_ofs = {
         /* This must match the ordering in tcg_target_callee_save_regs.  */
         0x80 + 4, 0,                    /* DW_CFA_offset r4, 0 */
         0x80 + 5, 4,                    /* DW_CFA_offset r5, 4 */
tcg/i386/tcg-target.c +13 -26
index 9eec06c..7d946eb 100644
@@ -2318,27 +2318,10 @@ static void tcg_target_init(TCGContext *s)
 }
 
 typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t id;
-    uint8_t version;
-    char augmentation[1];
-    uint8_t code_align;
-    uint8_t data_align;
-    uint8_t return_column;
-} DebugFrameCIE;
-
-typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t cie_offset;
-    tcg_target_long func_start __attribute__((packed));
-    tcg_target_long func_len __attribute__((packed));
-    uint8_t def_cfa[4];
-    uint8_t reg_ofs[14];
-} DebugFrameFDE;
-
-typedef struct {
     DebugFrameCIE cie;
-    DebugFrameFDE fde;
+    DebugFrameFDEHeader fde;
+    uint8_t fde_def_cfa[4];
+    uint8_t fde_reg_ofs[14];
 } DebugFrame;
 
 #if !defined(__ELF__)
@@ -2353,13 +2336,15 @@ static DebugFrame debug_frame = {
     .cie.data_align = 0x78,             /* sleb128 -8 */
     .cie.return_column = 16,
 
-    .fde.len = sizeof(DebugFrameFDE)-4, /* length after .len member */
-    .fde.def_cfa = {
+    /* Total FDE size does not include the "len" member.  */
+    .fde.len = sizeof(DebugFrame) - offsetof(DebugFrame, fde.cie_offset),
+
+    .fde_def_cfa = {
         12, 7,                          /* DW_CFA_def_cfa %rsp, ... */
         (FRAME_SIZE & 0x7f) | 0x80,     /* ... uleb128 FRAME_SIZE */
         (FRAME_SIZE >> 7)
     },
-    .fde.reg_ofs = {
+    .fde_reg_ofs = {
         0x90, 1,                        /* DW_CFA_offset, %rip, -8 */
         /* The following ordering must match tcg_target_callee_save_regs.  */
         0x86, 2,                        /* DW_CFA_offset, %rbp, -16 */
@@ -2380,13 +2365,15 @@ static DebugFrame debug_frame = {
     .cie.data_align = 0x7c,             /* sleb128 -4 */
     .cie.return_column = 8,
 
-    .fde.len = sizeof(DebugFrameFDE)-4, /* length after .len member */
-    .fde.def_cfa = {
+    /* Total FDE size does not include the "len" member.  */
+    .fde.len = sizeof(DebugFrame) - offsetof(DebugFrame, fde.cie_offset),
+
+    .fde_def_cfa = {
         12, 4,                          /* DW_CFA_def_cfa %esp, ... */
         (FRAME_SIZE & 0x7f) | 0x80,     /* ... uleb128 FRAME_SIZE */
         (FRAME_SIZE >> 7)
     },
-    .fde.reg_ofs = {
+    .fde_reg_ofs = {
         0x88, 1,                        /* DW_CFA_offset, %eip, -4 */
         /* The following ordering must match tcg_target_callee_save_regs.  */
         0x85, 2,                        /* DW_CFA_offset, %ebp, -8 */
tcg/sparc/tcg-target.c +10 -25
index 025af9b..5bfd29c 100644
@@ -1647,28 +1647,11 @@ static void tcg_target_init(TCGContext *s)
 #endif
 
 typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t id;
-    uint8_t version;
-    char augmentation[1];
-    uint8_t code_align;
-    uint8_t data_align;
-    uint8_t return_column;
-} DebugFrameCIE;
-
-typedef struct {
-    uint32_t len __attribute__((aligned((sizeof(void *)))));
-    uint32_t cie_offset;
-    tcg_target_long func_start __attribute__((packed));
-    tcg_target_long func_len __attribute__((packed));
-    uint8_t def_cfa[TCG_TARGET_REG_BITS == 64 ? 4 : 2];
-    uint8_t win_save;
-    uint8_t ret_save[3];
-} DebugFrameFDE;
-
-typedef struct {
     DebugFrameCIE cie;
-    DebugFrameFDE fde;
+    DebugFrameFDEHeader fde;
+    uint8_t fde_def_cfa[TCG_TARGET_REG_BITS == 64 ? 4 : 2];
+    uint8_t fde_win_save;
+    uint8_t fde_ret_save[3];
 } DebugFrame;
 
 static DebugFrame debug_frame = {
@@ -1679,8 +1662,10 @@ static DebugFrame debug_frame = {
     .cie.data_align = -sizeof(void *) & 0x7f,
     .cie.return_column = 15,            /* o7 */
 
-    .fde.len = sizeof(DebugFrameFDE)-4, /* length after .len member */
-    .fde.def_cfa = {
+    /* Total FDE size does not include the "len" member.  */
+    .fde.len = sizeof(DebugFrame) - offsetof(DebugFrame, fde.cie_offset),
+
+    .fde_def_cfa = {
 #if TCG_TARGET_REG_BITS == 64
         12, 30,                         /* DW_CFA_def_cfa i6, 2047 */
         (2047 & 0x7f) | 0x80, (2047 >> 7)
@@ -1688,8 +1673,8 @@ static DebugFrame debug_frame = {
         13, 30                          /* DW_CFA_def_cfa_register i6 */
 #endif
     },
-    .fde.win_save = 0x2d,               /* DW_CFA_GNU_window_save */
-    .fde.ret_save = { 9, 15, 31 },      /* DW_CFA_register o7, i7 */
+    .fde_win_save = 0x2d,               /* DW_CFA_GNU_window_save */
+    .fde_ret_save = { 9, 15, 31 },      /* DW_CFA_register o7, i7 */
 };
 
 void tcg_register_jit(void *buf, size_t buf_size)
tcg/tcg.c +18 -0
index 8ea43b3..babf4b5 100644
@@ -68,6 +68,24 @@ static void tcg_target_qemu_prologue(TCGContext *s);
 static void patch_reloc(uint8_t *code_ptr, int type, 
                         tcg_target_long value, tcg_target_long addend);
 
+/* The CIE and FDE header definitions will be common to all hosts.  */
+typedef struct {
+    uint32_t len __attribute__((aligned((sizeof(void *)))));
+    uint32_t id;
+    uint8_t version;
+    char augmentation[1];
+    uint8_t code_align;
+    uint8_t data_align;
+    uint8_t return_column;
+} DebugFrameCIE;
+
+typedef struct QEMU_PACKED {
+    uint32_t len __attribute__((aligned((sizeof(void *)))));
+    uint32_t cie_offset;
+    tcg_target_long func_start;
+    tcg_target_long func_len;
+} DebugFrameFDEHeader;
+
 static void tcg_register_jit_int(void *buf, size_t size,
                                  void *debug_frame, size_t debug_frame_size)
     __attribute__((unused));
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH v2 3/4 tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size

In reply to Richard Henderson

We can check the condition at compile time, rather than run time.

---
 tcg/i386/tcg-target.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tcg/i386/tcg-target.c +3 -3
index 7d946eb..991f484 100644
@@ -2324,6 +2324,9 @@ typedef struct {
     uint8_t fde_reg_ofs[14];
 } DebugFrame;
 
+/* We're expecting a 2 byte uleb128 encoded value.  */
+QEMU_BUILD_BUG_ON(FRAME_SIZE >= (1 << 14));
+
 #if !defined(__ELF__)
     /* Host machine without ELF. */
 #elif TCG_TARGET_REG_BITS == 64
@@ -2387,9 +2390,6 @@ static DebugFrame debug_frame = {
 #if defined(ELF_HOST_MACHINE)
 void tcg_register_jit(void *buf, size_t buf_size)
 {
-    /* We're expecting a 2 byte uleb128 encoded value.  */
-    assert(FRAME_SIZE >> 14 == 0);
-
     debug_frame.fde.func_start = (tcg_target_long) buf;
     debug_frame.fde.func_len = buf_size;
 
Signature · 1 line
1.8.1.4
#5 lore raw

PATCH v2 4/4 tcg-arm: Implement tcg_register_jit

In reply to Richard Henderson

Allows unwinding past the code_gen_buffer.

---
 tcg/arm/tcg-target.c | 76 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 67 insertions(+), 9 deletions(-)
tcg/arm/tcg-target.c +67 -9
index 3d43412..a20c96d 100644
@@ -2100,23 +2100,31 @@ static inline void tcg_out_movi(TCGContext *s, TCGType type,
     tcg_out_movi32(s, COND_AL, ret, arg);
 }
 
+/* Compute frame size via macros, to share between tcg_target_qemu_prologue
+   and tcg_register_jit.  */
+
+#define PUSH_SIZE  ((11 - 4 + 1 + 1) * sizeof(tcg_target_long))
+
+#define FRAME_SIZE \
+    ((PUSH_SIZE \
+      + TCG_STATIC_CALL_ARGS_SIZE \
+      + CPU_TEMP_BUF_NLONGS * sizeof(long) \
+      + TCG_TARGET_STACK_ALIGN - 1) \
+     & -TCG_TARGET_STACK_ALIGN)
+
 static void tcg_target_qemu_prologue(TCGContext *s)
 {
-    int frame_size;
+    int stack_addend;
 
     /* Calling convention requires us to save r4-r11 and lr.  */
     /* stmdb sp!, { r4 - r11, lr } */
     tcg_out32(s, (COND_AL << 28) | 0x092d4ff0);
 
-    /* Allocate the local stack frame.  */
-    frame_size = TCG_STATIC_CALL_ARGS_SIZE;
-    frame_size += CPU_TEMP_BUF_NLONGS * sizeof(long);
-    /* We saved an odd number of registers above; keep an 8 aligned stack.  */
-    frame_size = ((frame_size + TCG_TARGET_STACK_ALIGN - 1)
-                  & -TCG_TARGET_STACK_ALIGN) + 4;
+    /* Reserve callee argument and tcg temp space.  */
+    stack_addend = FRAME_SIZE - PUSH_SIZE;
 
     tcg_out_dat_rI(s, COND_AL, ARITH_SUB, TCG_REG_CALL_STACK,
-                   TCG_REG_CALL_STACK, frame_size, 1);
+                   TCG_REG_CALL_STACK, stack_addend, 1);
     tcg_set_frame(s, TCG_REG_CALL_STACK, TCG_STATIC_CALL_ARGS_SIZE,
                   CPU_TEMP_BUF_NLONGS * sizeof(long));
 
@@ -2127,8 +2135,58 @@ static void tcg_target_qemu_prologue(TCGContext *s)
 
     /* Epilogue.  We branch here via tb_ret_addr.  */
     tcg_out_dat_rI(s, COND_AL, ARITH_ADD, TCG_REG_CALL_STACK,
-                   TCG_REG_CALL_STACK, frame_size, 1);
+                   TCG_REG_CALL_STACK, stack_addend, 1);
 
     /* ldmia sp!, { r4 - r11, pc } */
     tcg_out32(s, (COND_AL << 28) | 0x08bd8ff0);
 }
+
+typedef struct {
+    DebugFrameCIE cie;
+    DebugFrameFDEHeader fde;
+    uint8_t fde_def_cfa[4];
+    uint8_t fde_reg_ofs[18];
+} DebugFrame;
+
+#define ELF_HOST_MACHINE EM_ARM
+
+/* We're expecting a 2 byte uleb128 encoded value.  */
+QEMU_BUILD_BUG_ON(FRAME_SIZE >= (1 << 14));
+
+static DebugFrame debug_frame = {
+    .cie.len = sizeof(DebugFrameCIE)-4, /* length after .len member */
+    .cie.id = -1,
+    .cie.version = 1,
+    .cie.code_align = 1,
+    .cie.data_align = 0x7c,             /* sleb128 -4 */
+    .cie.return_column = 14,
+
+    /* Total FDE size does not include the "len" member.  */
+    .fde.len = sizeof(DebugFrame) - offsetof(DebugFrame, fde.cie_offset),
+
+    .fde_def_cfa = {
+        12, 13,                         /* DW_CFA_def_cfa sp, ... */
+        (FRAME_SIZE & 0x7f) | 0x80,     /* ... uleb128 FRAME_SIZE */
+        (FRAME_SIZE >> 7)
+    },
+    .fde_reg_ofs = {
+        /* The following must match the stmdb in the prologue.  */
+        0x8e, 1,                        /* DW_CFA_offset, lr, -4 */
+        0x8b, 2,                        /* DW_CFA_offset, r11, -8 */
+        0x8a, 3,                        /* DW_CFA_offset, r10, -12 */
+        0x89, 4,                        /* DW_CFA_offset, r9, -16 */
+        0x88, 5,                        /* DW_CFA_offset, r8, -20 */
+        0x87, 6,                        /* DW_CFA_offset, r7, -24 */
+        0x86, 7,                        /* DW_CFA_offset, r6, -28 */
+        0x85, 8,                        /* DW_CFA_offset, r5, -32 */
+        0x84, 9,                        /* DW_CFA_offset, r4, -36 */
+    }
+};
+
+void tcg_register_jit(void *buf, size_t buf_size)
+{
+    debug_frame.fde.func_start = (tcg_target_long) buf;
+    debug_frame.fde.func_len = buf_size;
+
+    tcg_register_jit_int(buf, buf_size, &debug_frame, sizeof(debug_frame));
+}
Signature · 1 line
1.8.1.4
#9 lore raw
In reply to Richard Henderson

Ping.

Quoted 21 lines · Richard Henderson

Changes v1-v2:
The suggestions for improvement I got from round 1 apply to all of the hosts, not just arm.

r~

Richard Henderson (4):
tcg: Fix high_pc fields in .debug_info
tcg: Move the CIE and FDE header definitions to common code
tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size
tcg-arm: Implement tcg_register_jit

 tcg/arm/tcg-target.c   | 76 ++++++++++++++++++++++++++++++++++++++++++++------
 tcg/hppa/tcg-target.c  | 35 +++++++----------------
 tcg/i386/tcg-target.c  | 45 +++++++++++-------------------
 tcg/sparc/tcg-target.c | 35 +++++++----------------
 tcg/tcg.c              | 22 +++++++++++++--
 5 files changed, 123 insertions(+), 90 deletions(-)
#10 lore raw

Ping.

Quoted 26 lines · Richard Henderson

Ping.

Quoted 21 lines · Richard Henderson

Changes v1-v2:
The suggestions for improvement I got from round 1 apply to all of the hosts, not just arm.

r~

Richard Henderson (4):
tcg: Fix high_pc fields in .debug_info
tcg: Move the CIE and FDE header definitions to common code
tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size
tcg-arm: Implement tcg_register_jit

 tcg/arm/tcg-target.c   | 76 ++++++++++++++++++++++++++++++++++++++++++++------
 tcg/hppa/tcg-target.c  | 35 +++++++----------------
 tcg/i386/tcg-target.c  | 45 +++++++++++-------------------
 tcg/sparc/tcg-target.c | 35 +++++++----------------
 tcg/tcg.c              | 22 +++++++++++++--
 5 files changed, 123 insertions(+), 90 deletions(-)
Reviewed-by on v2 3/4
#4 lore raw

Re: [Qemu-devel] [PATCH v2 3/4] tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size

In reply to Richard Henderson

Am 05.06.2013 19:29, schrieb Richard Henderson:

Quoted 12 lines

We can check the condition at compile time, rather than run time.

---
 tcg/i386/tcg-target.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tcg/i386/tcg-target.c +0 -0
index 7d946eb..991f484 100644

tcg/i386/tcg-target.c typedef struct { · line 2328

Quoted 5 lines
tcg/i386/tcg-target.c +2 -0
@@ -2324,6 +2324,9 @@ typedef struct {
     uint8_t fde_reg_ofs[14];
 } DebugFrame;
 
+/* We're expecting a 2 byte uleb128 encoded value.  */
+QEMU_BUILD_BUG_ON(FRAME_SIZE >= (1 << 14));

Andreas

Quoted 14 lines
tcg/i386/tcg-target.c +1 -3
+
 #if !defined(__ELF__)
     /* Host machine without ELF. */
 #elif TCG_TARGET_REG_BITS == 64
@@ -2387,9 +2390,6 @@ static DebugFrame debug_frame = {
 #if defined(ELF_HOST_MACHINE)
 void tcg_register_jit(void *buf, size_t buf_size)
 {
-    /* We're expecting a 2 byte uleb128 encoded value.  */
-    assert(FRAME_SIZE >> 14 == 0);
-
     debug_frame.fde.func_start = (tcg_target_long) buf;
     debug_frame.fde.func_len = buf_size;
 
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#6 lore raw
In reply to Richard Henderson

Am 05.06.2013 19:29, schrieb Richard Henderson:

Quoted 6 lines

Allows unwinding past the code_gen_buffer.

---
 tcg/arm/tcg-target.c | 76 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 67 insertions(+), 9 deletions(-)

How does the target learn about availability of tcg_register_jit()? I don't see it used in the patch or in stubs/ and the arm build succeeds.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#7 lore raw
Quoted 9 lines · Andreas Färber

Am 05.06.2013 19:29, schrieb Richard Henderson:

Quoted 6 lines

Allows unwinding past the code_gen_buffer.

---
 tcg/arm/tcg-target.c | 76 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 67 insertions(+), 9 deletions(-)

How does the target learn about availability of tcg_register_jit()?

(You mean "how does the core TCG code learn about..." -- this is an optional facility the tcg target facility can provide to the core).

Quoted 1 line

I don't see it used in the patch or in stubs/ and the arm build succeeds.

It's gated on whether the tcg backend defines ELF_HOST_MACHINE:
see the comment at the start of the #ifdef ELF_HOST_MACHINE section in tcg/tcg.c.

thanks
-- PMM

#8 lore raw

Am 18.06.2013 00:16, schrieb Peter Maydell:

Quoted 15 lines · Andreas Färber
Quoted 9 lines

Am 05.06.2013 19:29, schrieb Richard Henderson:

Quoted 6 lines

Allows unwinding past the code_gen_buffer.

---
 tcg/arm/tcg-target.c | 76 +++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 67 insertions(+), 9 deletions(-)

How does the target learn about availability of tcg_register_jit()?

(You mean "how does the core TCG code learn about..." -- this is an optional facility the tcg target facility can provide to the core).

Quoted 5 lines
Quoted 1 line

I don't see it used in the patch or in stubs/ and the arm build succeeds.

It's gated on whether the tcg backend defines ELF_HOST_MACHINE:
see the comment at the start of the #ifdef ELF_HOST_MACHINE section in tcg/tcg.c.

Thanks, that's what I was missing.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#11 lore raw
In reply to Richard Henderson

Ping 3.

Quoted 31 lines · Richard Henderson

Ping.

Quoted 26 lines · Richard Henderson

Ping.

Quoted 21 lines · Richard Henderson

Changes v1-v2:
The suggestions for improvement I got from round 1 apply to all of the hosts, not just arm.

r~

Richard Henderson (4):
tcg: Fix high_pc fields in .debug_info
tcg: Move the CIE and FDE header definitions to common code
tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size
tcg-arm: Implement tcg_register_jit

 tcg/arm/tcg-target.c   | 76 ++++++++++++++++++++++++++++++++++++++++++++------
 tcg/hppa/tcg-target.c  | 35 +++++++----------------
 tcg/i386/tcg-target.c  | 45 +++++++++++-------------------
 tcg/sparc/tcg-target.c | 35 +++++++----------------
 tcg/tcg.c              | 22 +++++++++++++--
 5 files changed, 123 insertions(+), 90 deletions(-)
#12 lore raw

Ping 4. Should I just send a PULL for the only partially reviewed series?

r~

Quoted 35 lines · Richard Henderson

Ping 3.

Quoted 31 lines · Richard Henderson

Ping.

Quoted 26 lines · Richard Henderson

Ping.

Quoted 21 lines · Richard Henderson

Changes v1-v2:
The suggestions for improvement I got from round 1 apply to all of the hosts, not just arm.

r~

Richard Henderson (4):
tcg: Fix high_pc fields in .debug_info
tcg: Move the CIE and FDE header definitions to common code
tcg-i386: Use QEMU_BUILD_BUG_ON instead of assert for frame size
tcg-arm: Implement tcg_register_jit

 tcg/arm/tcg-target.c   | 76 ++++++++++++++++++++++++++++++++++++++++++++------
 tcg/hppa/tcg-target.c  | 35 +++++++----------------
 tcg/i386/tcg-target.c  | 45 +++++++++++-------------------
 tcg/sparc/tcg-target.c | 35 +++++++----------------
 tcg/tcg.c              | 22 +++++++++++++--
 5 files changed, 123 insertions(+), 90 deletions(-)