mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86emul: drop dead code from SYSENTER handling
There's no point reading CS - all of the fields get set from scratch right afterwards. Also correct a wrong comment. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
3651d9e5c0
commit
8a12e23c69
1 file changed
+1
-3
@@ -4863,12 +4863,10 @@ x86_emulate(
|
||||
|
||||
_regs.eflags &= ~(EFLG_VM | EFLG_IF | EFLG_RF);
|
||||
|
||||
fail_if(ops->read_segment == NULL);
|
||||
ops->read_segment(x86_seg_cs, &cs, ctxt);
|
||||
cs.sel = msr_content & ~3; /* SELECTOR_RPL_MASK */
|
||||
cs.base = 0; /* flat segment */
|
||||
cs.limit = ~0u; /* 4GB limit */
|
||||
cs.attr.bytes = lm ? 0xa9b /* L+DB+P+S+Code */
|
||||
cs.attr.bytes = lm ? 0xa9b /* G+L+P+S+Code */
|
||||
: 0xc9b; /* G+DB+P+S+Code */
|
||||
|
||||
sreg.sel = cs.sel + 8;
|
||||
|
||||