]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/sparc: Provide hint about CPUSPARCState::irq_manager member
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 30 Jan 2024 10:10:34 +0000 (11:10 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 15 Feb 2024 15:58:46 +0000 (16:58 +0100)
CPUSPARCState::irq_manager holds a pointer to a QDev,
so declare it as DeviceState instead of void.

Move the comment about Leon3 fields.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Clément Chigot <chigot@adacore.com>
Message-Id: <20240130113102.6732-3-philmd@linaro.org>

target/sparc/cpu.h

index edf46b387ec10d21726a0e0a2be2caf327fc2121..f3cdd17c629b54196d5da9f70226ef9e46689f90 100644 (file)
@@ -545,10 +545,9 @@ struct CPUArchState {
 #endif
     sparc_def_t def;
 
-    void *irq_manager;
+    /* Leon3 */
+    DeviceState *irq_manager;
     void (*qemu_irq_ack)(CPUSPARCState *env, int intno);
-
-    /* Leon3 cache control */
     uint32_t cache_control;
 };