]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/arm: Fix svep width in arm_gen_dynamic_svereg_xml
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Feb 2023 21:33:22 +0000 (11:33 -1000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Mar 2023 14:08:11 +0000 (14:08 +0000)
Define svep based on the size of the predicates,
not the primary vector registers.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230227213329.793795-8-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/gdbstub64.c

index 895e19f084531e7e9ff34772d582860c32c28af9..d0e1305f6fccf074918f90f20b1907e3c8051265 100644 (file)
@@ -297,7 +297,7 @@ int arm_gen_dynamic_svereg_xml(CPUState *cs, int orig_base_reg)
     /* Create the predicate vector type. */
     g_string_append_printf(s,
                            "<vector id=\"svep\" type=\"uint8\" count=\"%d\"/>",
-                           reg_width / 8);
+                           pred_width / 8);
 
     /* Define the vector registers. */
     for (i = 0; i < 32; i++) {