Patchwork [1/5] target-mips: Set opn in gen_ldst_multiple.

login
register
mail settings
Submitter Richard Henderson
Date March 30, 2012, 5:05 p.m.
Message ID <1333127144-7088-2-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/149687/
State New
Headers show

Comments

Richard Henderson - March 30, 2012, 5:05 p.m.
Used by MIPS_DEBUG, when enabled.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-mips/translate.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/target-mips/translate.c b/target-mips/translate.c
index a663b74..85dd65a 100644
--- a/target-mips/translate.c
+++ b/target-mips/translate.c
@@ -9833,6 +9833,7 @@  static void gen_andi16 (CPUMIPSState *env, DisasContext *ctx)
 static void gen_ldst_multiple (DisasContext *ctx, uint32_t opc, int reglist,
                                int base, int16_t offset)
 {
+    const char *opn = "ldst_multiple";
     TCGv t0, t1;
     TCGv_i32 t2;
 
@@ -9852,19 +9853,24 @@  static void gen_ldst_multiple (DisasContext *ctx, uint32_t opc, int reglist,
     switch (opc) {
     case LWM32:
         gen_helper_lwm(t0, t1, t2);
+        opn = "lwm";
         break;
     case SWM32:
         gen_helper_swm(t0, t1, t2);
+        opn = "swm";
         break;
 #ifdef TARGET_MIPS64
     case LDM:
         gen_helper_ldm(t0, t1, t2);
+        opn = "ldm";
         break;
     case SDM:
         gen_helper_sdm(t0, t1, t2);
+        opn = "sdm";
         break;
 #endif
     }
+    (void)opn;
     MIPS_DEBUG("%s, %x, %d(%s)", opn, reglist, offset, regnames[base]);
     tcg_temp_free(t0);
     tcg_temp_free(t1);