qemu-e2k/target/mips
Paolo Bonzini dfae46c3ba target/mips: tcg: detect out-of-bounds accesses to cpu_gpr and cpu_gpr_hi
In some cases (for example gen_compute_branch_nm in
nanomips_translate.c.inc) registers can be unused
on some paths and a negative value is passed in that case:

        gen_compute_branch_nm(ctx, OPC_BPOSGE32, 4, -1, -2,
                              imm << 1);

To avoid an out of bounds access in those cases, introduce
assertions.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-04-20 11:17:35 +02:00
..
sysemu
tcg target/mips: tcg: detect out-of-bounds accesses to cpu_gpr and cpu_gpr_hi 2023-04-20 11:17:35 +02:00
cpu-defs.c.inc target/mips: Set correct CP0.Config[4, 5] values for M14K(c) 2023-03-08 00:37:48 +01:00
cpu-param.h target/mips: Remove NB_MMU_MODES define 2023-03-13 06:44:37 -07:00
cpu-qom.h
cpu.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
cpu.h
fpu_helper.h
fpu.c
gdbstub.c
helper.h
internal.h
Kconfig
kvm_mips.h
kvm.c
meson.build
mips-defs.h
msa.c