qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 08/62] tcg-s390: Avoid set-but-not-used werrors.


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 08/62] tcg-s390: Avoid set-but-not-used werrors.
Date: Thu, 27 May 2010 13:45:50 -0700

The s_bits variable was only used in a dprintf, and isn't
really informative since we already dump 'opc' from which
s_bits is trivially derived.

Signed-off-by: Richard Henderson <address@hidden>
---
 tcg/s390/tcg-target.c |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c
index 1f961ad..eb3ca38 100644
--- a/tcg/s390/tcg-target.c
+++ b/tcg/s390/tcg-target.c
@@ -519,7 +519,7 @@ static void tcg_finish_qemu_ldst(TCGContext* s, uint16_t 
*label2_ptr)
    and endianness conversion */
 static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* args, int opc)
 {
-    int addr_reg, data_reg, mem_index, s_bits;
+    int addr_reg, data_reg, mem_index;
     int arg0 = TCG_REG_R2;
     uint16_t *label2_ptr;
 
@@ -527,10 +527,8 @@ static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* 
args, int opc)
     addr_reg = *args++;
     mem_index = *args;
 
-    s_bits = opc & 3;
-
-    dprintf("tcg_out_qemu_ld opc %d data_reg %d addr_reg %d mem_index %d "
-            "s_bits %d\n", opc, data_reg, addr_reg, mem_index, s_bits);
+    dprintf("tcg_out_qemu_ld opc %d data_reg %d addr_reg %d mem_index %d\n"
+            opc, data_reg, addr_reg, mem_index);
 
     tcg_prepare_qemu_ldst(s, data_reg, addr_reg, mem_index,
                           opc, &label2_ptr, 0);
@@ -596,7 +594,7 @@ static void tcg_out_qemu_ld(TCGContext* s, const TCGArg* 
args, int opc)
 
 static void tcg_out_qemu_st(TCGContext* s, const TCGArg* args, int opc)
 {
-    int addr_reg, data_reg, mem_index, s_bits;
+    int addr_reg, data_reg, mem_index;
     uint16_t *label2_ptr;
     int arg0 = TCG_REG_R2;
 
@@ -604,10 +602,8 @@ static void tcg_out_qemu_st(TCGContext* s, const TCGArg* 
args, int opc)
     addr_reg = *args++;
     mem_index = *args;
 
-    s_bits = opc;
-
-    dprintf("tcg_out_qemu_st opc %d data_reg %d addr_reg %d mem_index %d "
-            "s_bits %d\n", opc, data_reg, addr_reg, mem_index, s_bits);
+    dprintf("tcg_out_qemu_st opc %d data_reg %d addr_reg %d mem_index %d\n"
+            opc, data_reg, addr_reg, mem_index);
 
     tcg_prepare_qemu_ldst(s, data_reg, addr_reg, mem_index,
                           opc, &label2_ptr, 1);
-- 
1.7.0.1




reply via email to

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