target/tricore/helper: Use correct string format in cpu_tlb_fill()
PATCH 1/1 target/tricore/helper: Use correct string format in cpu_tlb_fill()
'address' got converted from target_ulong to vaddr in commit 68d6eee73c ("target/tricore: Convert to CPUClass::tlb_fill"). Use the corresponding format string to avoid casting.
--- target/tricore/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/tricore/helper.c +2 -2
@@ -76,9 +76,9 @@ bool tricore_cpu_tlb_fill(CPUState *cs, vaddr address, int size, ret =get_physical_address (env, &physical, &prot, address, rw, mmu_idx); -qemu_log_mask (CPU_LOG_MMU ,"%s address=" TARGET_FMT_lx" ret %d physical " +qemu_log_mask (CPU_LOG_MMU ,"%s address=0x%" VADDR_PRIx" ret %d physical " HWADDR_FMT_plx" prot %d\n" , - __func__, (target_ulong )address, ret, physical, prot); + __func__, address, ret, physical, prot);if (ret ==TLBRET_MATCH ) { tlb_set_page(cs, address & TARGET_PAGE_MASK,
Signature · 1 line
2.41.0
+Anton
Quoted 25 lines · Philippe Mathieu-Daudé
'address' got converted from
target_ulongto vaddr in commit68d6eee73c("target/tricore: Convert toCPUClass::tlb_fill"). Use the corresponding format string to avoid casting.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/tricore/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)target/tricore/helper.c +2
-2@@ -76,9 +76,9 @@ bool tricore_cpu_tlb_fill(CPUState *cs, vaddr address, int size, ret =get_physical_address (env, &physical, &prot, address, rw, mmu_idx); -qemu_log_mask (CPU_LOG_MMU ,"%s address=" TARGET_FMT_lx" ret %d physical " +qemu_log_mask (CPU_LOG_MMU ,"%s address=0x%" VADDR_PRIx" ret %d physical " HWADDR_FMT_plx" prot %d\n" , - __func__, (target_ulong )address, ret, physical, prot); + __func__, address, ret, physical, prot);if (ret ==TLBRET_MATCH ) { tlb_set_page(cs, address & TARGET_PAGE_MASK,
Quoted 8 lines · Philippe Mathieu-Daudé
'address' got converted from
target_ulongto vaddr in commit68d6eee73c("target/tricore: Convert toCPUClass::tlb_fill"). Use the corresponding format string to avoid casting.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- target/tricore/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
r~
Quoted 8 lines · Philippe Mathieu-Daudé
'address' got converted from
target_ulongto vaddr in commit68d6eee73c("target/tricore: Convert toCPUClass::tlb_fill"). Use the corresponding format string to avoid casting.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/tricore/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Cheers,
Bastian
Quoted 8 lines · Philippe Mathieu-Daudé
'address' got converted from
target_ulongto vaddr in commit68d6eee73c("target/tricore: Convert toCPUClass::tlb_fill"). Use the corresponding format string to avoid casting.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/tricore/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, patch queued.