Revision 2abf314d

b/target-mips/translate.c
1153 1153
        opn = "ll";
1154 1154
        break;
1155 1155
    }
1156
    (void)opn; /* avoid a compiler warning */
1156 1157
    MIPS_DEBUG("%s %s, %d(%s)", opn, regnames[rt], offset, regnames[base]);
1157 1158
    tcg_temp_free(t0);
1158 1159
    tcg_temp_free(t1);
......
1212 1213
        opn = "swr";
1213 1214
        break;
1214 1215
    }
1216
    (void)opn; /* avoid a compiler warning */
1215 1217
    MIPS_DEBUG("%s %s, %d(%s)", opn, regnames[rt], offset, regnames[base]);
1216 1218
    tcg_temp_free(t0);
1217 1219
    tcg_temp_free(t1);
......
1247 1249
        opn = "sc";
1248 1250
        break;
1249 1251
    }
1252
    (void)opn; /* avoid a compiler warning */
1250 1253
    MIPS_DEBUG("%s %s, %d(%s)", opn, regnames[rt], offset, regnames[base]);
1251 1254
    tcg_temp_free(t1);
1252 1255
    tcg_temp_free(t0);
......
1312 1315
        generate_exception(ctx, EXCP_RI);
1313 1316
        goto out;
1314 1317
    }
1318
    (void)opn; /* avoid a compiler warning */
1315 1319
    MIPS_DEBUG("%s %s, %d(%s)", opn, fregnames[ft], offset, regnames[base]);
1316 1320
 out:
1317 1321
    tcg_temp_free(t0);
......
1412 1416
        break;
1413 1417
#endif
1414 1418
    }
1419
    (void)opn; /* avoid a compiler warning */
1415 1420
    MIPS_DEBUG("%s %s, %s, " TARGET_FMT_lx, opn, regnames[rt], regnames[rs], uimm);
1416 1421
}
1417 1422

  
......
1454 1459
        opn = "lui";
1455 1460
        break;
1456 1461
    }
1462
    (void)opn; /* avoid a compiler warning */
1457 1463
    MIPS_DEBUG("%s %s, %s, " TARGET_FMT_lx, opn, regnames[rt], regnames[rs], uimm);
1458 1464
}
1459 1465

  
......
1481 1487
        opn = "sltiu";
1482 1488
        break;
1483 1489
    }
1490
    (void)opn; /* avoid a compiler warning */
1484 1491
    MIPS_DEBUG("%s %s, %s, " TARGET_FMT_lx, opn, regnames[rt], regnames[rs], uimm);
1485 1492
    tcg_temp_free(t0);
1486 1493
}
......
1572 1579
        break;
1573 1580
#endif
1574 1581
    }
1582
    (void)opn; /* avoid a compiler warning */
1575 1583
    MIPS_DEBUG("%s %s, %s, " TARGET_FMT_lx, opn, regnames[rt], regnames[rs], uimm);
1576 1584
    tcg_temp_free(t0);
1577 1585
}
......
1752 1760
        opn = "mul";
1753 1761
        break;
1754 1762
    }
1763
    (void)opn; /* avoid a compiler warning */
1755 1764
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
1756 1765
}
1757 1766

  
......
1789 1798
        tcg_gen_movi_tl(cpu_gpr[rd], 0);
1790 1799
    gen_set_label(l1);
1791 1800

  
1801
    (void)opn; /* avoid a compiler warning */
1792 1802
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
1793 1803
}
1794 1804

  
......
1849 1859
        opn = "xor";
1850 1860
        break;
1851 1861
    }
1862
    (void)opn; /* avoid a compiler warning */
1852 1863
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
1853 1864
}
1854 1865

  
......
1878 1889
        opn = "sltu";
1879 1890
        break;
1880 1891
    }
1892
    (void)opn; /* avoid a compiler warning */
1881 1893
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
1882 1894
    tcg_temp_free(t0);
1883 1895
    tcg_temp_free(t1);
......
1958 1970
        break;
1959 1971
#endif
1960 1972
    }
1973
    (void)opn; /* avoid a compiler warning */
1961 1974
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
1962 1975
    tcg_temp_free(t0);
1963 1976
    tcg_temp_free(t1);
......
1997 2010
        opn = "mtlo";
1998 2011
        break;
1999 2012
    }
2013
    (void)opn; /* avoid a compiler warning */
2000 2014
    MIPS_DEBUG("%s %s", opn, regnames[reg]);
2001 2015
}
2002 2016

  
......
2229 2243
        generate_exception(ctx, EXCP_RI);
2230 2244
        goto out;
2231 2245
    }
2246
    (void)opn; /* avoid a compiler warning */
2232 2247
    MIPS_DEBUG("%s %s %s", opn, regnames[rs], regnames[rt]);
2233 2248
 out:
2234 2249
    tcg_temp_free(t0);
......
2308 2323
        goto out;
2309 2324
    }
