Re: [Qemu-devel] [PATCH v10 7/7] arm_mptimer: Convert to use ptimer

2016-01-10 Thread Dmitry Osipenko
10.01.2016 21:05, Dmitry Osipenko пишет: I missed case where periodic timer should stop in the following case: load = 0, counter != 0 -> run -> set counter = 0 -> should stop Test added. Will fix it in V11. Forgot to mention that prescaler must be 0 in that case. Prescaler != 0 would result

Re: [Qemu-devel] [PATCH v10 7/7] arm_mptimer: Convert to use ptimer

2016-01-10 Thread Dmitry Osipenko
I missed case where periodic timer should stop in the following case: load = 0, counter != 0 -> run -> set counter = 0 -> should stop Test added. Will fix it in V11. -- Dmitry

[Qemu-devel] [PATCH v10 7/7] arm_mptimer: Convert to use ptimer

2016-01-09 Thread Dmitry Osipenko
Current ARM MPTimer implementation uses QEMUTimer for the actual timer, this implementation isn't complete and mostly tries to duplicate of what generic ptimer is already doing fine. Conversion to ptimer brings the following benefits and fixes: - Simple timer pausing implementation