qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] target-mips/translate.c: Fix formatting in `decode_


From: Maciej W. Rozycki
Subject: [Qemu-devel] [PATCH] target-mips/translate.c: Fix formatting in `decode_opc'
Date: Wed, 5 Nov 2014 15:35:31 +0000
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

Signed-off-by: Maciej W. Rozycki <address@hidden>
---
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 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]