[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/14] target/i386/hvf: use emul_ops->read_mem in x86_emu.c
From: |
Wei Liu |
Subject: |
[PATCH v2 05/14] target/i386/hvf: use emul_ops->read_mem in x86_emu.c |
Date: |
Fri, 7 Mar 2025 11:55:16 -0800 |
No functional change.
Signed-off-by: Wei Liu <liuwe@linux.microsoft.com>
---
target/i386/hvf/x86_emu.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/i386/hvf/x86_emu.c b/target/i386/hvf/x86_emu.c
index e59a73e00d5c..7b816b5a1dab 100644
--- a/target/i386/hvf/x86_emu.c
+++ b/target/i386/hvf/x86_emu.c
@@ -184,7 +184,7 @@ void write_val_ext(CPUX86State *env, target_ulong ptr,
target_ulong val, int siz
uint8_t *read_mmio(CPUX86State *env, target_ulong ptr, int bytes)
{
- vmx_read_mem(env_cpu(env), env->emu_mmio_buf, ptr, bytes);
+ emul_ops->read_mem(env_cpu(env), env->emu_mmio_buf, ptr, bytes);
return env->emu_mmio_buf;
}
@@ -510,8 +510,8 @@ static void exec_outs_single(CPUX86State *env, struct
x86_decode *decode)
{
target_ulong addr = decode_linear_addr(env, decode, RSI(env), R_DS);
- vmx_read_mem(env_cpu(env), env->emu_mmio_buf, addr,
- decode->operand_size);
+ emul_ops->read_mem(env_cpu(env), env->emu_mmio_buf, addr,
+ decode->operand_size);
emul_ops->handle_io(env_cpu(env), DX(env), env->emu_mmio_buf, 1,
decode->operand_size, 1);
@@ -620,7 +620,7 @@ static void exec_scas_single(CPUX86State *env, struct
x86_decode *decode)
addr = linear_addr_size(env_cpu(env), RDI(env),
decode->addressing_size, R_ES);
decode->op[1].type = X86_VAR_IMMEDIATE;
- vmx_read_mem(env_cpu(env), &decode->op[1].val, addr, decode->operand_size);
+ emul_ops->read_mem(env_cpu(env), &decode->op[1].val, addr,
decode->operand_size);
EXEC_2OP_FLAGS_CMD(env, decode, -, SET_FLAGS_OSZAPC_SUB, false);
string_increment_reg(env, R_EDI, decode);
@@ -645,7 +645,7 @@ static void exec_lods_single(CPUX86State *env, struct
x86_decode *decode)
target_ulong val = 0;
addr = decode_linear_addr(env, decode, RSI(env), R_DS);
- vmx_read_mem(env_cpu(env), &val, addr, decode->operand_size);
+ emul_ops->read_mem(env_cpu(env), &val, addr, decode->operand_size);
write_reg(env, R_EAX, val, decode->operand_size);
string_increment_reg(env, R_ESI, decode);
--
2.47.2
- [PATCH v2 00/14] Factor out HVF's instruction emulator, Wei Liu, 2025/03/07
- [PATCH v2 03/14] target/i386/hvf: provide and use handle_io in emul_ops, Wei Liu, 2025/03/07
- [PATCH v2 04/14] target/i386: rename hvf_mmio_buf to emu_mmio_buf, Wei Liu, 2025/03/07
- [PATCH v2 01/14] target/i386/hvf: introduce x86_emul_ops, Wei Liu, 2025/03/07
- [PATCH v2 02/14] target/i386/hvf: remove HVF specific calls from x86_decode.c, Wei Liu, 2025/03/07
- [PATCH v2 07/14] target/i386/hvf: provide and use simulate_{wrmsr, rdmsr} in emul_ops, Wei Liu, 2025/03/07
- [PATCH v2 05/14] target/i386/hvf: use emul_ops->read_mem in x86_emu.c,
Wei Liu <=
- [PATCH v2 11/14] target/i386: add a directory for x86 instruction emulator, Wei Liu, 2025/03/07
- [PATCH v2 10/14] target/i386/hvf: rename some include guards, Wei Liu, 2025/03/07
- [PATCH v2 06/14] taret/i386/hvf: provide and use write_mem in emul_ops, Wei Liu, 2025/03/07
- [PATCH v2 13/14] target/i386: move x86 instruction emulator out of hvf, Wei Liu, 2025/03/07
- [PATCH v2 14/14] MAINTAINERS: add an entry for the x86 instruction emulator, Wei Liu, 2025/03/07
- [PATCH v2 09/14] target/i386/hvf: drop unused headers, Wei Liu, 2025/03/07
- [PATCH v2 08/14] target/i386: rename lazy flags field and its type, Wei Liu, 2025/03/07
- [PATCH v2 12/14] target/i386/emulate: add a panic.h, Wei Liu, 2025/03/07
- Re: [PATCH v2 00/14] Factor out HVF's instruction emulator, Wei Liu, 2025/03/14