[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] accel/tcg: Replace target_ulong with vaddr in helper_unalign
From: |
Anton Johansson |
Subject: |
[PATCH 4/8] accel/tcg: Replace target_ulong with vaddr in helper_unaligned_*() |
Date: |
Thu, 20 Apr 2023 23:28:46 +0200 |
Updates helper_unaligned_[ld|st] to take the store/load address as a
vaddr instead of a target_ulong.
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
accel/tcg/user-exec.c | 4 ++--
include/tcg/tcg-ldst.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c
index 7ec49933fb..d0673de771 100644
--- a/accel/tcg/user-exec.c
+++ b/accel/tcg/user-exec.c
@@ -904,12 +904,12 @@ static void validate_memop(MemOpIdx oi, MemOp expected)
#endif
}
-void helper_unaligned_ld(CPUArchState *env, target_ulong addr)
+void helper_unaligned_ld(CPUArchState *env, vaddr addr)
{
cpu_loop_exit_sigbus(env_cpu(env), addr, MMU_DATA_LOAD, GETPC());
}
-void helper_unaligned_st(CPUArchState *env, target_ulong addr)
+void helper_unaligned_st(CPUArchState *env, vaddr addr)
{
cpu_loop_exit_sigbus(env_cpu(env), addr, MMU_DATA_STORE, GETPC());
}
diff --git a/include/tcg/tcg-ldst.h b/include/tcg/tcg-ldst.h
index 2ba22bd5fe..cad7782e2e 100644
--- a/include/tcg/tcg-ldst.h
+++ b/include/tcg/tcg-ldst.h
@@ -72,8 +72,8 @@ void helper_be_stq_mmu(CPUArchState *env, target_ulong addr,
uint64_t val,
#else
-G_NORETURN void helper_unaligned_ld(CPUArchState *env, target_ulong addr);
-G_NORETURN void helper_unaligned_st(CPUArchState *env, target_ulong addr);
+G_NORETURN void helper_unaligned_ld(CPUArchState *env, vaddr addr);
+G_NORETURN void helper_unaligned_st(CPUArchState *env, vaddr addr);
#endif /* CONFIG_SOFTMMU */
#endif /* TCG_LDST_H */
--
2.39.1
- [PATCH 8/8] tcg: Replace target_ulong with vaddr in tcg_gen_code(), (continued)
- [PATCH 8/8] tcg: Replace target_ulong with vaddr in tcg_gen_code(), Anton Johansson, 2023/04/20
- [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Anton Johansson, 2023/04/20
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Richard Henderson, 2023/04/23
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Philippe Mathieu-Daudé, 2023/04/23
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Richard Henderson, 2023/04/23
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Alex Bennée, 2023/04/23
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Richard Henderson, 2023/04/23
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Anton Johansson, 2023/04/24
- Re: [PATCH 7/8] cpu: Replace target_ulong with vaddr in tb_invalidate_phys_addr(), Philippe Mathieu-Daudé, 2023/04/24
[PATCH 4/8] accel/tcg: Replace target_ulong with vaddr in helper_unaligned_*(),
Anton Johansson <=
[PATCH 6/8] accel/tcg: Replace target_ulong with vaddr in page_*(), Anton Johansson, 2023/04/20
Re: [PATCH 0/8] Start replacing target_ulong with vaddr, Richard Henderson, 2023/04/23