Commit e72210e194498c34358028d2236915c7856f1da9
1 parent
fa4fbfb9
SVM: Fix segment attribute clobbering (Alexander Graf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4716 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-i386/op_helper.c
... | ... | @@ -4767,7 +4767,7 @@ static inline void svm_save_seg(target_phys_addr_t addr, |
4767 | 4767 | stl_phys(addr + offsetof(struct vmcb_seg, limit), |
4768 | 4768 | sc->limit); |
4769 | 4769 | stw_phys(addr + offsetof(struct vmcb_seg, attrib), |
4770 | - (sc->flags >> 8) | ((sc->flags >> 12) & 0x0f00)); | |
4770 | + ((sc->flags >> 8) & 0xff) | ((sc->flags >> 12) & 0x0f00)); | |
4771 | 4771 | } |
4772 | 4772 | |
4773 | 4773 | static inline void svm_load_seg(target_phys_addr_t addr, SegmentCache *sc) | ... | ... |