summaryrefslogtreecommitdiffstats
path: root/target/arm/translate-mve.c
diff options
context:
space:
mode:
authorPeter Maydell2021-08-13 18:11:56 +0200
committerPeter Maydell2021-08-25 11:48:50 +0200
commit0f31e37c7f0b9577c6ce46304158ccd7c935006b (patch)
treefbcb2f0f86862ee0c3a48a32e2bd3a1cfcd7add6 /target/arm/translate-mve.c
parenttarget/arm: Implement MVE VPNOT (diff)
downloadqemu-0f31e37c7f0b9577c6ce46304158ccd7c935006b.tar.gz
qemu-0f31e37c7f0b9577c6ce46304158ccd7c935006b.tar.xz
qemu-0f31e37c7f0b9577c6ce46304158ccd7c935006b.zip
target/arm: Implement MVE VCTP
Implement the MVE VCTP insn, which sets the VPR.P0 predicate bits so as to predicate any element at index Rn or greater is predicated. As with VPNOT, this insn itself is predicable and subject to beatwise execution. The calculation of the mask is the same as is used to determine ltpmask in mve_element_mask(), but we precalculate masklen in generated code to avoid having to have 4 helpers specialized by size. We put the decode line in with the low-overhead-loop insns in t32.decode because it's logically part of that collection of insn patterns, even though it is an MVE only insn. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/arm/translate-mve.c')
-rw-r--r--target/arm/translate-mve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/translate-mve.c b/target/arm/translate-mve.c
index cc2e58cfe2..865d5acbe7 100644
--- a/target/arm/translate-mve.c
+++ b/target/arm/translate-mve.c
@@ -93,7 +93,7 @@ bool mve_eci_check(DisasContext *s)
}
}
-static void mve_update_eci(DisasContext *s)
+void mve_update_eci(DisasContext *s)
{
/*
* The helper function will always update the CPUState field,