mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
target/i386: Unify invlpg, invlpga
Use a single helper, flush_page, to do the work. Use gen_svm_check_intercept. Perform the zero-extension for invlpga inline. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210514151342.384376-43-richard.henderson@linaro.org>
This commit is contained in:
parent
4ea2449b58
commit
35e5a5d5cb
4 changed files with 15 additions and 33 deletions
|
@ -439,12 +439,9 @@ void helper_rdmsr(CPUX86State *env)
|
|||
env->regs[R_EDX] = (uint32_t)(val >> 32);
|
||||
}
|
||||
|
||||
void helper_invlpg(CPUX86State *env, target_ulong addr)
|
||||
void helper_flush_page(CPUX86State *env, target_ulong addr)
|
||||
{
|
||||
X86CPU *cpu = env_archcpu(env);
|
||||
|
||||
cpu_svm_check_intercept_param(env, SVM_EXIT_INVLPG, 0, GETPC());
|
||||
tlb_flush_page(CPU(cpu), addr);
|
||||
tlb_flush_page(env_cpu(env), addr);
|
||||
}
|
||||
|
||||
static void QEMU_NORETURN do_hlt(CPUX86State *env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue