diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-01-23 13:39:05 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-03-06 15:46:18 +0100 |
| commit | 0f66536a012b2d1b02818bbb2d24485205fc2f64 (patch) | |
| tree | 79b9e685a8bb02a537e3d0dd2c10b543294ea859 /gdbstub/system.c | |
| parent | b12a0f856691264bc1a8f0ed1e5e62649cea7fd2 (diff) | |
| download | focaccia-qemu-0f66536a012b2d1b02818bbb2d24485205fc2f64.tar.gz focaccia-qemu-0f66536a012b2d1b02818bbb2d24485205fc2f64.zip | |
accel: Forward-declare AccelOpsClass in 'qemu/typedefs.h'
The heavily imported "system/cpus.h" header includes "accel-ops.h" to get AccelOpsClass type declaration. Reduce headers pressure by forward declaring it in "qemu/typedefs.h", where we already declare the AccelCPUState type. Reduce "system/cpus.h" inclusions by only including "system/accel-ops.h" when necessary. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250123234415.59850-14-philmd@linaro.org>
Diffstat (limited to 'gdbstub/system.c')
| -rw-r--r-- | gdbstub/system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdbstub/system.c b/gdbstub/system.c index 7f047a285c..416c1dbe1e 100644 --- a/gdbstub/system.c +++ b/gdbstub/system.c @@ -19,6 +19,7 @@ #include "gdbstub/commands.h" #include "exec/hwaddr.h" #include "exec/tb-flush.h" +#include "system/accel-ops.h" #include "system/cpus.h" #include "system/runstate.h" #include "system/replay.h" |