[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/9] target/arm: Restrict CPUARMState::nvic to sysemu and sto
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 6/9] target/arm: Restrict CPUARMState::nvic to sysemu and store as NVICState* |
Date: |
Mon, 6 Feb 2023 20:00:38 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 |
On 6/2/23 19:57, Richard Henderson wrote:
On 2/6/23 02:17, Philippe Mathieu-Daudé wrote:
There is no point in using a void pointer to access the NVIC.
Use the real type to avoid casting it while debugging.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
This is doing several things at once. The nvic interface change needn't
be done simultaneously.
You mean this change?
-typedef struct NVICState NVICState;
-DECLARE_INSTANCE_CHECKER(NVICState, NVIC,
- TYPE_NVIC)
+OBJECT_DECLARE_SIMPLE_TYPE(NVICState, NVIC)
This is a No-OP, converting from the older DECLARE_INSTANCE_CHECKER
style to the newer OBJECT_DECLARE_SIMPLE_TYPE. But OK, unrelated, I'll
remove it from the patch.
- [PATCH 2/9] target/arm: Constify ID_PFR1 on user emulation, (continued)
- [PATCH 2/9] target/arm: Constify ID_PFR1 on user emulation, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 4/9] target/arm: Restrict CPUARMState::arm_boot_info to sysemu, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 5/9] target/arm: Restrict CPUARMState::gicv3state to sysemu, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 3/9] target/arm: Avoid resetting CPUARMState::eabi field, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 6/9] target/arm: Restrict CPUARMState::nvic to sysemu and store as NVICState*, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 7/9] target/arm: Declare CPU <-> NVIC helpers in 'hw/intc/armv7m_nvic.h', Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 8/9] hw/intc/armv7m_nvic: Allow calling neg_prio_requested on unrealized NVIC, Philippe Mathieu-Daudé, 2023/02/06
- [PATCH 9/9] hw/arm/armv7m: Pass CPU/NVIC using object_property_add_const_link(), Philippe Mathieu-Daudé, 2023/02/06