qemu-e2k/hw/core
Dmitry Osipenko 5580ea4576 hw/ptimer: Add "no counter round down" policy
For most of the timers counter starts to decrement after first period
expires. Due to rounding down performed by the ptimer_get_count, it returns
counter - 1 for the running timer, so that for the ptimer user it looks
like counter gets decremented immediately after running the timer. Add "no
counter round down" policy that provides correct behaviour for those timers.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Message-id: ef39622d0ebfdc32a0877e59ffdf6910dc3db688.1475421224.git.digetx@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-10-24 16:26:52 +01:00
..
bus.c
empty_slot.c
fw-path-provider.c
generic-loader.c generic-loader: Add a generic loader 2016-10-04 13:28:09 +01:00
hotplug.c
irq.c
loader.c
machine.c machine: Register TYPE_MACHINE properties as class properties 2016-10-17 15:48:40 -02:00
Makefile.objs generic-loader: Add a generic loader 2016-10-04 13:28:09 +01:00
nmi.c
null-machine.c
or-irq.c
platform-bus.c
ptimer.c hw/ptimer: Add "no counter round down" policy 2016-10-24 16:26:52 +01:00
qdev-properties-system.c char: replace qemu_chr_claim/release with qemu_chr_fe_init/deinit 2016-10-24 15:27:21 +02:00
qdev-properties.c
qdev.c
register.c
stream.c
sysbus.c
uboot_image.h