Commit d97138dce1e8555db81b0f45a06deaed0e9c458f
1 parent
f80139b3
Fix non-Windows builds.
Showing
4 changed files
with
4 additions
and
3 deletions
cache-utils.c
cpu-exec.c
@@ -608,7 +608,7 @@ int cpu_exec(CPUState *env1) | @@ -608,7 +608,7 @@ int cpu_exec(CPUState *env1) | ||
608 | tb_invalidated_flag = 0; | 608 | tb_invalidated_flag = 0; |
609 | } | 609 | } |
610 | #ifdef CONFIG_DEBUG_EXEC | 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 | (intptr_t)tb->tc_ptr, tb->pc, | 612 | (intptr_t)tb->tc_ptr, tb->pc, |
613 | lookup_symbol(tb->pc)); | 613 | lookup_symbol(tb->pc)); |
614 | #endif | 614 | #endif |
disas.c
@@ -284,7 +284,7 @@ void disas(FILE *out, void *code, unsigned long size) | @@ -284,7 +284,7 @@ void disas(FILE *out, void *code, unsigned long size) | ||
284 | return; | 284 | return; |
285 | #endif | 285 | #endif |
286 | for (pc = (uintptr_t)code; size > 0; pc += count, size -= count) { | 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 | #ifdef __arm__ | 288 | #ifdef __arm__ |
289 | /* since data is included in the code, it is better to | 289 | /* since data is included in the code, it is better to |
290 | display code data too */ | 290 | display code data too */ |
target-i386/translate.c
@@ -7799,7 +7799,7 @@ void gen_pc_load(CPUState *env, TranslationBlock *tb, | @@ -7799,7 +7799,7 @@ void gen_pc_load(CPUState *env, TranslationBlock *tb, | ||
7799 | qemu_log("0x%04x: " TARGET_FMT_lx "\n", i, gen_opc_pc[i]); | 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 | searched_pc, pc_pos, gen_opc_pc[pc_pos] - tb->cs_base, | 7803 | searched_pc, pc_pos, gen_opc_pc[pc_pos] - tb->cs_base, |
7804 | (uint32_t)tb->cs_base); | 7804 | (uint32_t)tb->cs_base); |
7805 | } | 7805 | } |