From nobody Mon Feb 9 07:05:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1584386747; cv=none; d=zohomail.com; s=zohoarc; b=j35NlapbUa2ba9f7Qwx0YZEZ1i+9K0tO8275e5glgJqXpJ3XC1b6R5ZQhRBgpWOHa5xtA+SrCIeMFrcx8bkqM950XLZH3rpjh3U3C9AV3AALgImfPTUMczTGiLkXQn7zzIVoRvE9BlJMhu90Q2n6ddFYu8QuUXYOFeumItokNko= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584386747; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=AR3d9nNMRFmjviCA9QeiC7WRyBhxuQ8IV0t5Cc30NxA=; b=Yt1hQVIxuCt3KQnMBVIviDjzBy2DFrJDicjhh7plAzqmgAF4sM7E3zJDFPN24VAXcqDGlDX6d9zmftytjfq0PfktdSB21tx3/9h2f1b2XVov6s3b97oueB+ES7Hf2aXKZ5pFYh8jr6VColPIoTLdB/GYCfvkDcph7wG1Wt5ZTQU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584386747925693.7927197949938; Mon, 16 Mar 2020 12:25:47 -0700 (PDT) Received: from localhost ([::1]:47597 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDvMw-0002uG-UL for importer@patchew.org; Mon, 16 Mar 2020 15:25:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40880) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDuqZ-0002cq-FH for qemu-devel@nongnu.org; Mon, 16 Mar 2020 14:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDuqY-0003m2-A8 for qemu-devel@nongnu.org; Mon, 16 Mar 2020 14:52:19 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:31564) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDuqY-0003jJ-5m for qemu-devel@nongnu.org; Mon, 16 Mar 2020 14:52:18 -0400 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-345-I_KV75HMM2WbPqyMyvwK_A-1; Mon, 16 Mar 2020 14:52:13 -0400 Received: by mail-ed1-f70.google.com with SMTP id dm17so13897392edb.3 for ; Mon, 16 Mar 2020 11:52:13 -0700 (PDT) Received: from localhost.localdomain (96.red-83-59-163.dynamicip.rima-tde.net. [83.59.163.96]) by smtp.gmail.com with ESMTPSA id e15sm51724eds.2.2020.03.16.11.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 11:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584384737; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AR3d9nNMRFmjviCA9QeiC7WRyBhxuQ8IV0t5Cc30NxA=; b=UOnK+QCEAIduUtzR4WpmA2AzLmKpP3A60lQqZSaTecbukW+OpEPpBqGuToOna+4bayq3Sw F5s1t4HtsmR4OK+PS1G0PFZ9FLBcEiz7kpeoVPV53Hz5PU28YYabapfYnlv5AL2lEw7JT1 ViQmZSdbVhRBb6970xHBeFPsoVOgrGs= X-MC-Unique: I_KV75HMM2WbPqyMyvwK_A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TBpfmSRiP+jw9OHkhFWUdHoGBaG1dAqB4VuWEQEEYBw=; b=N/AF96zMqDodo5oiE1rcKA3o8oNThc5U6I1eCwm9A07buXKx44Fdfpr1GWTxaRzxkV ZzGvQnq6lQn8ZZWJX/KL34ZYidGZxnjaAG+6X8FCfLSBz+y6FHqZU9eClKuviIvQcMAS PsLU/WbfYWxMuVv5JzgtDfv6eqzjjdJr9nmi+McJ1jNY9wZby4i8DPPJH4Qci6U17hT9 RAT5dIK+V7AqxnrZkQuCitVuxsLbUG2zLVj9936RegHdG0qoo4N3/YhgA0Fc5iXZ2kOg IeatQhfbvR438uKv6CUyd7ttBWhSWf64V4qCZZA1w2x8fNadzN3SN8bwyhh7jCQDaTlH 5zzQ== X-Gm-Message-State: ANhLgQ08VkD0xt0J2TqswYXN5eaJY60BrPUxjWOM35SBRGSdiDCqEeJ3 ptihqANHR0qPZ4fJRFHRCjfcqhQ1U4OtpK9/8guCXAnLzrcZk8MnDxzMiIbCSpo2dSlx61nwbu5 omqh5JkTwrZkoY+w= X-Received: by 2002:a50:ab5a:: with SMTP id t26mr1490340edc.380.1584384732774; Mon, 16 Mar 2020 11:52:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJAlBuLmYcN8n8KFL+8zOP47JcsAxX5A8HD5CQdNHCIL6+R6SB8mBOjKPnNRopA5/vp7Zr1Q== X-Received: by 2002:a50:ab5a:: with SMTP id t26mr1490321edc.380.1584384732567; Mon, 16 Mar 2020 11:52:12 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Paolo Bonzini , qemu-devel@nongnu.org Subject: [PATCH v3 24/25] hw/arm: Remove unnecessary memory_region_set_readonly() on ROM alias Date: Mon, 16 Mar 2020 19:50:05 +0100 Message-Id: <20200316185006.576-25-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200316185006.576-1-philmd@redhat.com> References: <20200316185006.576-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 216.205.24.74 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Igor Mitsyanko , Peter Maydell , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "open list:Exynos" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8"; text/plain; charset="utf-8" This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/arm/exynos4210.c | 1 - hw/arm/stm32f205_soc.c | 1 - hw/arm/stm32f405_soc.c | 1 - 3 files changed, 3 deletions(-) diff --git a/hw/arm/exynos4210.c b/hw/arm/exynos4210.c index 3af6502a5e..4e1fd7edb3 100644 --- a/hw/arm/exynos4210.c +++ b/hw/arm/exynos4210.c @@ -320,7 +320,6 @@ static void exynos4210_realize(DeviceState *socdev, Err= or **errp) &s->irom_mem, 0, EXYNOS4210_IROM_SIZE); - memory_region_set_readonly(&s->irom_alias_mem, true); memory_region_add_subregion(system_mem, EXYNOS4210_IROM_MIRROR_BASE_AD= DR, &s->irom_alias_mem); =20 diff --git a/hw/arm/stm32f205_soc.c b/hw/arm/stm32f205_soc.c index 2de56275b7..6e93726d45 100644 --- a/hw/arm/stm32f205_soc.c +++ b/hw/arm/stm32f205_soc.c @@ -97,7 +97,6 @@ static void stm32f205_soc_realize(DeviceState *dev_soc, E= rror **errp) &error_fatal); memory_region_init_alias(flash_alias, NULL, "STM32F205.flash.alias", flash, 0, FLASH_SIZE); - memory_region_set_readonly(flash_alias, true); =20 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, flash); memory_region_add_subregion(system_memory, 0, flash_alias); diff --git a/hw/arm/stm32f405_soc.c b/hw/arm/stm32f405_soc.c index b8fca13f95..d590cd040d 100644 --- a/hw/arm/stm32f405_soc.c +++ b/hw/arm/stm32f405_soc.c @@ -103,7 +103,6 @@ static void stm32f405_soc_realize(DeviceState *dev_soc,= Error **errp) } memory_region_init_alias(&s->flash_alias, NULL, "STM32F405.flash.alias= ", &s->flash, 0, FLASH_SIZE); - memory_region_set_readonly(&s->flash_alias, true); =20 memory_region_add_subregion(system_memory, FLASH_BASE_ADDRESS, &s->fla= sh); memory_region_add_subregion(system_memory, 0, &s->flash_alias); --=20 2.21.1