Signed-off-by: Maciej W. Rozycki <ma...@codesourcery.com> --- qemu-mips-translate-decode-opc-format.diff Index: qemu-git-trunk/target-mips/translate.c =================================================================== --- qemu-git-trunk.orig/target-mips/translate.c 2014-11-02 18:51:04.838001276 +0000 +++ qemu-git-trunk/target-mips/translate.c 2014-11-02 18:51:10.838947420 +0000 @@ -16774,7 +16774,7 @@ static void decode_opc_special3(CPUMIPSS } } -static void decode_opc (CPUMIPSState *env, DisasContext *ctx) +static void decode_opc(CPUMIPSState *env, DisasContext *ctx) { int32_t offset; int rs, rt, rd, sa; @@ -16940,7 +16940,8 @@ static void decode_opc (CPUMIPSState *en save_cpu_state(ctx, 1); gen_helper_di(t0, cpu_env); gen_store_gpr(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; break; case OPC_EI: @@ -16948,7 +16949,8 @@ static void decode_opc (CPUMIPSState *en save_cpu_state(ctx, 1); gen_helper_ei(t0, cpu_env); gen_store_gpr(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; break; default: /* Invalid */ @@ -17205,8 +17207,8 @@ static void decode_opc (CPUMIPSState *en gen_r6_cmp_d(ctx, ctx->opcode & 0x1f, rt, rd, sa); break; default: - gen_farith(ctx, ctx->opcode & FOP(0x3f, 0x1f), rt, rd, sa, - (imm >> 8) & 0x7); + gen_farith(ctx, ctx->opcode & FOP(0x3f, 0x1f), + rt, rd, sa, (imm >> 8) & 0x7); break; } } else {