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:
Jan Beulich committed 2020-08-05 10:19:29 +02:00
1 parent c9f9a7258d
commit 21de9680eb
1 file changed
+3 -2
+3 -2
View File
@@ -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 )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.