Skip to content
Snippets Groups Projects
user avatar
Paolo Bonzini authored
The problem is introduced by commit 23326164 (exec: Support 64-bit
operations in address_space_rw, 2013-07-08).  Before that commit,
memory_access_size would only return 1/2/4.

Since alignment is already handled above, reduce l to the largest
power of two that is smaller than l.

Cc: qemu-stable@nongnu.org
Reported-by: default avatarOleksii Shevchuk <alxchk@gmail.com>
Tested-by: default avatarOleksii Shevchuk <alxchk@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
098178f2
History