|
@@ -650,6 +650,7 @@ static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt,
|
|
u16 sel;
|
|
u16 sel;
|
|
|
|
|
|
la = seg_base(ctxt, addr.seg) + addr.ea;
|
|
la = seg_base(ctxt, addr.seg) + addr.ea;
|
|
|
|
+ *linear = la;
|
|
*max_size = 0;
|
|
*max_size = 0;
|
|
switch (mode) {
|
|
switch (mode) {
|
|
case X86EMUL_MODE_PROT64:
|
|
case X86EMUL_MODE_PROT64:
|
|
@@ -693,7 +694,6 @@ static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt,
|
|
}
|
|
}
|
|
if (insn_aligned(ctxt, size) && ((la & (size - 1)) != 0))
|
|
if (insn_aligned(ctxt, size) && ((la & (size - 1)) != 0))
|
|
return emulate_gp(ctxt, 0);
|
|
return emulate_gp(ctxt, 0);
|
|
- *linear = la;
|
|
|
|
return X86EMUL_CONTINUE;
|
|
return X86EMUL_CONTINUE;
|
|
bad:
|
|
bad:
|
|
if (addr.seg == VCPU_SREG_SS)
|
|
if (addr.seg == VCPU_SREG_SS)
|