]> Git Repo - qemu.git/blobdiff - target-i386/svm_helper.c
exec: Make stw_*_phys input an AddressSpace
[qemu.git] / target-i386 / svm_helper.c
index b9fd779b11b61d8fa2fe8fa08b835b5f9d2375cf..a86a99bca5d1c42c2a97170b5034af6d850f705d 100644 (file)
@@ -89,13 +89,13 @@ static inline void svm_save_seg(CPUX86State *env, hwaddr addr,
                                 const SegmentCache *sc)
 {
     CPUState *cs = ENV_GET_CPU(env);
-    stw_phys(addr + offsetof(struct vmcb_seg, selector),
+    stw_phys(cs->as, addr + offsetof(struct vmcb_seg, selector),
              sc->selector);
     stq_phys(cs->as, addr + offsetof(struct vmcb_seg, base),
              sc->base);
     stl_phys(cs->as, addr + offsetof(struct vmcb_seg, limit),
              sc->limit);
-    stw_phys(addr + offsetof(struct vmcb_seg, attrib),
+    stw_phys(cs->as, addr + offsetof(struct vmcb_seg, attrib),
              ((sc->flags >> 8) & 0xff) | ((sc->flags >> 12) & 0x0f00));
 }
 
This page took 0.024583 seconds and 4 git commands to generate.