From 1029b4151df48b36f8f5ae2a399f1554bd3b4126 Mon Sep 17 00:00:00 2001 From: Aleksandar Markovic Date: Sun, 11 Nov 2018 05:59:16 -0500 Subject: [PATCH] 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 --- qemu/target/mips/translate.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qemu/target/mips/translate.c b/qemu/target/mips/translate.c index 071a3319..40b4e554 100644 --- a/qemu/target/mips/translate.c +++ b/qemu/target/mips/translate.c @@ -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); }