mirror of https://github.com/xemu-project/xemu.git
target/mips: Rewrite complex ifdef'ry
No need for this obfuscated ifdef'ry, KISS. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210226093111.3865906-4-f4bug@amsat.org>
This commit is contained in:
parent
21fb03be67
commit
4f57f43cb8
|
@ -28276,13 +28276,16 @@ static bool decode_opc_legacy(CPUMIPSState *env, DisasContext *ctx)
|
||||||
#if defined(TARGET_MIPS64)
|
#if defined(TARGET_MIPS64)
|
||||||
if ((ctx->insn_flags & INSN_R5900) && (ctx->insn_flags & ASE_MMI)) {
|
if ((ctx->insn_flags & INSN_R5900) && (ctx->insn_flags & ASE_MMI)) {
|
||||||
decode_mmi(env, ctx);
|
decode_mmi(env, ctx);
|
||||||
#else
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#if !defined(TARGET_MIPS64)
|
||||||
if (ctx->insn_flags & ASE_MXU) {
|
if (ctx->insn_flags & ASE_MXU) {
|
||||||
decode_opc_mxu(env, ctx);
|
decode_opc_mxu(env, ctx);
|
||||||
#endif
|
break;
|
||||||
} else {
|
|
||||||
decode_opc_special2_legacy(env, ctx);
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
decode_opc_special2_legacy(env, ctx);
|
||||||
break;
|
break;
|
||||||
case OPC_SPECIAL3:
|
case OPC_SPECIAL3:
|
||||||
#if defined(TARGET_MIPS64)
|
#if defined(TARGET_MIPS64)
|
||||||
|
|
Loading…
Reference in New Issue