mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
x86emul: replace further UB shifts
I have no explanation how I managed to overlook these while putting
together what is now b6a907f8c8 ("x86emul: replace UB shifts").
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
c9f9a7258d
commit
21de9680eb
1 file changed
+3
-2
@@ -9735,7 +9735,7 @@ x86_emulate(
|
||||
|
||||
rc = ops->read(ea.mem.seg,
|
||||
truncate_ea(ea.mem.off +
|
||||
(idx << state->sib_scale)),
|
||||
idx * (1 << state->sib_scale)),
|
||||
(void *)mmvalp + i * op_bytes, op_bytes, ctxt);
|
||||
if ( rc != X86EMUL_OKAY )
|
||||
{
|
||||
@@ -9857,7 +9857,8 @@ x86_emulate(
|
||||
continue;
|
||||
|
||||
rc = ops->read(ea.mem.seg,
|
||||
truncate_ea(ea.mem.off + (idx << state->sib_scale)),
|
||||
truncate_ea(ea.mem.off +
|
||||
idx * (1 << state->sib_scale)),
|
||||
(void *)mmvalp + i * op_bytes, op_bytes, ctxt);
|
||||
if ( rc != X86EMUL_OKAY )
|
||||
{
|
||||
|
||||