[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/21] gdbstub: Include missing 'hw/core/cpu.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 08/21] gdbstub: Include missing 'hw/core/cpu.h' header |
Date: |
Wed, 17 Apr 2024 20:27:53 +0200 |
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>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20231211212003.21686-15-philmd@linaro.org>
---
gdbstub/gdbstub.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 9c23d44baf..9c2b8b5d0a 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 00/21] exec/next for 9.1, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 01/21] gdbstub: Simplify #ifdef'ry in helpers.h, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 02/21] hw/core: Remove check on NEED_CPU_H in tcg-cpu-ops.h, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 03/21] exec: Rename NEED_CPU_H -> COMPILING_PER_TARGET, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 04/21] exec: Include 'cpu.h' before validating CPUArchState placement, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 05/21] exec: Expose 'target_page.h' API to user emulation, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 06/21] target: Define TCG_GUEST_DEFAULT_MO in 'cpu-param.h', Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 07/21] accel: Include missing 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 08/21] gdbstub: Include missing 'hw/core/cpu.h' header,
Philippe Mathieu-Daudé <=
- [PATCH 09/21] semihosting/uaccess: Avoid including 'cpu.h', Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 10/21] semihosting/guestfd: Remove unused 'semihosting/uaccess.h' header, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 11/21] exec/cpu-all: Reduce 'qemu/rcu.h' header inclusion, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 12/21] target/ppc/excp_helper: Avoid 'abi_ptr' in system emulation, Philippe Mathieu-Daudé, 2024/04/17
- [PATCH 13/21] accel/tcg: Un-inline retaddr helpers to 'user-retaddr.h', Philippe Mathieu-Daudé, 2024/04/17