Fix interval interrupt of cadence ttc when timer is in decrement mode
commita7ffaf5c96e26820edffa94eeac766fe60bfdd31
authorJohannes Schlatow <schlatow@ida.ing.tu-bs.de>
Mon, 6 Jul 2015 09:05:44 +0000 (6 10:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Jul 2015 09:05:44 +0000 (6 10:05 +0100)
tree8a7aafc46372276c3273fa095dcb6b101cd10653
parent2a6332d968297266dbabf9d33f959e3a5efdd0f9
Fix interval interrupt of cadence ttc when timer is in decrement mode

The interval interrupt is not set if the timer is in decrement mode.
This is because x >=0 and x < interval after leaving the while-loop.

Signed-off-by: Johannes Schlatow <schlatow@ida.ing.tu-bs.de>
Message-id: 20150630135821.51f3b4fd@johanness-latitude
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/timer/cadence_ttc.c