]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/block/pflash_cfi0{1, 2}: Error out if device length isn't a power of two
authorBernhard Beschow <shentey@gmail.com>
Tue, 18 Oct 2022 21:01:41 +0000 (23:01 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:26:20 +0000 (13:26 -0300)
commit334c388f25707a234c4a0dea05b9df08d7746638
treed2867aba34227a42bf102e5e52fc8d7662ed3154
parentc593d1cc2555c5fe6a6a558f4d2bdc3bfd6713de
hw/block/pflash_cfi0{1, 2}: Error out if device length isn't a power of two

According to the JEDEC standard the device length is communicated to an
OS as an exponent (power of two).

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20221018210146.193159-3-shentey@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/block/pflash_cfi01.c
hw/block/pflash_cfi02.c