2310 2325
    gen_store_gpr(t0, rd);
2326
    (void)opn; /* avoid a compiler warning */
2311 2327
    MIPS_DEBUG("%s %s, %s, %s", opn, regnames[rd], regnames[rs], regnames[rt]);
2312 2328

  
2313 2329
 out:
......
2348 2364
        break;
2349 2365
#endif
2350 2366
    }
2367
    (void)opn; /* avoid a compiler warning */
2351 2368
    MIPS_DEBUG("%s %s, %s", opn, regnames[rd], regnames[rs]);
2352 2369
    tcg_temp_free(t0);
2353 2370
}
......
2561 2578
#endif
2562 2579
    }
2563 2580

  
2581
    (void)opn; /* avoid a compiler warning */
2564 2582
    MIPS_DEBUG("%s %s, %s", opn, regnames[rd], regnames[rs]);
2565 2583
    tcg_temp_free(t0);
2566 2584
    tcg_temp_free(t1);
......
3730 3748
    default:
3731 3749
       goto die;
3732 3750
    }
3751
    (void)rn; /* avoid a compiler warning */
3733 3752
    LOG_DISAS("mfc0 %s (reg %d sel %d)\n", rn, reg, sel);
3734 3753
    return;
3735 3754

  
......
4320 4339
    default:
4321 4340
       goto die;
4322 4341
    }
4342
    (void)rn; /* avoid a compiler warning */
4323 4343
    LOG_DISAS("mtc0 %s (reg %d sel %d)\n", rn, reg, sel);
4324 4344
    /* For simplicity assume that all writes can cause interrupts.  */
4325 4345
    if (use_icount) {
......
4892 4912
    default:
4893 4913
        goto die;
4894 4914
    }
4915
    (void)rn; /* avoid a compiler warning */
4895 4916
    LOG_DISAS("dmfc0 %s (reg %d sel %d)\n", rn, reg, sel);
4896 4917
    return;
4897 4918

  
......
5483 5504
    default:
5484 5505
        goto die;
5485 5506
    }
5507
    (void)rn; /* avoid a compiler warning */
5486 5508
    LOG_DISAS("dmtc0 %s (reg %d sel %d)\n", rn, reg, sel);
5487 5509
    /* For simplicity assume that all writes can cause interrupts.  */
5488 5510
    if (use_icount) {
......
5943 5965
        generate_exception(ctx, EXCP_RI);
5944 5966
        return;
5945 5967
    }
5968
    (void)opn; /* avoid a compiler warning */
5946 5969
    MIPS_DEBUG("%s %s %d", opn, regnames[rt], rd);
5947 5970
}
5948 5971
#endif /* !CONFIG_USER_ONLY */
......
6052 6075
        generate_exception (ctx, EXCP_RI);
6053 6076
        goto out;
6054 6077
    }
6078
    (void)opn; /* avoid a compiler warning */
6055 6079
    MIPS_DEBUG("%s: cond %02x target " TARGET_FMT_lx, opn,
6056 6080
               ctx->hflags, btarget);
6057 6081
    ctx->btarget = btarget;
......
6281 6305
        generate_exception (ctx, EXCP_RI);
6282 6306
        goto out;
6283 6307
    }
6308
    (void)opn; /* avoid a compiler warning */
6284 6309
    MIPS_DEBUG("%s %s %s", opn, regnames[rt], fregnames[fs]);
6285 6310

  
6286 6311
 out:
......
7608 7633
        generate_exception (ctx, EXCP_RI);
7609 7634
        return;
7610 7635
    }
7636
    (void)opn; /* avoid a compiler warning */
7611 7637
    switch (optype) {
7612 7638
    case BINOP:
7613 7639
        MIPS_DEBUG("%s %s, %s, %s", opn, fregnames[fd], fregnames[fs], fregnames[ft]);
......
7720 7746
        break;
7721 7747
    }
7722 7748
    tcg_temp_free(t0);
7749
    (void)opn; (void)store; /* avoid compiler warnings */
7723 7750
    MIPS_DEBUG("%s %s, %s(%s)", opn, fregnames[store ? fs : fd],
7724 7751
               regnames[index], regnames[base]);
7725 7752
}
......
7993 8020
        generate_exception (ctx, EXCP_RI);
7994 8021
        return;
7995 8022
    }
8023
    (void)opn; /* avoid a compiler warning */
7996 8024
    MIPS_DEBUG("%s %s, %s, %s, %s", opn, fregnames[fd], fregnames[fr],
7997 8025
               fregnames[fs], fregnames[ft]);
7998 8026
}
......
9971 9999
        break;
9972 10000
#endif
9973 10001
    }
10002
    (void)opn; /* avoid a compiler warning */
9974 10003
    MIPS_DEBUG("%s, %s, %d(%s)", opn, regnames[rd], offset, regnames[base]);
9975 10004
    tcg_temp_free(t0);
9976 10005
    tcg_temp_free(t1);

Also available in: Unified diff