diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-01-12 11:24:36 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-01-23 13:32:38 +0000 |
commit | 5c922ec5b136b452fe9d21e7581c99554ce650ed (patch) | |
tree | e7e63e1cd924e6d3da1c715e73f010c0bb3415e9 /target/arm/helper.c | |
parent | f4318557149184d6dac99e561acabcb602a84ee1 (diff) | |
download | qemu-5c922ec5b136b452fe9d21e7581c99554ce650ed.zip qemu-5c922ec5b136b452fe9d21e7581c99554ce650ed.tar.gz qemu-5c922ec5b136b452fe9d21e7581c99554ce650ed.tar.bz2 |
target/arm/sme: Unify set_pstate() SM/ZA helpers as set_svcr()
Unify the two helper_set_pstate_{sm,za} in this function.
Do not call helper_* functions from svcr_write.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20230112102436.1913-8-philmd@linaro.org
Message-Id: <20230112004322.161330-1-richard.henderson@linaro.org>
[PMD: Split patch in multiple tiny steps]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/helper.c')
-rw-r--r-- | target/arm/helper.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index 8077967..72b37b7 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -6765,8 +6765,6 @@ void aarch64_set_svcr(CPUARMState *env, uint64_t new, uint64_t mask) static void svcr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { - helper_set_pstate_sm(env, FIELD_EX64(value, SVCR, SM)); - helper_set_pstate_za(env, FIELD_EX64(value, SVCR, ZA)); aarch64_set_svcr(env, value, -1); } |