From patchwork Fri Jan 6 18:58:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 6086 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01B2F23E01 for ; Fri, 6 Jan 2012 18:58:36 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id ED65AA180DC for ; Fri, 6 Jan 2012 18:58:35 +0000 (UTC) Received: by eaac11 with SMTP id c11so1626318eaa.11 for ; Fri, 06 Jan 2012 10:58:35 -0800 (PST) Received: by 10.205.138.136 with SMTP id is8mr3060670bkc.35.1325876315714; Fri, 06 Jan 2012 10:58:35 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.82.144 with SMTP id ac16cs435406bkc; Fri, 6 Jan 2012 10:58:35 -0800 (PST) Received: by 10.152.131.41 with SMTP id oj9mr2704655lab.42.1325876313863; Fri, 06 Jan 2012 10:58:33 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id ss8si51692643lab.21.2012.01.06.10.58.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jan 2012 10:58:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1RjEzk-0007Je-PF; Fri, 06 Jan 2012 18:58:28 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Beno=C3=AEt=20Canet?= , Avi Kivity , patches@linaro.org Subject: [PATCH v4 1/2] hw/integratorcp: Fix sense of REMAP bit Date: Fri, 6 Jan 2012 18:58:27 +0000 Message-Id: <1325876308-28097-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1325876308-28097-1-git-send-email-peter.maydell@linaro.org> References: <1325876308-28097-1-git-send-email-peter.maydell@linaro.org> Fix the sense of the REMAP bit: 0 should mean "map flash", 1 should mean "map RAM". Signed-off-by: Peter Maydell --- hw/integratorcp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index c8f3955..d9d8da3 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -112,7 +112,7 @@ static uint64_t integratorcm_read(void *opaque, target_phys_addr_t offset, static void integratorcm_do_remap(integratorcm_state *s, int flash) { - if (flash) { + if (!flash) { if (s->flash_mapped) { sysbus_del_memory(&s->busdev, &s->flash); s->flash_mapped = false;