OSDN Git Service

hw: Use QEMU_IS_ALIGNED() on parallel flash block size
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Mon, 11 May 2020 20:52:46 +0000 (22:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
commit4cdd0a774dc35b2ffe6ddb634e0c431f17dfe07e
treeade222c138a076e433561cef248de17bbf700363
parentb1b30ff4df942ef75abb3799889ab2f4c52155e9
hw: Use QEMU_IS_ALIGNED() on parallel flash block size

Use the QEMU_IS_ALIGNED() macro to verify the flash block size
is properly aligned. It is quicker to process when reviewing.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200511205246.24621-1-philmd@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/arm/sbsa-ref.c
hw/arm/virt.c
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c
hw/i386/pc_sysfw.c
hw/riscv/virt.c