arm: cleanup for ARM_CPU

This commit is contained in:
Nguyen Anh Quynh
2017-12-21 09:43:33 +08:00
parent 41cc047b87
commit d5f83a9c2e
2 changed files with 4 additions and 6 deletions

View File

@@ -29,16 +29,14 @@
static void arm_cpu_set_pc(CPUState *cs, vaddr value)
{
CPUARMState *env = cs->env_ptr;
ARMCPU *cpu = ARM_CPU(env->uc, cs);
ARMCPU *cpu = ARM_CPU(NULL, cs);
cpu->env.regs[15] = value;
}
static bool arm_cpu_has_work(CPUState *cs)
{
CPUARMState *env = cs->env_ptr;
ARMCPU *cpu = ARM_CPU(env->uc, cs);
ARMCPU *cpu = ARM_CPU(NULL, cs);
return !cpu->powered_off
&& cs->interrupt_request &