diff options
author | Alexander Graf <agraf@suse.de> | 2011-09-19 15:17:47 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-10-06 09:48:09 +0200 |
commit | 44427c401f7c0053db31f40a58a427e1ae3cd8c3 (patch) | |
tree | 17f421de3aee236df28d9c8e5130f397df85e2b9 /hw/ppc_booke.c | |
parent | ddd1055b07fdfe488a22c2275adaca75f4206d30 (diff) |
PPC: Clean up BookE timer code
The BookE timer code had some written-but-not-read variables. Get rid
of them.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/ppc_booke.c')
-rw-r--r-- | hw/ppc_booke.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/hw/ppc_booke.c b/hw/ppc_booke.c index 3e2fff588a..88719458b0 100644 --- a/hw/ppc_booke.c +++ b/hw/ppc_booke.c @@ -153,15 +153,9 @@ static void booke_update_fixed_timer(CPUState *env, static void booke_decr_cb(void *opaque) { - CPUState *env; - ppc_tb_t *tb_env; - booke_timer_t *booke_timer; + CPUState *env = opaque; - env = opaque; - tb_env = env->tb_env; - booke_timer = tb_env->opaque; env->spr[SPR_BOOKE_TSR] |= TSR_DIS; - booke_update_irq(env); if (env->spr[SPR_BOOKE_TCR] & TCR_ARE) { @@ -211,13 +205,7 @@ static void booke_wdt_cb(void *opaque) void store_booke_tsr(CPUState *env, target_ulong val) { - ppc_tb_t *tb_env = env->tb_env; - booke_timer_t *booke_timer; - - booke_timer = tb_env->opaque; - env->spr[SPR_BOOKE_TSR] &= ~val; - booke_update_irq(env); } |