From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXlSz-0005x7-Qw for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:03:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXlSw-0007gn-I8 for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:03:37 -0500 Received: from demumfd002.nsn-inter.net ([93.183.12.31]:59543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXlSw-0007gN-8h for qemu-devel@nongnu.org; Mon, 22 Feb 2016 03:03:34 -0500 From: marcin.krzeminski@nokia.com Date: Mon, 22 Feb 2016 09:03:17 +0100 Message-Id: <1456128205-5092-4-git-send-email-marcin.krzeminski@nokia.com> In-Reply-To: <1456128205-5092-1-git-send-email-marcin.krzeminski@nokia.com> References: <1456128205-5092-1-git-send-email-marcin.krzeminski@nokia.com> Subject: [Qemu-devel] [PATCH v4 03/11] block: m25p80: Widen flags variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: crosthwaitepeter@gmail.com, clg@fr.ibm.com, pawel.lenkow@itlen.com, marcin.krzeminski@nokia.com From: Marcin Krzeminski 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 Reviewed-by: Peter Crosthwaite --- 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 06b0af3..a3ea994 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