aboutsummaryrefslogtreecommitdiff
path: root/target-cris/translate.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:46:46 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 19:46:46 +0000
commit0d84be5bd0df34c2663b38d6efd7d850d15f2eb0 (patch)
tree69d2b99cab34c2883d7f28a0f1b5128f04e7f8a2 /target-cris/translate.c
parent22ed1d34789b184aaaa28c1e4620ce4467744cec (diff)
downloadqemu-0d84be5bd0df34c2663b38d6efd7d850d15f2eb0.zip
qemu-0d84be5bd0df34c2663b38d6efd7d850d15f2eb0.tar.gz
qemu-0d84be5bd0df34c2663b38d6efd7d850d15f2eb0.tar.bz2
cris: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-cris/translate.c')
-rw-r--r--target-cris/translate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index f8baa88..a7014fa 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -1292,13 +1292,12 @@ static void dec_prep_alu_r(DisasContext *dc, int rs, int rd,
static int dec_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 = 2;
rs = dc->op1;
- rd = dc->op2;
is_imm = rs == 15 && dc->postinc;
/* Load [$rs] onto T1. */
@@ -1367,14 +1366,12 @@ static unsigned int dec_bccq(DisasContext *dc)
int32_t offset;
int sign;
uint32_t cond = dc->op2;
- int tmp;
offset = EXTRACT_FIELD (dc->ir, 1, 7);
sign = EXTRACT_FIELD(dc->ir, 0, 0);
offset *= 2;
offset |= sign << 8;
- tmp = offset;
offset = sign_extend(offset, 8);
LOG_DIS("b%s %x\n", cc_name(cond), dc->pc + offset);