[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 07/19] target/arm: Move helper_set_pstate_* into cpreg
From: |
Fabiano Rosas |
Subject: |
Re: [RFC PATCH v2 07/19] target/arm: Move helper_set_pstate_* into cpregs.c |
Date: |
Tue, 10 Jan 2023 10:19:40 -0300 |
Richard Henderson <richard.henderson@linaro.org> writes:
> On 1/9/23 14:42, Fabiano Rosas wrote:
>> We want to move sme_helper into the tcg directory, but the cpregs
>> accessor functions cannot go along, otherwise they would be separate
>> from the respective ARMCPRegInfo definition which needs to be compiled
>> with CONFIG_TCG=n as well.
>
> Hmm. I would have hoped these could stay tcg-only, somehow.
> I wonder if it warrants being an ARM_CP_SPECIAL_MASK value instead of
> svcr_write.
In general, what characterizes as "special" for a register to use
ARM_CP_SPECIAL_MASK?
And specifically for svcr_write, it seems to me that
helper_set_pstate_{sm,za} and arm_reset_sve_state are straight-forward
enough that they could (if it made sense) be used by non-tcg code
(except they eventually call vfp_set_fpscr that still needs to be
split).
>
>
> r~
- [RFC PATCH v2 00/19] target/arm: Allow CONFIG_TCG=n builds, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 01/19] target/arm: rename handle_semihosting to tcg_handle_semihosting, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 02/19] target/arm: wrap psci call with tcg_enabled, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 03/19] target/arm: wrap call to aarch64_sve_change_el in tcg_enabled(), Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 04/19] target/arm: Move PC alignment check, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 06/19] target/arm: Move define_debug_regs() to cpregs.c, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 07/19] target/arm: Move helper_set_pstate_* into cpregs.c, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 05/19] target/arm: Move cpregs code into cpregs.c, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 08/19] target/arm: move translate modules to tcg/, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 09/19] target/arm: move helpers to tcg/, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 10/19] target/arm: Move psci.c into the tcg directory, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 11/19] target/arm: Wrap arm_rebuild_hflags calls with tcg_enabled, Fabiano Rosas, 2023/01/09
- [RFC PATCH v2 12/19] target/arm: Move hflags code into the tcg directory, Fabiano Rosas, 2023/01/09