From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSnh1-0005SK-AN for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:25:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSngx-0006Iq-9P for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:25:35 -0500 Received: from demumfd002.nsn-inter.net ([93.183.12.31]:48564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSngw-0006I8-O4 for qemu-devel@nongnu.org; Mon, 08 Feb 2016 10:25:30 -0500 From: marcin.krzeminski@nokia.com Date: Mon, 8 Feb 2016 16:25:03 +0100 Message-Id: <1454945111-728-4-git-send-email-marcin.krzeminski@nokia.com> In-Reply-To: <1454945111-728-1-git-send-email-marcin.krzeminski@nokia.com> References: <1454945111-728-1-git-send-email-marcin.krzeminski@nokia.com> Subject: [Qemu-devel] [PATCH v3 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 b986df4..f9088c5 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