mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
target-cris: Move TCG initialization to CRISCPU initfn
Split out TCG initialization from cpu_cris_init(). Avoid CPUCRISState dependency for v10-specific initialization and for non-v10 by inlining the decision into the initfn as well. Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
79614b781d
commit
d1a94fec3d
4 changed files with 19 additions and 18 deletions
|
@ -1257,7 +1257,7 @@ static unsigned int crisv10_decoder(CPUCRISState *env, DisasContext *dc)
|
|||
return insn_len;
|
||||
}
|
||||
|
||||
static CPUCRISState *cpu_crisv10_init (CPUCRISState *env)
|
||||
void cris_initialize_crisv10_tcg(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1300,7 +1300,4 @@ static CPUCRISState *cpu_crisv10_init (CPUCRISState *env)
|
|||
offsetof(CPUCRISState, pregs[i]),
|
||||
pregnames_v10[i]);
|
||||
}
|
||||
|
||||
return env;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue