mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 13:23:54 -06:00
user: Forward declare TaskState type definition
Forward declare TaskState in "qemu/typedefs.h" so we can use it in generic headers like "hw/cpu/core.h". Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240428221450.26460-9-philmd@linaro.org>
This commit is contained in:
parent
80f034c5b2
commit
ef932e21bd
3 changed files with 5 additions and 4 deletions
|
@ -76,7 +76,7 @@ struct emulated_sigtable {
|
||||||
/*
|
/*
|
||||||
* NOTE: we force a big alignment so that the stack stored after is aligned too
|
* NOTE: we force a big alignment so that the stack stored after is aligned too
|
||||||
*/
|
*/
|
||||||
typedef struct TaskState {
|
struct TaskState {
|
||||||
pid_t ts_tid; /* tid (or pid) of this task */
|
pid_t ts_tid; /* tid (or pid) of this task */
|
||||||
|
|
||||||
struct TaskState *next;
|
struct TaskState *next;
|
||||||
|
@ -114,7 +114,7 @@ typedef struct TaskState {
|
||||||
|
|
||||||
/* This thread's sigaltstack, if it has one */
|
/* This thread's sigaltstack, if it has one */
|
||||||
struct target_sigaltstack sigaltstack_used;
|
struct target_sigaltstack sigaltstack_used;
|
||||||
} __attribute__((aligned(16))) TaskState;
|
} __attribute__((aligned(16)));
|
||||||
|
|
||||||
static inline TaskState *get_task_state(CPUState *cs)
|
static inline TaskState *get_task_state(CPUState *cs)
|
||||||
{
|
{
|
||||||
|
|
|
@ -134,6 +134,7 @@ typedef struct SHPCDevice SHPCDevice;
|
||||||
typedef struct SSIBus SSIBus;
|
typedef struct SSIBus SSIBus;
|
||||||
typedef struct TCGCPUOps TCGCPUOps;
|
typedef struct TCGCPUOps TCGCPUOps;
|
||||||
typedef struct TCGHelperInfo TCGHelperInfo;
|
typedef struct TCGHelperInfo TCGHelperInfo;
|
||||||
|
typedef struct TaskState TaskState;
|
||||||
typedef struct TranslationBlock TranslationBlock;
|
typedef struct TranslationBlock TranslationBlock;
|
||||||
typedef struct VirtIODevice VirtIODevice;
|
typedef struct VirtIODevice VirtIODevice;
|
||||||
typedef struct Visitor Visitor;
|
typedef struct Visitor Visitor;
|
||||||
|
|
|
@ -95,7 +95,7 @@ struct emulated_sigtable {
|
||||||
target_siginfo_t info;
|
target_siginfo_t info;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct TaskState {
|
struct TaskState {
|
||||||
pid_t ts_tid; /* tid (or pid) of this task */
|
pid_t ts_tid; /* tid (or pid) of this task */
|
||||||
#ifdef TARGET_ARM
|
#ifdef TARGET_ARM
|
||||||
# ifdef TARGET_ABI32
|
# ifdef TARGET_ABI32
|
||||||
|
@ -158,7 +158,7 @@ typedef struct TaskState {
|
||||||
|
|
||||||
/* Start time of task after system boot in clock ticks */
|
/* Start time of task after system boot in clock ticks */
|
||||||
uint64_t start_boottime;
|
uint64_t start_boottime;
|
||||||
} TaskState;
|
};
|
||||||
|
|
||||||
static inline TaskState *get_task_state(CPUState *cs)
|
static inline TaskState *get_task_state(CPUState *cs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue