mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target-mips: Let cpu_mips_init() return MIPSCPU
Turn cpu_init macro into a static inline function returning CPUMIPSState for backwards compatibility. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
fca1be7cbc
commit
30bf942d8c
2 changed files with 12 additions and 4 deletions
|
@ -12689,7 +12689,7 @@ static void mips_tcg_init(void)
|
|||
|
||||
#include "translate_init.c"
|
||||
|
||||
CPUMIPSState *cpu_mips_init (const char *cpu_model)
|
||||
MIPSCPU *cpu_mips_init(const char *cpu_model)
|
||||
{
|
||||
MIPSCPU *cpu;
|
||||
CPUMIPSState *env;
|
||||
|
@ -12711,7 +12711,7 @@ CPUMIPSState *cpu_mips_init (const char *cpu_model)
|
|||
mips_tcg_init();
|
||||
cpu_reset(CPU(cpu));
|
||||
qemu_init_vcpu(env);
|
||||
return env;
|
||||
return cpu;
|
||||
}
|
||||
|
||||
void cpu_state_reset(CPUMIPSState *env)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue