[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/7] target/arm: v8.3 PAC ID_AA64ISAR[12] feature-detection
From: |
Peter Maydell |
Subject: |
Re: [PATCH 1/7] target/arm: v8.3 PAC ID_AA64ISAR[12] feature-detection |
Date: |
Mon, 13 Feb 2023 16:03:09 +0000 |
On Thu, 2 Feb 2023 at 21:13, Aaron Lindsay <aaron@os.amperecomputing.com> wrote:
>
> Signed-off-by: Aaron Lindsay <aaron@os.amperecomputing.com>
> diff --git a/target/arm/pauth_helper.c b/target/arm/pauth_helper.c
> index d0483bf051..a0c9bea06b 100644
> --- a/target/arm/pauth_helper.c
> +++ b/target/arm/pauth_helper.c
> @@ -282,8 +282,8 @@ static uint64_t pauth_computepac_impdef(uint64_t data,
> uint64_t modifier,
> static uint64_t pauth_computepac(CPUARMState *env, uint64_t data,
> uint64_t modifier, ARMPACKey key)
> {
> - if (cpu_isar_feature(aa64_pauth_arch, env_archcpu(env))) {
> - return pauth_computepac_architected(data, modifier, key);
> + if (cpu_isar_feature(aa64_pauth_arch_qarma5, env_archcpu(env))) {
> + return pauth_computepac_architected(data, modifier, key, false);
> } else {
> return pauth_computepac_impdef(data, modifier, key);
> }
> --
> 2.25.1
Just noticed -- this should I guess be in a later patch, because
it's added an extra argument to the function call without changing
the function definition or declaration, so I think this patch
won't compile as-is.
-- PMM
- [PATCH 0/7] Implement Most ARMv8.3 Pointer Authentication Features, Aaron Lindsay, 2023/02/02
- [PATCH 1/7] target/arm: v8.3 PAC ID_AA64ISAR[12] feature-detection, Aaron Lindsay, 2023/02/02
- [PATCH 3/7] target/arm: Implement v8.3 EnhancedPAC, Aaron Lindsay, 2023/02/02
- [PATCH 2/7] target/arm: Implement v8.3 QARMA3 PAC cipher, Aaron Lindsay, 2023/02/02
- [PATCH 4/7] target/arm: Implement v8.3 Pauth2, Aaron Lindsay, 2023/02/02
- [PATCH 5/7] targer/arm: Inform helpers whether a PAC instruction is 'combined', Aaron Lindsay, 2023/02/02
- [PATCH 6/7] target/arm: Implement v8.3 FPAC and FPACCOMBINE, Aaron Lindsay, 2023/02/02