mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-02 18:25:52 +00:00
SVM: Fix segment attribute clobbering (Alexander Graf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4716 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
fa4fbfb98a
commit
e72210e194
@ -4767,7 +4767,7 @@ static inline void svm_save_seg(target_phys_addr_t addr,
|
|||||||
stl_phys(addr + offsetof(struct vmcb_seg, limit),
|
stl_phys(addr + offsetof(struct vmcb_seg, limit),
|
||||||
sc->limit);
|
sc->limit);
|
||||||
stw_phys(addr + offsetof(struct vmcb_seg, attrib),
|
stw_phys(addr + offsetof(struct vmcb_seg, attrib),
|
||||||
(sc->flags >> 8) | ((sc->flags >> 12) & 0x0f00));
|
((sc->flags >> 8) & 0xff) | ((sc->flags >> 12) & 0x0f00));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void svm_load_seg(target_phys_addr_t addr, SegmentCache *sc)
|
static inline void svm_load_seg(target_phys_addr_t addr, SegmentCache *sc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user