aboutsummaryrefslogtreecommitdiff
path: root/hw/block
diff options
context:
space:
mode:
authorMarcin Krzeminski <marcin.krzeminski@nokia.com>2016-03-30 17:27:22 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-03-30 17:27:22 +0100
commit76e872695a09fa59ac3bdb4900320e47808c139a (patch)
tree39e94bebca173757461c7831bbbf7208f951527c /hw/block
parent187c26364c6fda3321a04535a1dd28eca879a8e3 (diff)
downloadqemu-76e872695a09fa59ac3bdb4900320e47808c139a.zip
qemu-76e872695a09fa59ac3bdb4900320e47808c139a.tar.gz
qemu-76e872695a09fa59ac3bdb4900320e47808c139a.tar.bz2
block: m25p80: Widen flags variable
Extend the width of the flags variable to support the already existing (but unused) WR_1 flag, which is above the range of 8 bits. This allows support of EEPROM emulation which requires the WR_1 feature. Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com> Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com> Message-id: 1458719789-29868-4-git-send-email-marcin.krzeminski@nokia.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/m25p80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index ad91e70..4986741 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -61,7 +61,7 @@ typedef struct FlashPartInfo {
uint32_t sector_size;
uint32_t n_sectors;
uint32_t page_size;
- uint8_t flags;
+ uint16_t flags;
} FlashPartInfo;
/* adapted from linux */