mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-25 20:21:00 +00:00
tcg: Make cpu_ssr a TCGv
This commit is contained in:
parent
b09a8626f0
commit
2beea0db0d
|
@ -3066,7 +3066,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
CHECK_IU_FEATURE(dc, HYPV);
|
CHECK_IU_FEATURE(dc, HYPV);
|
||||||
if (!hypervisor(dc))
|
if (!hypervisor(dc))
|
||||||
goto priv_insn;
|
goto priv_insn;
|
||||||
tcg_gen_mov_tl(tcg_ctx, cpu_tmp0, *(TCGv *)tcg_ctx->cpu_ssr);
|
tcg_gen_mov_tl(tcg_ctx, cpu_tmp0, tcg_ctx->cpu_ssr);
|
||||||
break;
|
break;
|
||||||
case 31: // ver
|
case 31: // ver
|
||||||
tcg_gen_mov_tl(tcg_ctx, cpu_tmp0, *(TCGv *)tcg_ctx->cpu_ver);
|
tcg_gen_mov_tl(tcg_ctx, cpu_tmp0, *(TCGv *)tcg_ctx->cpu_ver);
|
||||||
|
@ -4021,7 +4021,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
CHECK_IU_FEATURE(dc, HYPV);
|
CHECK_IU_FEATURE(dc, HYPV);
|
||||||
if (!hypervisor(dc))
|
if (!hypervisor(dc))
|
||||||
goto priv_insn;
|
goto priv_insn;
|
||||||
tcg_gen_mov_tl(tcg_ctx, *(TCGv *)tcg_ctx->cpu_ssr, cpu_tmp0);
|
tcg_gen_mov_tl(tcg_ctx, tcg_ctx->cpu_ssr, cpu_tmp0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
goto illegal_insn;
|
goto illegal_insn;
|
||||||
|
@ -5557,8 +5557,7 @@ void gen_intermediate_code_init(CPUSPARCState *env)
|
||||||
tcg_ctx->cpu_hver = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, hver),
|
tcg_ctx->cpu_hver = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, hver),
|
||||||
"hver");
|
"hver");
|
||||||
|
|
||||||
tcg_ctx->cpu_ssr = g_malloc0(sizeof(TCGv));
|
tcg_ctx->cpu_ssr = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env,
|
||||||
*(TCGv *)tcg_ctx->cpu_ssr = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env,
|
|
||||||
offsetof(CPUSPARCState, ssr), "ssr");
|
offsetof(CPUSPARCState, ssr), "ssr");
|
||||||
|
|
||||||
tcg_ctx->cpu_ver = g_malloc0(sizeof(TCGv));
|
tcg_ctx->cpu_ver = g_malloc0(sizeof(TCGv));
|
||||||
|
|
|
@ -846,7 +846,7 @@ struct TCGContext {
|
||||||
TCGv cpu_hintp;
|
TCGv cpu_hintp;
|
||||||
TCGv cpu_htba;
|
TCGv cpu_htba;
|
||||||
TCGv cpu_hver;
|
TCGv cpu_hver;
|
||||||
void *cpu_ssr;
|
TCGv cpu_ssr;
|
||||||
void *cpu_ver;
|
void *cpu_ver;
|
||||||
void *cpu_wim;
|
void *cpu_wim;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue