summaryrefslogtreecommitdiff
path: root/target-cris
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-10-13 18:38:08 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-10-13 18:42:35 +0000
commit9fc27a6d7e2d49d28d5e2af0bf6e1703a980699b (patch)
tree0ae4f2b921add75dc254b779ba2dc7b9373cce6f /target-cris
parent2761a8ea2bde4aef6e0846b7fad03aa134db4faf (diff)
downloadqemu-9fc27a6d7e2d49d28d5e2af0bf6e1703a980699b.tar.gz
qemu-9fc27a6d7e2d49d28d5e2af0bf6e1703a980699b.tar.bz2
qemu-9fc27a6d7e2d49d28d5e2af0bf6e1703a980699b.zip
cris: avoid a write only variable
Compiling with GCC 4.6.0 20100925 produced a warning: In file included from /src/qemu/target-cris/translate.c:3154:0: /src/qemu/target-cris/translate_v10.c: In function 'dec10_prep_move_m': /src/qemu/target-cris/translate_v10.c:111:22: error: variable 'rd' set but not used [-Werror=unused-but-set-variable] Fix by deleting rd, adjust the only user. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-cris')
-rw-r--r--target-cris/translate_v10.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/target-cris/translate_v10.c b/target-cris/translate_v10.c
index 14e590da3c..6944827a57 100644
--- a/target-cris/translate_v10.c
+++ b/target-cris/translate_v10.c
@@ -108,16 +108,15 @@ static unsigned int crisv10_post_memaddr(DisasContext *dc, unsigned int size)
static int dec10_prep_move_m(DisasContext *dc, int s_ext, int memsize,
TCGv dst)
{
- unsigned int rs, rd;
+ unsigned int rs;
uint32_t imm;
int is_imm;
int insn_len = 0;
rs = dc->src;
- rd = dc->dst;
is_imm = rs == 15 && !(dc->tb_flags & PFIX_FLAG);
LOG_DIS("rs=%d rd=%d is_imm=%d mode=%d pfix=%d\n",
- rs, rd, is_imm, dc->mode, dc->tb_flags & PFIX_FLAG);
+ rs, dc->dst, is_imm, dc->mode, dc->tb_flags & PFIX_FLAG);
/* Load [$rs] onto T1. */
if (is_imm) {