~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to hw/ppc/ppc_booke.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
198
198
    booke_update_irq(cpu);
199
199
 
200
200
    if (env->spr[SPR_BOOKE_TCR] & TCR_ARE) {
201
 
        /* Auto Reload */
202
 
        cpu_ppc_store_decr(env, env->spr[SPR_BOOKE_DECAR]);
 
201
        /* Do not reload 0, it is already there. It would just trigger
 
202
         * the timer again and lead to infinite loop */
 
203
        if (env->spr[SPR_BOOKE_DECAR] != 0) {
 
204
            /* Auto Reload */
 
205
            cpu_ppc_store_decr(env, env->spr[SPR_BOOKE_DECAR]);
 
206
        }
203
207
    }
204
208
}
205
209