qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH target-arm v7 1/1] target-arm: Implements the AR


From: Alistair Francis
Subject: Re: [Qemu-devel] [PATCH target-arm v7 1/1] target-arm: Implements the ARM PMCCNTR register
Date: Fri, 21 Feb 2014 10:52:56 +1000

On Fri, Feb 21, 2014 at 10:07 AM, Peter Maydell
<address@hidden> wrote:
> On 20 February 2014 23:58, Alistair Francis <address@hidden> wrote:
>> On Fri, Feb 21, 2014 at 1:44 AM, Peter Maydell <address@hidden> wrote:
>>> This breaks compilation of the arm-linux-user target
>>> (the qemu_clock_get_* functions are only available in
>>> system mode). You probably want to do something similar
>>> to how we handle the generic timers, where we #ifdef
>>> everything out. (I don't think Linux gives user
>>> space access to the perf monitor registers.)
>
>> What do you think the functions should do when in user space? Should
>> they just return 0?
>
> Just don't define reginfo entries for them at all -- then we will
> UNDEF because the lookup will return no result. This is what
> the generic timer code does.
>
> thanks
> -- PMM
>

Ok, so if it is user mode, it just treats the pmccntr register exactly
as it does before the patch. I've implemented that and it seems to
work. I'll submit the patch now



reply via email to

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