qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v4 11/33] target/nios2: Use hw/registerfields.h for CR_STATUS


From: Richard Henderson
Subject: Re: [PATCH v4 11/33] target/nios2: Use hw/registerfields.h for CR_STATUS fields
Date: Tue, 8 Mar 2022 09:34:46 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 3/8/22 00:08, Peter Maydell wrote:
+#define CR_STATUS_RSIE (1u << R_CR_STATUS_RSIE_SHIFT)

Since these are all 1 bit fields you can use
#define CR_STATUS_PIE R_CR_STATUS_PIE_MASK
etc rather than manually shifting by the shift count.

Quite right, thanks.

r~




reply via email to

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