mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
accel/tcg: Hoist cpu_get_tb_cpu_state decl to accl/tcg/cpu-ops.h
For some targets, simply remove the local definition. For other targets, move the inline definition out of line. Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c2d5897d3b
commit
a59a876999
37 changed files with 243 additions and 285 deletions
|
@ -549,6 +549,15 @@ static int mips_cpu_mmu_index(CPUState *cs, bool ifunc)
|
|||
return mips_env_mmu_index(cpu_env(cs));
|
||||
}
|
||||
|
||||
void cpu_get_tb_cpu_state(CPUMIPSState *env, vaddr *pc,
|
||||
uint64_t *cs_base, uint32_t *flags)
|
||||
{
|
||||
*pc = env->active_tc.PC;
|
||||
*cs_base = 0;
|
||||
*flags = env->hflags & (MIPS_HFLAG_TMASK | MIPS_HFLAG_BMASK |
|
||||
MIPS_HFLAG_HWRENA_ULR);
|
||||
}
|
||||
|
||||
static const TCGCPUOps mips_tcg_ops = {
|
||||
.mttcg_supported = TARGET_LONG_BITS == 32,
|
||||
.guest_default_memory_order = 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue