qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2] bitops.h: Add field32() and field64() functi


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2] bitops.h: Add field32() and field64() functions to extract bitfields
Date: Wed, 27 Jun 2012 14:01:54 +0100

On 27 June 2012 12:29, Andreas Färber <address@hidden> wrote:
> Do you have followup patches that make use of this? Might illustrate
> what variables and types are being passed in.

Here's a random snippet from the LPAE patch I'm working on:

    uint32_t t0sz = field32(env->cp15.c2_control, 0, 3);
    uint32_t t1sz = field32(env->cp15.c2_control, 16, 3);

I expect that in almost all cases the size and length values
will just be constants.

-- PMM



reply via email to

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