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:
Aleksandar Markovic 2018-11-11 05:59:16 -05:00 committed by Lioncash
parent ed037799c7
commit 1029b4151d
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -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)
{
int rs, rt, rd;
@ -26401,6 +26407,8 @@ static void decode_opc(CPUMIPSState *env, DisasContext *ctx, bool *insn_need_pat
case OPC_SPECIAL2:
if ((ctx->insn_flags & INSN_R5900) && (ctx->insn_flags & ASE_MMI)) {
decode_tx79_mmi(env, ctx);
} else if (ctx->insn_flags & ASE_MXU) {
decode_opc_mxu(env, ctx);
} else {
decode_opc_special2_legacy(env, ctx);
}