target-arm: Get rid of unused variable warnings

This commit is contained in:
Lioncash 2018-02-23 12:41:25 -05:00
parent 87130fc884
commit 88af0b0153
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 1 additions and 4 deletions

View file

@ -235,8 +235,7 @@ static void aarch64_cpu_finalizefn(struct uc_struct *uc, Object *obj, void *opaq
static void aarch64_cpu_set_pc(CPUState *cs, vaddr value)
{
CPUARMState *env = cs->env_ptr;
ARMCPU *cpu = ARM_CPU(env->uc, cs);
ARMCPU *cpu = ARM_CPU(cs->uc, cs);
/* It's OK to look at env for the current mode here, because it's
* never possible for an AArch64 TB to chain to an AArch32 TB.
* (Otherwise we would need to use synchronize_from_tb instead.)

View file

@ -5357,7 +5357,6 @@ void aarch64_sync_64_to_32(CPUARMState *env)
static void arm_cpu_do_interrupt_aarch32_(CPUState *cs)
{
CPUARMState *env = cs->env_ptr;
ARMCPU *cpu = ARM_CPU(env->uc, cs);
uint32_t addr;
uint32_t mask;
int new_mode;
@ -5513,7 +5512,6 @@ static void arm_cpu_do_interrupt_aarch32_(CPUState *cs)
static void arm_cpu_do_interrupt_aarch64_(CPUState *cs)
{
CPUARMState *env = cs->env_ptr;
ARMCPU *cpu = ARM_CPU(env->uc, cs);
unsigned int new_el = env->exception.target_el;
target_ulong addr = env->cp15.vbar_el[new_el];
unsigned int new_mode = aarch64_pstate_mode(new_el, true);