qemu-devel
[Top][All Lists]
Advanced

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

Re: [RFC PATCH v3 12/34] Hexagon (target/hexagon) instruction attributes


From: Richard Henderson
Subject: Re: [RFC PATCH v3 12/34] Hexagon (target/hexagon) instruction attributes
Date: Wed, 26 Aug 2020 07:34:26 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 8/18/20 8:50 AM, Taylor Simpson wrote:
> +#define ATTRIB_WIDTH 32
> +#define GET_ATTRIB(opcode, attrib) \
> +    (((opcode_attribs[opcode][attrib / ATTRIB_WIDTH])\
> +    >> (attrib % ATTRIB_WIDTH)) & 0x1)

Can you define GET_ATTRIB in terms of qemu/bitops.h?

I'm leery of ATTRIB_WIDTH being separate from the actual definition of
opcode_attribs, over in opcodes.h.

Why does attribs.h need to live separately?  They're clearly closely related,
and cannot in fact be used separately.


r~



reply via email to

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