mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
exec: Make ldl_*_phys input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
parent
33bde2e13f
commit
fdfba1a298
30 changed files with 186 additions and 145 deletions
|
@ -1131,7 +1131,8 @@ static void do_interrupt_user(CPUX86State *env, int intno, int is_int,
|
|||
static void handle_even_inj(CPUX86State *env, int intno, int is_int,
|
||||
int error_code, int is_hw, int rm)
|
||||
{
|
||||
uint32_t event_inj = ldl_phys(env->vm_vmcb + offsetof(struct vmcb,
|
||||
CPUState *cs = ENV_GET_CPU(env);
|
||||
uint32_t event_inj = ldl_phys(cs->as, env->vm_vmcb + offsetof(struct vmcb,
|
||||
control.event_inj));
|
||||
|
||||
if (!(event_inj & SVM_EVTINJ_VALID)) {
|
||||
|
@ -1225,7 +1226,8 @@ static void do_interrupt_all(X86CPU *cpu, int intno, int is_int,
|
|||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
if (env->hflags & HF_SVMI_MASK) {
|
||||
uint32_t event_inj = ldl_phys(env->vm_vmcb +
|
||||
CPUState *cs = CPU(cpu);
|
||||
uint32_t event_inj = ldl_phys(cs->as, env->vm_vmcb +
|
||||
offsetof(struct vmcb,
|
||||
control.event_inj));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue