mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 20:41:52 -06:00
exec: Make stw_*_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
2198a12143
commit
5ce5944dc0
14 changed files with 46 additions and 39 deletions
|
@ -60,8 +60,8 @@ void do_smm_enter(X86CPU *cpu)
|
|||
for (i = 0; i < 6; i++) {
|
||||
dt = &env->segs[i];
|
||||
offset = 0x7e00 + i * 16;
|
||||
stw_phys(sm_state + offset, dt->selector);
|
||||
stw_phys(sm_state + offset + 2, (dt->flags >> 8) & 0xf0ff);
|
||||
stw_phys(cs->as, sm_state + offset, dt->selector);
|
||||
stw_phys(cs->as, sm_state + offset + 2, (dt->flags >> 8) & 0xf0ff);
|
||||
stl_phys(cs->as, sm_state + offset + 4, dt->limit);
|
||||
stq_phys(cs->as, sm_state + offset + 8, dt->base);
|
||||
}
|
||||
|
@ -69,18 +69,18 @@ void do_smm_enter(X86CPU *cpu)
|
|||
stq_phys(cs->as, sm_state + 0x7e68, env->gdt.base);
|
||||
stl_phys(cs->as, sm_state + 0x7e64, env->gdt.limit);
|
||||
|
||||
stw_phys(sm_state + 0x7e70, env->ldt.selector);
|
||||
stw_phys(cs->as, sm_state + 0x7e70, env->ldt.selector);
|
||||
stq_phys(cs->as, sm_state + 0x7e78, env->ldt.base);
|
||||
stl_phys(cs->as, sm_state + 0x7e74, env->ldt.limit);
|
||||
stw_phys(sm_state + 0x7e72, (env->ldt.flags >> 8) & 0xf0ff);
|
||||
stw_phys(cs->as, sm_state + 0x7e72, (env->ldt.flags >> 8) & 0xf0ff);
|
||||
|
||||
stq_phys(cs->as, sm_state + 0x7e88, env->idt.base);
|
||||
stl_phys(cs->as, sm_state + 0x7e84, env->idt.limit);
|
||||
|
||||
stw_phys(sm_state + 0x7e90, env->tr.selector);
|
||||
stw_phys(cs->as, sm_state + 0x7e90, env->tr.selector);
|
||||
stq_phys(cs->as, sm_state + 0x7e98, env->tr.base);
|
||||
stl_phys(cs->as, sm_state + 0x7e94, env->tr.limit);
|
||||
stw_phys(sm_state + 0x7e92, (env->tr.flags >> 8) & 0xf0ff);
|
||||
stw_phys(cs->as, sm_state + 0x7e92, (env->tr.flags >> 8) & 0xf0ff);
|
||||
|
||||
stq_phys(cs->as, sm_state + 0x7ed0, env->efer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue