[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/24] gdbstub: Include missing 'hw/core/cpu.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 14/24] gdbstub: Include missing 'hw/core/cpu.h' header |
Date: |
Mon, 11 Dec 2023 22:19:51 +0100 |
Functions such gdb_get_cpu_pid() dereference CPUState so
require the structure declaration from "hw/core/cpu.h":
static uint32_t gdb_get_cpu_pid(CPUState *cpu)
{
...
return cpu->cluster_index + 1;
}
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
gdbstub/gdbstub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 46d752bbc2..034a4ac211 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -37,6 +37,7 @@
#include "hw/cpu/cluster.h"
#include "hw/boards.h"
#endif
+#include "hw/core/cpu.h"
#include "sysemu/hw_accel.h"
#include "sysemu/runstate.h"
--
2.41.0
- [PATCH 05/24] semihosting/uaccess: Avoid including 'cpu.h', (continued)
- [PATCH 05/24] semihosting/uaccess: Avoid including 'cpu.h', Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 06/24] semihosting/guestfd: Remove unused 'semihosting/uaccess.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 07/24] host/load-extract: Include missing 'qemu/atomic.h' and 'qemu/int128.h', Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 08/24] host/atomic128: Include missing 'qemu/atomic.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 09/24] hw/ppc/spapr_hcall: Remove unused 'exec/exec-all.h' included header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 10/24] hw/misc/mips_itu: Remove unnecessary 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 11/24] hw/s390x/ipl: Remove unused 'exec/exec-all.h' included header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 12/24] target/i386: Include missing 'exec/exec-all.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 13/24] accel/tcg: Include missing 'hw/core/cpu.h' header, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 14/24] gdbstub: Include missing 'hw/core/cpu.h' header,
Philippe Mathieu-Daudé <=
- [PATCH 15/24] exec/cpu-all: Remove unused headers, Philippe Mathieu-Daudé, 2023/12/11
- Re: [PATCH 00/24] exec: Rework of various headers (user focused), Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 16/24] exec/cpu-all: Reduce 'qemu/rcu.h' header inclusion, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 17/24] target/ppc/excp_helper: Avoid 'abi_ptr' in system emulation, Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 18/24] accel/tcg: Un-inline retaddr helpers to 'user-retaddr.h', Philippe Mathieu-Daudé, 2023/12/11
- [PATCH 19/24] exec/user: Do not include 'cpu.h' in 'abitypes.h', Philippe Mathieu-Daudé, 2023/12/11