[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/8] accel/tcg: Replace target_ulong with vaddr in translator_*()
From: |
Anton Johansson |
Subject: |
[PATCH 5/8] accel/tcg: Replace target_ulong with vaddr in translator_*() |
Date: |
Thu, 20 Apr 2023 23:28:47 +0200 |
Use vaddr for guest virtual address in translator_use_goto_tb() and
translator_loop().
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
accel/tcg/translator.c | 10 +++++-----
include/exec/translator.h | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c
index 7bda43ff61..58737eff97 100644
--- a/accel/tcg/translator.c
+++ b/accel/tcg/translator.c
@@ -18,7 +18,7 @@
#include "exec/plugin-gen.h"
#include "exec/replay-core.h"
-bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest)
+bool translator_use_goto_tb(DisasContextBase *db, vaddr dest)
{
/* Suppress goto_tb if requested. */
if (tb_cflags(db->tb) & CF_NO_GOTO_TB) {
@@ -30,8 +30,8 @@ bool translator_use_goto_tb(DisasContextBase *db,
target_ulong dest)
}
void translator_loop(CPUState *cpu, TranslationBlock *tb, int *max_insns,
- target_ulong pc, void *host_pc,
- const TranslatorOps *ops, DisasContextBase *db)
+ vaddr pc, void *host_pc, const TranslatorOps *ops,
+ DisasContextBase *db)
{
uint32_t cflags = tb_cflags(tb);
bool plugin_enabled;
@@ -137,10 +137,10 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb,
int *max_insns,
}
static void *translator_access(CPUArchState *env, DisasContextBase *db,
- target_ulong pc, size_t len)
+ vaddr pc, size_t len)
{
void *host;
- target_ulong base, end;
+ vaddr base, end;
TranslationBlock *tb;
tb = db->tb;
diff --git a/include/exec/translator.h b/include/exec/translator.h
index 797fef7515..fa3c2ba529 100644
--- a/include/exec/translator.h
+++ b/include/exec/translator.h
@@ -147,8 +147,8 @@ typedef struct TranslatorOps {
* - When too many instructions have been translated.
*/
void translator_loop(CPUState *cpu, TranslationBlock *tb, int *max_insns,
- target_ulong pc, void *host_pc,
- const TranslatorOps *ops, DisasContextBase *db);
+ vaddr pc, void *host_pc, const TranslatorOps *ops,
+ DisasContextBase *db);
/**
* translator_use_goto_tb
@@ -158,7 +158,7 @@ void translator_loop(CPUState *cpu, TranslationBlock *tb,
int *max_insns,
* Return true if goto_tb is allowed between the current TB
* and the destination PC.
*/
-bool translator_use_goto_tb(DisasContextBase *db, target_ulong dest);
+bool translator_use_goto_tb(DisasContextBase *db, vaddr dest);
/*
* Translator Load Functions
--
2.39.1
- [PATCH 0/8] Start replacing target_ulong with vaddr, Anton Johansson, 2023/04/20
- [PATCH 3/8] accel/tcg: Replace target_ulong with vaddr in *_mmu_lookup(), Anton Johansson, 2023/04/20
- [PATCH 1/8] accel: Replace `target_ulong` with `vaddr` in TB/TLB, Anton Johansson, 2023/04/20
- [PATCH 2/8] accel: Replace target_ulong with vaddr in probe_*(), Anton Johansson, 2023/04/20
- [PATCH 5/8] accel/tcg: Replace target_ulong with vaddr in translator_*(),
Anton Johansson <=
- [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