Commit d97138dce1e8555db81b0f45a06deaed0e9c458f

Authored by Filip Navara
1 parent f80139b3

Fix non-Windows builds.

cache-utils.c
  1 +#include <stdint.h>
1 2 #include "cache-utils.h"
2 3  
3 4 #if defined(_ARCH_PPC)
... ...
cpu-exec.c
... ... @@ -608,7 +608,7 @@ int cpu_exec(CPUState *env1)
608 608 tb_invalidated_flag = 0;
609 609 }
610 610 #ifdef CONFIG_DEBUG_EXEC
611   - qemu_log_mask(CPU_LOG_EXEC, "Trace 0x%08Ix [" TARGET_FMT_lx "] %s\n",
  611 + qemu_log_mask(CPU_LOG_EXEC, "Trace 0x%08" PRIxPTR " [" TARGET_FMT_lx "] %s\n",
612 612 (intptr_t)tb->tc_ptr, tb->pc,
613 613 lookup_symbol(tb->pc));
614 614 #endif
... ...
... ... @@ -284,7 +284,7 @@ void disas(FILE *out, void *code, unsigned long size)
284 284 return;
285 285 #endif
286 286 for (pc = (uintptr_t)code; size > 0; pc += count, size -= count) {
287   - fprintf(out, "0x%08Ix: ", pc);
  287 + fprintf(out, "0x%08" PRIxPTR ": ", pc);
288 288 #ifdef __arm__
289 289 /* since data is included in the code, it is better to
290 290 display code data too */
... ...
target-i386/translate.c
... ... @@ -7799,7 +7799,7 @@ void gen_pc_load(CPUState *env, TranslationBlock *tb,
7799 7799 qemu_log("0x%04x: " TARGET_FMT_lx "\n", i, gen_opc_pc[i]);
7800 7800 }
7801 7801 }
7802   - qemu_log("spc=0x%08Ix pc_pos=0x%x eip=" TARGET_FMT_lx " cs_base=%x\n",
  7802 + qemu_log("spc=0x%08" PRIxPTR " pc_pos=0x%x eip=" TARGET_FMT_lx " cs_base=%x\n",
7803 7803 searched_pc, pc_pos, gen_opc_pc[pc_pos] - tb->cs_base,
7804 7804 (uint32_t)tb->cs_base);
7805 7805 }
... ...