qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] hw/timer/grlib_gptimer: Avoid


From: Michael Tokarev
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] hw/timer/grlib_gptimer: Avoid integer overflows
Date: Fri, 14 Mar 2014 20:13:54 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10

16.02.2014 15:12, Sebastian Huber wrote:
> The GPTIMER uses 32-bit registers.  Use a 64-bit operation to get the
> ptimer count, otherwise we end up with a count of 0 for GPTIMER counter
> values of 0xffffffff.
> 
> Use the GPTIMER counter value for tracing to avoid an overflow of the
> 32-bit value passed to trace_grlib_gptimer_enable().

Thanks, applied to the trivial patches queue.

Somehow this was quite a bit difficult for me to understand what's going
on.  Once I did, things are really trivial indeed.

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]