[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/9] hw/arm/stellaris: Only create MPU when available
From: |
Peter Maydell |
Subject: |
Re: [PATCH 7/9] hw/arm/stellaris: Only create MPU when available |
Date: |
Mon, 27 Jan 2025 14:09:46 +0000 |
On Fri, 10 Jan 2025 at 16:02, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> hw/arm/stellaris.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c
> index 655bf85e89e..d87587225c2 100644
> --- a/hw/arm/stellaris.c
> +++ b/hw/arm/stellaris.c
> @@ -1128,6 +1128,9 @@ static void stellaris_init(MachineState *ms,
> stellaris_board_info *board)
> qdev_prop_set_uint8(nvic, "num-prio-bits", NUM_PRIO_BITS);
> qdev_prop_set_string(nvic, "cpu-type", ms->cpu_type);
> qdev_prop_set_bit(nvic, "enable-bitband", true);
> + if (!DEV_CAP(1, MPU)) {
> + qdev_prop_set_uint32(nvic, "mpu-ns-regions", 0); /* Disable MPU */
> + }
> qdev_connect_clock_in(nvic, "cpuclk",
> qdev_get_clock_out(ssys_dev, "SYSCLK"));
> /* This SoC does not connect the systick reference clock */
> --
This isn't actually a behaviour change, right? Both our
boards set bit 7 in dc1 in their stellaris_board_info array.
With the commit message updated to mention that:
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH 5/9] hw/arm/stellaris: Use DEVCAP macro to access DeviceCapability registers, (continued)
- [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
- Re: [PATCH 7/9] hw/arm/stellaris: Only create MPU when available,
Peter Maydell <=
- Re: [PATCH 0/9] hw/arm/stellaris: Fix overwritten IRQs and cleanups, Peter Maydell, 2025/01/27