Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - leftover changes

This commit is contained in:
Freddie Chopin
2011-06-03 22:10:03 +02:00
committed by Øyvind Harboe
parent 5d9b7cdd2b
commit 1cfb2287a6
3 changed files with 0 additions and 25 deletions

View File

@@ -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 */