[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: |
Fri, 19 Jun 2020 10:07:35 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
On 6/19/20 6:44 AM, Peter Maydell wrote:
>> +/* No-fault version of mte_check1, to be used by SVE for MemSingleNF. */
>> +bool mte_probe1(CPUARMState *env, uint32_t desc, uint64_t ptr, uintptr_t ra)
>
> If this is a no-fault version, why do we need to pass in the ra ?
Excellent question.
At first blush this doesn't actually implement no-fault at all, since it looks
as if probe_access_flags would in fact fault. Except that within sve, we've
already probed the page and this is just to handle the mte check.
I think I'll remove the argument, pass 0 down to allocation_tag_mem, assert
that the page is valid, and document the process.
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 25/42] target/arm: Implement helper_mte_check1, Richard Henderson, 2020/06/02
- [PATCH v7 26/42] target/arm: Implement helper_mte_checkN, Richard Henderson, 2020/06/02
- [PATCH v7 22/42] target/arm: Move regime_tcr to internals.h, Richard Henderson, 2020/06/02
- [PATCH v7 24/42] target/arm: Add gen_mte_checkN, Richard Henderson, 2020/06/02
- [PATCH v7 27/42] target/arm: Add helper_mte_check_zva, Richard Henderson, 2020/06/02
- [PATCH v7 28/42] target/arm: Use mte_checkN for sve unpredicated loads, Richard Henderson, 2020/06/02