From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rth43-0006AL-34 for qemu-devel@nongnu.org; Sat, 04 Feb 2012 09:58:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rth3z-0000tH-Hr for qemu-devel@nongnu.org; Sat, 04 Feb 2012 09:58:07 -0500 Received: from fmmailgate03.web.de ([217.72.192.234]:45583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rth3z-0000tC-Br for qemu-devel@nongnu.org; Sat, 04 Feb 2012 09:58:03 -0500 Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate03.web.de (Postfix) with ESMTP id BE0DA1B09F460 for ; Sat, 4 Feb 2012 15:58:02 +0100 (CET) Message-ID: <4F2D477A.2010801@web.de> Date: Sat, 04 Feb 2012 15:58:02 +0100 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] cfi02: Fix lazy ROMD switching - once again List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Blue Swirl The conversion to memory regions broke lazy ROMD switching by forgetting to update the rom_mode state variable. Signed-off-by: Jan Kiszka --- hw/pflash_cfi02.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pflash_cfi02.c b/hw/pflash_cfi02.c index a9e88b9..2ca0fd4 100644 --- a/hw/pflash_cfi02.c +++ b/hw/pflash_cfi02.c @@ -102,6 +102,7 @@ static void pflash_setup_mappings(pflash_t *pfl) static void pflash_register_memory(pflash_t *pfl, int rom_mode) { memory_region_rom_device_set_readable(&pfl->orig_mem, rom_mode); + pfl->rom_mode = rom_mode; } static void pflash_timer (void *opaque) -- 1.7.3.4