Received: from eggs.gnu.org ([208.118.235.92]:52100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHAs-0001a0-Hb for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxHAo-0000cD-Sy for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:30 -0500 Received: from 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa ([2001:8b0:1d0::1]:60058 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxHAo-0000ar-M8 for qemu-devel@nongnu.org; Mon, 21 Jan 2013 08:12:26 -0500 From: Peter Maydell Date: Mon, 21 Jan 2013 12:50:54 +0000 Message-Id: <1358772656-7406-5-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1358772656-7406-1-git-send-email-peter.maydell@linaro.org> References: <1358772656-7406-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 4/6] hw/pflash_cfi02.c: Mark deliberate fallthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , patches@linaro.org Mark the deliberate fallthrough where we treat the case of an attempt to read flash when it is an unknown command state as if it were a normal read. Signed-off-by: Peter Maydell --- hw/pflash_cfi02.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/pflash_cfi02.c b/hw/pflash_cfi02.c index cfb91cb..d66c0ca 100644 --- a/hw/pflash_cfi02.c +++ b/hw/pflash_cfi02.c @@ -157,6 +157,7 @@ static uint32_t pflash_read (pflash_t *pfl, hwaddr offset, DPRINTF("%s: unknown command state: %x\n", __func__, pfl->cmd); pfl->wcycle = 0; pfl->cmd = 0; + /* fall through to the read code */ case 0x80: /* We accept reads during second unlock sequence... */ case 0x00: -- 1.7.9.5