user: Forward declare target_cpu_copy_regs structure

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241212185341.2857-16-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-11-23 18:28:43 +01:00
parent f47dcf519d
commit fb5c28e195
18 changed files with 21 additions and 18 deletions

View file

@ -185,7 +185,7 @@ void cpu_loop(CPUARMState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
ARMCPU *cpu = env_archcpu(env);
CPUState *cs = env_cpu(env);

View file

@ -173,7 +173,7 @@ void cpu_loop(CPUAlphaState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;

View file

@ -513,7 +513,7 @@ void cpu_loop(CPUARMState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
CPUState *cpu = env_cpu(env);
TaskState *ts = get_task_state(cpu);

View file

@ -27,5 +27,8 @@ void target_exception_dump(CPUArchState *env, const char *fmt, int code);
#define EXCP_DUMP(env, fmt, code) \
target_exception_dump(env, fmt, code)
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs);
typedef struct target_pt_regs target_pt_regs;
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs);
#endif

View file

@ -79,7 +79,7 @@ void cpu_loop(CPUHexagonState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
env->gpr[HEX_REG_PC] = regs->sepc;
env->gpr[HEX_REG_SP] = regs->sp;

View file

@ -188,7 +188,7 @@ void cpu_loop(CPUHPPAState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;
for (i = 1; i < 32; i++) {

View file

@ -331,7 +331,7 @@ static void target_cpu_free(void *obj)
g_free(obj);
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
CPUState *cpu = env_cpu(env);
bool is64 = (env->features[FEAT_8000_0001_EDX] & CPUID_EXT2_LM) != 0;

View file

@ -97,7 +97,7 @@ void cpu_loop(CPULoongArchState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;

View file

@ -92,7 +92,7 @@ void cpu_loop(CPUM68KState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
CPUState *cpu = env_cpu(env);
TaskState *ts = get_task_state(cpu);

View file

@ -127,7 +127,7 @@ void cpu_loop(CPUMBState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
env->regs[0] = regs->r0;
env->regs[1] = regs->r1;

View file

@ -211,7 +211,7 @@ done_syscall:
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
CPUState *cpu = env_cpu(env);
TaskState *ts = get_task_state(cpu);

View file

@ -83,7 +83,7 @@ void cpu_loop(CPUOpenRISCState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;

View file

@ -378,7 +378,7 @@ void cpu_loop(CPUPPCState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;

View file

@ -94,7 +94,7 @@ void cpu_loop(CPURISCVState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
CPUState *cpu = env_cpu(env);
TaskState *ts = get_task_state(cpu);

View file

@ -180,7 +180,7 @@ void cpu_loop(CPUS390XState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;
for (i = 0; i < 16; i++) {

View file

@ -81,7 +81,7 @@ void cpu_loop(CPUSH4State *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;

View file

@ -357,7 +357,7 @@ void cpu_loop (CPUSPARCState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;
env->pc = regs->pc;

View file

@ -238,7 +238,7 @@ void cpu_loop(CPUXtensaState *env)
}
}
void target_cpu_copy_regs(CPUArchState *env, struct target_pt_regs *regs)
void target_cpu_copy_regs(CPUArchState *env, target_pt_regs *regs)
{
int i;
for (i = 0; i < 16; ++i) {