diff options
author | David 'Digit' Turner <digit@android.com> | 2010-10-20 19:07:28 +0200 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-10-21 17:03:05 +0200 |
commit | d9b6cb97a8a9e93f1bbe5351874b03f7faa81783 (patch) | |
tree | ed29b83a936789ffcc40d1170f6ff5c0653831c6 /tcg | |
parent | 7d98eae200f294f51ada36d9b01591fc4726dd94 (diff) | |
download | external_qemu-d9b6cb97a8a9e93f1bbe5351874b03f7faa81783.zip external_qemu-d9b6cb97a8a9e93f1bbe5351874b03f7faa81783.tar.gz external_qemu-d9b6cb97a8a9e93f1bbe5351874b03f7faa81783.tar.bz2 |
Fix linux-x86_64 build.
Fix various 64-bitness issues in the source code to
make the --try-64 option work again on Linux. Note that
the generated binary is not faster than its 32-bit variant
when it comes to benchmarking the boot sequence.
Change-Id: Iad248e033757d4cd25524a438a5dbe1cf3aca6cf
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1125,7 +1125,7 @@ static void tcg_liveness_analysis(TCGContext *s) /* sanity check */ if (gen_opc_ptr - gen_opc_buf > OPC_BUF_SIZE) { fprintf(stderr, "PANIC: too many opcodes generated (%d > %d)\n", - gen_opc_ptr - gen_opc_buf, OPC_BUF_SIZE); + (int)(gen_opc_ptr - gen_opc_buf), OPC_BUF_SIZE); tcg_abort(); } @@ -1982,9 +1982,9 @@ static inline int tcg_gen_code_common(TCGContext *s, uint8_t *gen_code_buf, * tcg_gen_code_search_pc. */ if (memcheck_enabled && search_pc < 0 && gen_opc_instr_start[op_index]) { - gen_opc_tpc2gpc_ptr[tpc2gpc_index] = (target_ulong)s->code_ptr; + gen_opc_tpc2gpc_ptr[tpc2gpc_index] = s->code_ptr; tpc2gpc_index++; - gen_opc_tpc2gpc_ptr[tpc2gpc_index] = gen_opc_pc[op_index]; + gen_opc_tpc2gpc_ptr[tpc2gpc_index] = (void*)(ptrdiff_t)gen_opc_pc[op_index]; tpc2gpc_index++; gen_opc_tpc2gpc_pairs++; } @@ -2087,7 +2087,7 @@ int tcg_gen_code(TCGContext *s, uint8_t *gen_code_buf) /* sanity check */ if (gen_opc_ptr - gen_opc_buf > OPC_BUF_SIZE) { fprintf(stderr, "PANIC: too many opcodes generated (%d > %d)\n", - gen_opc_ptr - gen_opc_buf, OPC_BUF_SIZE); + (int)(gen_opc_ptr - gen_opc_buf), OPC_BUF_SIZE); tcg_abort(); } |