qemu-e2k/target/arm
Richard Henderson e79b445d89 target/arm: Fix cpu_get_tb_cpu_state() for non-SVE CPUs
Not only are the sve-related tb_flags fields unused when SVE is
disabled, but not all of the cpu registers are initialized properly
for computing same.  This can corrupt other fields by ORing in -1,
which might result in QEMU crashing.

This bug was not present in 3.0, but this patch is cc'd to
stable because adf92eab90 where the bug was
introduced was marked for stable.

Fixes: adf92eab90
Cc: qemu-stable@nongnu.org (3.0.1)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-09-25 14:02:29 +01:00
..
arch_dump.c
arm_ldst.h target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
arm-powerctl.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
arm-powerctl.h
arm-semi.c target/arm: Remove a handful of stray tabs 2018-08-24 13:17:48 +01:00
cpu64.c target/arm: Add sve-max-vq cpu property to -cpu max 2018-08-16 14:05:28 +01:00
cpu-qom.h
cpu.c target/arm: add "cortex-m0" CPU model 2018-08-16 14:05:28 +01:00
cpu.h target/arm: Remove a handful of stray tabs 2018-08-24 13:17:48 +01:00
crypto_helper.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
gdbstub64.c
gdbstub.c
helper-a64.c
helper-a64.h
helper-sve.h target/arm: Implement SVE fp complex multiply add 2018-06-29 15:11:12 +01:00
helper.c target/arm: Fix cpu_get_tb_cpu_state() for non-SVE CPUs 2018-09-25 14:02:29 +01:00
helper.h target/arm: Implement SVE dot product (indexed) 2018-06-29 15:11:15 +01:00
idau.h
internals.h
iwmmxt_helper.c target/arm: Untabify iwmmxt_helper.c 2018-08-24 13:17:48 +01:00
kvm32.c target/arm: Remove redundant DIV detection for KVM 2018-06-29 15:11:18 +01:00
kvm64.c
kvm_arm.h target/arm: Allow KVM device address overwriting 2018-06-22 13:28:35 +01:00
kvm-consts.h
kvm-stub.c
kvm.c target/arm: Allow KVM device address overwriting 2018-06-22 13:28:35 +01:00
machine.c target/arm: Add dummy needed functions to M profile vmstate subsections 2018-08-06 16:19:33 +01:00
Makefile.objs
monitor.c
neon_helper.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
op_addsub.h
op_helper.c target/arm: Permit accesses to ELR_Hyp from Hyp mode via MSR/MRS (banked) 2018-08-20 11:24:32 +01:00
psci.c target: Do not include "exec/exec-all.h" if it is not necessary 2018-06-01 14:15:10 +02:00
sve_helper.c target/arm: Use fp_status_fp16 for do_fmpa_zpzzz_h 2018-08-16 14:29:58 +01:00
sve.decode target/arm: Implement SVE dot product (indexed) 2018-06-29 15:11:15 +01:00
trace-events
translate-a64.c target/arm: Fix aa64 FCADD and FCMLA decode 2018-08-16 14:29:58 +01:00
translate-a64.h target/arm: Extend vec_reg_offset to larger sizes 2018-06-15 15:23:34 +01:00
translate-sve.c target/arm: Use FZ not FZ16 for SVE FCVT single-half and double-half 2018-08-16 14:29:58 +01:00
translate.c target/arm: Untabify translate.c 2018-08-24 13:17:47 +01:00
translate.h
vec_helper.c target/arm: Implement SVE dot product (indexed) 2018-06-29 15:11:15 +01:00