diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-05-07 22:49:33 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-05-15 00:27:59 +0200 |
commit | b798068d51ecf173702c91617793989ab843c8fb (patch) | |
tree | c3402a458b0aea70054b30ca27490bf2adb6896a /target-lm32 | |
parent | 605a6aed56963360b744355d0c25da9e26a9bb0a (diff) | |
download | qemu-b798068d51ecf173702c91617793989ab843c8fb.zip qemu-b798068d51ecf173702c91617793989ab843c8fb.tar.gz qemu-b798068d51ecf173702c91617793989ab843c8fb.tar.bz2 |
target-lm32: Remove unused local variables
cppcheck report:
target-lm32/translate.c:587: style:
Variable 't0' is assigned a value that is never used
target-lm32/translate.c:588: style:
Variable 'l1' is assigned a value that is never used
Remove both variables. Please check whether that is the correct solution.
Cc: Michael Walle <michael@walle.cc>
Cc: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-lm32')
-rw-r--r-- | target-lm32/translate.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/target-lm32/translate.c b/target-lm32/translate.c index bcd52fe..eb21158 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -584,9 +584,6 @@ static void dec_orhi(DisasContext *dc) static void dec_scall(DisasContext *dc) { - TCGv t0; - int l1; - if (dc->imm5 == 7) { LOG_DIS("scall\n"); } else if (dc->imm5 == 2) { @@ -595,9 +592,6 @@ static void dec_scall(DisasContext *dc) cpu_abort(dc->env, "invalid opcode\n"); } - t0 = tcg_temp_new(); - l1 = gen_new_label(); - if (dc->imm5 == 7) { tcg_gen_movi_tl(cpu_pc, dc->pc); t_gen_raise_exception(dc, EXCP_SYSTEMCALL); |