qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 05/10] target-arm: Implement setting of watchpoi


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 05/10] target-arm: Implement setting of watchpoints
Date: Fri, 29 Aug 2014 17:43:43 +0100

On 29 August 2014 17:42, Richard Henderson <address@hidden> wrote:
> On 08/29/2014 04:21 AM, Peter Maydell wrote:
>> +        /* Watchpoint covers an aligned area up to 2GB in size */
>> +        len = 1ULL << mask;
>> +        /* If masked bits in WVR are not zero it's CONSTRAINED UNPREDICTABLE
>> +         * whether the watchpoint fires when the unmasked bits match; we opt
>> +         * to generate the exceptions.
>> +         */
>> +        wvr &= (len - 1);
>
> This looks funny... address being clipped to length?
> Surely it's ~(len - 1)...

Nice catch. Linux doesn't actually use this bit of the watchpoint
functionality, which is why I didn't notice.

-- PMM



reply via email to

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