[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 25/42] target/arm: Implement helper_mte_check1
From: |
Richard Henderson |
Subject: |
Re: [PATCH v7 25/42] target/arm: Implement helper_mte_check1 |
Date: |
Thu, 18 Jun 2020 10:32:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/18/20 9:37 AM, Peter Maydell wrote:
>> +/* Return true if tbi bits mean that the access is checked. */
>> +static inline bool tbi_check(uint32_t desc, int bit55)
>> +{
>> + return (desc >> (R_MTEDESC_TBI_SHIFT + bit55)) & 1;
>> +}
>> +
>> +/* Return true if tcma bits mean that the access is unchecked. */
>> +static inline bool tcma_check(uint32_t desc, int bit55, int ptr_tag)
>
> It's a bit confusing that one of these foo_check()s returns
> "true for checked access" and the other one returns "true
> for unchecked access"...
Yes, but that's true of the hardware bits too. I tried to reverse them but
then got confused.
r~
- [PATCH v7 18/42] target/arm: Simplify DC_ZVA, (continued)
- [PATCH v7 18/42] target/arm: Simplify DC_ZVA, Richard Henderson, 2020/06/02
- [PATCH v7 19/42] target/arm: Implement the LDGM, STGM, STZGM instructions, Richard Henderson, 2020/06/02
- [PATCH v7 23/42] target/arm: Add gen_mte_check1, Richard Henderson, 2020/06/02
- [PATCH v7 24/42] target/arm: Add gen_mte_checkN, Richard Henderson, 2020/06/02
- [PATCH v7 25/42] target/arm: Implement helper_mte_check1, Richard Henderson, 2020/06/02
- [PATCH v7 28/42] target/arm: Use mte_checkN for sve unpredicated loads, Richard Henderson, 2020/06/02
- [PATCH v7 27/42] target/arm: Add helper_mte_check_zva, Richard Henderson, 2020/06/02
- [PATCH v7 26/42] target/arm: Implement helper_mte_checkN, Richard Henderson, 2020/06/02
- [PATCH v7 29/42] target/arm: Use mte_checkN for sve unpredicated stores, Richard Henderson, 2020/06/02