mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 10:35:12 +00:00
target/mips: Add and integrate MXU decoding engine placeholder
Provide the placeholder and add the invocation logic for MXU decoding engine. Backports commit 0a348b9a4e115deb28856e650b8fe5277e291c23 from qemu
This commit is contained in:
parent
ed037799c7
commit
1029b4151d
|
@ -24127,6 +24127,12 @@ static void decode_opc_special(CPUMIPSState *env, DisasContext *ctx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void decode_opc_mxu(CPUMIPSState *env, DisasContext *ctx)
|
||||||
|
{
|
||||||
|
MIPS_INVAL("decode_opc_mxu");
|
||||||
|
generate_exception_end(ctx, EXCP_RI);
|
||||||
|
}
|
||||||
|
|
||||||
static void decode_opc_special2_legacy(CPUMIPSState *env, DisasContext *ctx)
|
static void decode_opc_special2_legacy(CPUMIPSState *env, DisasContext *ctx)
|
||||||
{
|
{
|
||||||
int rs, rt, rd;
|
int rs, rt, rd;
|
||||||
|
@ -26401,6 +26407,8 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
|
||||||
case OPC_SPECIAL2:
|
case OPC_SPECIAL2:
|
||||||
if ((ctx->insn_flags & INSN_R5900) && (ctx->insn_flags & ASE_MMI)) {
|
if ((ctx->insn_flags & INSN_R5900) && (ctx->insn_flags & ASE_MMI)) {
|
||||||
decode_tx79_mmi(env, ctx);
|
decode_tx79_mmi(env, ctx);
|
||||||
|
} else if (ctx->insn_flags & ASE_MXU) {
|
||||||
|
decode_opc_mxu(env, ctx);
|
||||||
} else {
|
} else {
|
||||||
decode_opc_special2_legacy(env, ctx);
|
decode_opc_special2_legacy(env, ctx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue