[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 1/7] target/arm: Improve masking of HCR RES0 bits
From: |
Richard Henderson |
Subject: |
Re: [PATCH v4 1/7] target/arm: Improve masking of HCR RES0 bits |
Date: |
Fri, 28 Feb 2020 08:57:33 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/28/20 8:22 AM, Peter Maydell wrote:
>> + if (ri->state == ARM_CP_STATE_AA32) {
>> + /*
>> + * Writes from aarch32 mode have more RES0 bits.
>> + * This includes TDZ, RW, E2H, and more.
>> + */
>> + valid_mask &= ~0xff80ff8c90000000ull;
>> + }
>
> Isn't bit HCR2 bit 16 (aka bit 32+16==48 here) also RES0 from AArch32 ?
Yes, and it's set in the above.
> I'm not really a fan of the hex-number here either, given we
> have HCR_* constants.
While plenty of those bits have names, many don't. Shall I simply name all of
the ones that have names, and that differ from the aa64 masking?
r~
- [PATCH v4 0/7] target/arm: Honor more HCR_EL2 traps, Richard Henderson, 2020/02/25
- [PATCH v4 1/7] target/arm: Improve masking of HCR RES0 bits, Richard Henderson, 2020/02/25
- [PATCH v4 2/7] target/arm: Honor the HCR_EL2.{TVM,TRVM} bits, Richard Henderson, 2020/02/25
- [PATCH v4 3/7] target/arm: Honor the HCR_EL2.TSW bit, Richard Henderson, 2020/02/25
- [PATCH v4 4/7] target/arm: Honor the HCR_EL2.TACR bit, Richard Henderson, 2020/02/25
- [PATCH v4 5/7] target/arm: Honor the HCR_EL2.TPCP bit, Richard Henderson, 2020/02/25