From patchwork Tue Jan 28 20:12:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 860431 Delivered-To: patch@linaro.org Received: by 2002:a5d:6b8c:0:b0:385:e875:8a9e with SMTP id n12csp543281wrx; Tue, 28 Jan 2025 12:17:11 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUH2CzLYfk3T6okyPJOAI8Bqk8xIVJwFZ9XMxjd5xc0qJs6EDCGcPZvCaqQM98nOLz1Q8BqRg==@linaro.org X-Google-Smtp-Source: AGHT+IEZ6XyPScmRlTlqrTa42O7Fl1QR39u4FMCpqiRKH7dm26dY58Ba+kjjJboMEulLV9ifT1fb X-Received: by 2002:a05:620a:f03:b0:7b7:5d6:3976 with SMTP id af79cd13be357-7bffcda0a86mr46102285a.58.1738095431113; Tue, 28 Jan 2025 12:17:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738095431; cv=none; d=google.com; s=arc-20240605; b=ixebVKwtu+3+cyMwZ5T4w8rxgLK2tvXSdiAoNW4O8EYIgf7uiWIn6To3u5GMDkWmw1 AYkv3Fk0RabIkkzu7pbcgqJbCKx5LrAwEGrOJA0ZupoUxa8+EGKC09Fr+4sW3QGpWV9E zTRhtXN3qQ+TxFXRmQs5pxfcyHY0jAPdM4PDSs9tcTaadsTAsu1T4MoKiFtxmCCaF/sU 2VrfFbYe9/2anUcmC6ZN5GGIAtTbSVEWP3ipP487vh1b6GZXGLfxzM9FhElEFYj8f4De 4NVeaS3FCv8Cezq8jAnJKJkyS6EbUFstE/b71jlFzCdoleQLjIrRQue0rMdOa3cRxk6/ E6oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=KrludJeelw8t7WfACCxjoGW3Sdcn7j7Tu3Qi7W2JqPY=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=hGST7QDEa3uUK0OWj3QKDMHheig0iobniq0YsdsSg/Q/h/P9ecFdjHHblhGMfreheF A4lYTnF9GDRT/YxvPaFUqr2718mRLDuvzlFLnx63+rb39vh8D05zbaO+2j3+QIv/vh18 BPCr7unxdqEk4l2xqBnIPH3r6BNAzqRcl/nVAfPnmNaWVtmqqZlCjq2KydMwYKrt0XY2 f8lSAq2qRBQ9tGUtF7Tkjqh+GP9Y7V1GBe2bU0oIoJQl5p3POE6c7LYHsJ0Nxqp+POLe 5rIs+Pv8pMyIkFF8TparDa/+vhSvjiYjXzak1Eg1EQy1SPD1KEG1j1clBM5223C214uQ o9sA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k+EtdDZ2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7be9af10f6csi1476612985a.466.2025.01.28.12.17.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2025 12:17:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k+EtdDZ2; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcrxh-00025h-PR; Tue, 28 Jan 2025 15:13:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tcrxg-00025L-42 for qemu-devel@nongnu.org; Tue, 28 Jan 2025 15:13:28 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcrxe-0001ZQ-EN for qemu-devel@nongnu.org; Tue, 28 Jan 2025 15:13:27 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4361b0ec57aso64495535e9.0 for ; Tue, 28 Jan 2025 12:13:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738095205; x=1738700005; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=KrludJeelw8t7WfACCxjoGW3Sdcn7j7Tu3Qi7W2JqPY=; b=k+EtdDZ2pNhRaN1dk6c2IR5NovvueQ11ZFTDv6nbtb3qM7Vle2VHebOoiblvYRAR4Z 9QwwLpQ0ynac0eu/Bx7kKSES6nXWmHYa+54Bhk6Ad5AR/VzO0DzuFyGVYcTe8cxusana IK+oFlJemSgkcYUsT0H2M9rrRoZEw3q8YvELgsnGHthPQxlqyA3n+NHESNxJBYTgRk/m oXdLvdr1SeKKnZD8Goont9VEdY+1Sopuy89U21pT7JF8TD38k3Q9fKGHxVl/uEySKWYk YV9RzQlkgC8B3uqeAt1AQjVD5sZNHaNS6DQ/YCUli7K8U5OFcmk6HeMQEZjLG2/nk2ck Ukgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738095205; x=1738700005; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KrludJeelw8t7WfACCxjoGW3Sdcn7j7Tu3Qi7W2JqPY=; b=qyJHyzfFq9LeambyC7qZBTjO84QqcQ58wZmVn/M/1Wyxm2KD3OGWHNT7smbn2M8Mc3 /mRa+HzMkOd5DuNGSKQC7VSd26g4ct4MfZ8QiNNfNObFX7t+lepuAEBR3Tw0sR17NOzF OXdrOu6vJyg/EWxfdkUImIvS9dQd+OVoOxbABfy4rMTA7F7xLLk20QSIMyWkBRy0mbmx Eznxpmp6v/5I6YdVqWzS+wPJaEHzV2xz+oe+f5rJKotELG3QEJWPj490e7c8jUrFg4dL Ve/0Iatd3MVAn/sTcai4Qi9zEUjWa9OUNGc6f2aQervHST89i9Xhxby7UOpywCHYAw87 tRzA== X-Gm-Message-State: AOJu0YxhjUHKpmEecDPfL+f1r//dKWD6PxtF/FzlNoj1EiiDeVKsEvFD 1eOHOb4QETyDa9DXy9EH2a9iD83/WmXO8oeQkKvhnv85FSWM1S0ctDE58Y/wZ6KPVWpXLTEJ2kE f X-Gm-Gg: ASbGncvFJ0pVrdXdaU+yN4owmDudr5oPo5aqQ2pj9maM6lWoRhelCrqYH9tfMx/zCAp FTadtdm1lsGsS976L0EXpNTMIegt0G/VUEMD42jAh0N5CaGoA9Zpy1uHhluwIv369YG1Yeixzxg 6S8aBpZ0WUkVen3L0yPeIokVDZpH3GY0XD0l5UyZFM3ZogrvXjHkB+A1DCBgzmQj7cabkWu1Aru N8Fo8I26me/DddjvZ4KDe9rJt2+2j0oDUMlreZIuVUj0YP+AR4CP8JNdzF4TMlhQ7Fj0jwqjIaj KwI0/BQBuQfR99hAmSus0g== X-Received: by 2002:a05:600c:19d2:b0:435:330d:de86 with SMTP id 5b1f17b1804b1-438dc34b37bmr3005425e9.0.1738095204870; Tue, 28 Jan 2025 12:13:24 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438bd4fa3efsm182524105e9.2.2025.01.28.12.13.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 12:13:24 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 08/36] hw/arm/stellaris: Constify read-only arrays Date: Tue, 28 Jan 2025 20:12:46 +0000 Message-Id: <20250128201314.44038-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250128201314.44038-1-peter.maydell@linaro.org> References: <20250128201314.44038-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Message-id: 20250110160204.74997-3-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/arm/stellaris.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 3f525d2dcf6..42498cc1e53 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -101,7 +101,7 @@ static void ssys_update(ssys_state *s) qemu_set_irq(s->irq, (s->int_status & s->int_mask) != 0); } -static uint32_t pllcfg_sandstorm[16] = { +static const uint32_t pllcfg_sandstorm[16] = { 0x31c0, /* 1 Mhz */ 0x1ae0, /* 1.8432 Mhz */ 0x18c0, /* 2 Mhz */ @@ -120,7 +120,7 @@ static uint32_t pllcfg_sandstorm[16] = { 0x585b /* 8.192 Mhz */ }; -static uint32_t pllcfg_fury[16] = { +static const uint32_t pllcfg_fury[16] = { 0x3200, /* 1 Mhz */ 0x1b20, /* 1.8432 Mhz */ 0x1900, /* 2 Mhz */ @@ -964,7 +964,7 @@ static void stellaris_adc_init(Object *obj) } /* Board init. */ -static stellaris_board_info stellaris_boards[] = { +static const stellaris_board_info stellaris_boards[] = { { "LM3S811EVB", 0, 0x0032000e,