qemu-devel
[Top][All Lists]
Advanced

[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: Richard Henderson
Subject: Re: [PATCH 6/9] target/arm: Restrict CPUARMState::nvic to sysemu and store as NVICState*
Date: Mon, 6 Feb 2023 09:17:02 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 2/6/23 09:00, Philippe Mathieu-Daudé wrote:
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.

That and the movement of cpu->nvic into the ifdef.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]