]> Git Repo - qemu.git/commitdiff
block: m25p80: Widen flags variable
authorMarcin Krzeminski <[email protected]>
Wed, 30 Mar 2016 16:27:22 +0000 (17:27 +0100)
committerPeter Maydell <[email protected]>
Wed, 30 Mar 2016 16:27:22 +0000 (17:27 +0100)
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 <[email protected]>
Reviewed-by: Peter Crosthwaite <[email protected]>
Message-id: 1458719789[email protected]
Signed-off-by: Peter Maydell <[email protected]>
hw/block/m25p80.c

index ad91e700ec578425b847ad23ba4c3431965cd4b5..49867411e55e7f522c9b259c2c21ac1edbde7e7e 100644 (file)
@@ -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 */
This page took 0.026785 seconds and 4 git commands to generate.