mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-26 20:25:07 +00:00
target-mips: assorted formatting fixes
Backports commits d75de74967f631a7d0b538d4b88f96f9c426bfe2, 6225a4a0e39cb24e7b9e1d4d2c1a3e6eaee18e85, and d2bfa6e6222baa0218bd0658499d38bac56ac34c from qemu
This commit is contained in:
parent
ca496991ea
commit
0f82a7f89f
|
@ -18515,7 +18515,7 @@ static void hook_insn(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_patc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decode_opc (CPUMIPSState *env, DisasContext *ctx, bool *insn_need_patch, int *insn_patch_offset)
|
static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_patch, int *insn_patch_offset)
|
||||||
{
|
{
|
||||||
TCGContext *tcg_ctx = ctx->uc->tcg_ctx;
|
TCGContext *tcg_ctx = ctx->uc->tcg_ctx;
|
||||||
#if defined(TARGET_MIPS64)
|
#if defined(TARGET_MIPS64)
|
||||||
|
@ -18684,7 +18684,8 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pa
|
||||||
save_cpu_state(ctx, 1);
|
save_cpu_state(ctx, 1);
|
||||||
gen_helper_di(tcg_ctx, t0, tcg_ctx->cpu_env);
|
gen_helper_di(tcg_ctx, t0, tcg_ctx->cpu_env);
|
||||||
gen_store_gpr(tcg_ctx, t0, rt);
|
gen_store_gpr(tcg_ctx, t0, rt);
|
||||||
/* Stop translation as we may have switched the execution mode */
|
/* Stop translation as we may have switched
|
||||||
|
the execution mode */
|
||||||
ctx->bstate = BS_STOP;
|
ctx->bstate = BS_STOP;
|
||||||
break;
|
break;
|
||||||
case OPC_EI:
|
case OPC_EI:
|
||||||
|
@ -18692,7 +18693,8 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pa
|
||||||
save_cpu_state(ctx, 1);
|
save_cpu_state(ctx, 1);
|
||||||
gen_helper_ei(tcg_ctx, t0, tcg_ctx->cpu_env);
|
gen_helper_ei(tcg_ctx, t0, tcg_ctx->cpu_env);
|
||||||
gen_store_gpr(tcg_ctx, t0, rt);
|
gen_store_gpr(tcg_ctx, t0, rt);
|
||||||
/* Stop translation as we may have switched the execution mode */
|
/* Stop translation as we may have switched
|
||||||
|
the execution mode */
|
||||||
ctx->bstate = BS_STOP;
|
ctx->bstate = BS_STOP;
|
||||||
break;
|
break;
|
||||||
default: /* Invalid */
|
default: /* Invalid */
|
||||||
|
@ -18899,8 +18901,8 @@ static void decode_opc (CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pa
|
||||||
case OPC_S_FMT:
|
case OPC_S_FMT:
|
||||||
case OPC_D_FMT:
|
case OPC_D_FMT:
|
||||||
check_cp1_enabled(ctx);
|
check_cp1_enabled(ctx);
|
||||||
gen_farith(ctx, ctx->opcode & FOP(0x3f, 0x1f), rt, rd, sa,
|
gen_farith(ctx, ctx->opcode & FOP(0x3f, 0x1f),
|
||||||
(imm >> 8) & 0x7);
|
rt, rd, sa, (imm >> 8) & 0x7);
|
||||||
break;
|
break;
|
||||||
case OPC_W_FMT:
|
case OPC_W_FMT:
|
||||||
case OPC_L_FMT:
|
case OPC_L_FMT:
|
||||||
|
|
Loading…
Reference in a new issue