[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] hw/arm/stellaris: Constify read-only arrays
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 2/9] hw/arm/stellaris: Constify read-only arrays |
Date: |
Fri, 10 Jan 2025 17:01:57 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
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 9b414ff9069..7c9e7e6c15b 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,
--
2.47.1
- [PATCH 0/9] hw/arm/stellaris: Fix overwritten IRQs and cleanups, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 1/9] hw/arm/stellaris: Link each board schematic, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 2/9] hw/arm/stellaris: Constify read-only arrays,
Philippe Mathieu-Daudé <=
- [PATCH 3/9] hw/arm/stellaris: Remove incorrect unimplemented i2c-0 at 0x40002000, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 5/9] hw/arm/stellaris: Use DEVCAP macro to access DeviceCapability registers, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 8/9] hw/arm/stellaris: Only map existing devices as unimplemented, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 9/9] hw/arm/stellaris: Wire GPTM[#n] output to ADC input #n, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 6/9] hw/arm/stellaris: Map both I2C controllers, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 4/9] hw/arm/stellaris: Replace magic numbers by definitions, Philippe Mathieu-Daudé, 2025/01/10
- [PATCH 7/9] hw/arm/stellaris: Only create MPU when available, Philippe Mathieu-Daudé, 2025/01/10