From d9b6cb97a8a9e93f1bbe5351874b03f7faa81783 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 20 Oct 2010 19:07:28 +0200 Subject: 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 --- translate-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'translate-all.c') diff --git a/translate-all.c b/translate-all.c index c6b369a..3830007 100644 --- a/translate-all.c +++ b/translate-all.c @@ -59,8 +59,8 @@ uint32_t gen_opc_hflags[OPC_BUF_SIZE]; /* Array of (tb_pc, guest_pc) pairs, big enough for all translations. This * array is used to obtain guest PC address from a translated PC address. * tcg_gen_code_common will fill it up when memchecker is enabled. */ -static target_ulong gen_opc_tpc2gpc[OPC_BUF_SIZE * 2]; -target_ulong* gen_opc_tpc2gpc_ptr = &gen_opc_tpc2gpc[0]; +static void* gen_opc_tpc2gpc[OPC_BUF_SIZE * 2]; +void** gen_opc_tpc2gpc_ptr = &gen_opc_tpc2gpc[0]; /* Number of (tb_pc, guest_pc) pairs stored in gen_opc_tpc2gpc array. */ unsigned int gen_opc_tpc2gpc_pairs; #endif // CONFIG_MEMCHECK -- cgit v1.1