diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-09 20:44:19 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-09 20:44:19 +0000 |
commit | e72210e194498c34358028d2236915c7856f1da9 (patch) | |
tree | 002ac610f5d8d62698ab502e5fd1303c60f5977d | |
parent | fa4fbfb98ad09b1a5bde2c78db5cb1c13363bdf2 (diff) |
SVM: Fix segment attribute clobbering (Alexander Graf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4716 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-i386/op_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index ebeeebdecd..730ec81698 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -4767,7 +4767,7 @@ static inline void svm_save_seg(target_phys_addr_t addr, stl_phys(addr + offsetof(struct vmcb_seg, limit), sc->limit); 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) |