mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-25 19:01:06 +00:00
tcg: Make cpu_htba a TCGv
This commit is contained in:
parent
577386b246
commit
e161e9dcb4
|
@ -2943,7 +2943,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
tcg_gen_mov_tl(tcg_ctx, cpu_dst, tcg_ctx->cpu_hintp);
|
tcg_gen_mov_tl(tcg_ctx, cpu_dst, tcg_ctx->cpu_hintp);
|
||||||
break;
|
break;
|
||||||
case 5: // htba
|
case 5: // htba
|
||||||
tcg_gen_mov_tl(tcg_ctx, cpu_dst, *(TCGv *)tcg_ctx->cpu_htba);
|
tcg_gen_mov_tl(tcg_ctx, cpu_dst, tcg_ctx->cpu_htba);
|
||||||
break;
|
break;
|
||||||
case 6: // hver
|
case 6: // hver
|
||||||
tcg_gen_mov_tl(tcg_ctx, cpu_dst, *(TCGv *)tcg_ctx->cpu_hver);
|
tcg_gen_mov_tl(tcg_ctx, cpu_dst, *(TCGv *)tcg_ctx->cpu_hver);
|
||||||
|
@ -4062,7 +4062,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn, bool hook_ins
|
||||||
tcg_gen_mov_tl(tcg_ctx, tcg_ctx->cpu_hintp, cpu_tmp0);
|
tcg_gen_mov_tl(tcg_ctx, tcg_ctx->cpu_hintp, cpu_tmp0);
|
||||||
break;
|
break;
|
||||||
case 5: // htba
|
case 5: // htba
|
||||||
tcg_gen_mov_tl(tcg_ctx, *(TCGv *)tcg_ctx->cpu_htba, cpu_tmp0);
|
tcg_gen_mov_tl(tcg_ctx, tcg_ctx->cpu_htba, cpu_tmp0);
|
||||||
break;
|
break;
|
||||||
case 31: // hstick_cmpr
|
case 31: // hstick_cmpr
|
||||||
{
|
{
|
||||||
|
@ -5551,8 +5551,7 @@ void gen_intermediate_code_init(CPUSPARCState *env)
|
||||||
tcg_ctx->cpu_hintp = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, hintp),
|
tcg_ctx->cpu_hintp = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, hintp),
|
||||||
"hintp");
|
"hintp");
|
||||||
|
|
||||||
tcg_ctx->cpu_htba = g_malloc0(sizeof(TCGv));
|
tcg_ctx->cpu_htba = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, htba),
|
||||||
*(TCGv *)tcg_ctx->cpu_htba = tcg_global_mem_new(tcg_ctx, tcg_ctx->cpu_env, offsetof(CPUSPARCState, htba),
|
|
||||||
"htba");
|
"htba");
|
||||||
|
|
||||||
tcg_ctx->cpu_hver = g_malloc0(sizeof(TCGv));
|
tcg_ctx->cpu_hver = g_malloc0(sizeof(TCGv));
|
||||||
|
|
|
@ -844,7 +844,7 @@ struct TCGContext {
|
||||||
TCGv cpu_stick_cmpr;
|
TCGv cpu_stick_cmpr;
|
||||||
TCGv cpu_hstick_cmpr;
|
TCGv cpu_hstick_cmpr;
|
||||||
TCGv cpu_hintp;
|
TCGv cpu_hintp;
|
||||||
void *cpu_htba;
|
TCGv cpu_htba;
|
||||||
void *cpu_hver;
|
void *cpu_hver;
|
||||||
void *cpu_ssr;
|
void *cpu_ssr;
|
||||||
void *cpu_ver;
|
void *cpu_ver;
|
||||||
|
|
Loading…
Reference in a new issue