diff options
author | Freddie Chopin <freddie_chopin@op.pl> | 2011-06-03 22:10:03 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-06-07 17:53:33 +0200 |
commit | 1cfb2287a67c1f78b76583b2e5ed83ca3560b0d5 (patch) | |
tree | 9ab93821f693d9d5ca791870cb15312376120a69 /src/target/arm_simulator.c | |
parent | 5d9b7cdd2b2a4759740e35b23aade517b8b3a548 (diff) |
Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes
Diffstat (limited to 'src/target/arm_simulator.c')
-rw-r--r-- | src/target/arm_simulator.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/target/arm_simulator.c b/src/target/arm_simulator.c index 0f6fe3f5..0a34cfcf 100644 --- a/src/target/arm_simulator.c +++ b/src/target/arm_simulator.c @@ -666,15 +666,12 @@ static int arm_simulate_step_core(struct target *target, } else { - enum arm_mode mode = sim->get_mode(sim); int update_cpsr = 0; if (instruction.info.load_store_multiple.S) { if (instruction.info.load_store_multiple.register_list & 0x8000) update_cpsr = 1; - else - mode = ARM_MODE_USR; } for (i = 0; i < 16; i++) @@ -722,7 +719,6 @@ static int arm_simulate_step_core(struct target *target, uint32_t Rn = sim->get_reg_mode(sim, instruction.info.load_store_multiple.Rn); int bits_set = 0; - enum arm_mode mode = sim->get_mode(sim); for (i = 0; i < 16; i++) { @@ -730,11 +726,6 @@ static int arm_simulate_step_core(struct target *target, bits_set++; } - if (instruction.info.load_store_multiple.S) - { - mode = ARM_MODE_USR; - } - switch (instruction.info.load_store_multiple.addressing_mode) { case 0: /* Increment after */ |