提交 44427c40 编写于 作者: A Alexander Graf

PPC: Clean up BookE timer code

The BookE timer code had some written-but-not-read variables. Get rid
of them.
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 ddd1055b
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册