Home
last modified time | relevance | path

Searched hist:"0 dfe952dc5c2921488a1172407857d5bb81d17a4" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dppc_booke.cdiff 0dfe952dc5c2921488a1172407857d5bb81d17a4 Mon Jan 09 05:23:38 CST 2017 Roman Kapl <rka@sysgo.com> ppc: Prevent inifnite loop in decrementer auto-reload.

If the DECAR register is set to 0, QEMU tries to reload the decrementer with
zero in an inifinite loop. According to PPC documentation, the decrementer is
triggered on 1->0 transition, so avoid reloading the decrementer if if is
already zero.

The problem does not manifest under Linux, but it is valid to set DECAR to zero
(and may make sense as part of decrementer initialization when interrupts are
disabled).

Signed-off-by: Roman Kapl <rka@sysgo.com>
[dwg: Fixed style nit]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>