[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 03/11] block: m25p80: Widen flags variable
From: |
marcin . krzeminski |
Subject: |
[Qemu-devel] [PATCH v5 03/11] block: m25p80: Widen flags variable |
Date: |
Sun, 20 Mar 2016 19:28:05 +0100 |
From: Marcin Krzeminski <address@hidden>
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 <address@hidden>
Reviewed-by: Peter Crosthwaite <address@hidden>
---
hw/block/m25p80.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index 1d053a5..cbb8b3e 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 */
--
2.5.0
- [Qemu-devel] [PATCH v5 01/11] block: m25p80: Removed unused variable, (continued)
- [Qemu-devel] [PATCH v5 01/11] block: m25p80: Removed unused variable, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 09/11] block: m25p80: Implemented FSR register, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 11/11] block: m25p80: at25128a/at25256a models, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 06/11] block: m25p80: Add configuration registers, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 07/11] block: m25p80: Dummy cycles for N25Q256/512, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 04/11] block: m25p80: Extend address mode, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 08/11] block: m25p80: Fast read and 4bytes commands, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 05/11] block: m25p80: 4byte address mode, marcin . krzeminski, 2016/03/20
- [Qemu-devel] [PATCH v5 03/11] block: m25p80: Widen flags variable,
marcin . krzeminski <=
- Re: [Qemu-devel] [PATCH v5 00/11] Support for N25Q256/512 and AT25128/256, Peter Maydell, 2016/03/23