qemu-e2k/target/m68k
Laurent Vivier 7deddf96e9 target/m68k: fix set_cc_op()
The first call of set_cc_op() in a new translation sequence
is done with old_op set to CC_OP_DYNAMIC (-1).

This will do an out of bound access to the array cc_op_live[].

We fix that by adding an entry in cc_op_live[] for CC_OP_DYNAMIC.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20171221160558.14151-1-laurent@vivier.eu>
2017-12-21 20:11:28 +01:00
..
cpu-qom.h
cpu.c m68k: cleanup cpu type name composition 2017-10-27 16:03:54 +02:00
cpu.h target/m68k: fix set_cc_op() 2017-12-21 20:11:28 +01:00
fpu_helper.c target/m68k: Switch fpu_rom from make_floatx80() to make_floatx80_init() 2017-09-10 18:07:40 +02:00
gdbstub.c
helper.c m68k: replace cpu_m68k_init() with cpu_generic_init() 2017-09-01 11:54:24 -03:00
helper.h target/m68k: check CF_PARALLEL instead of parallel_cpus 2017-10-24 13:53:41 -07:00
m68k-semi.c
Makefile.objs target/m68k: add monitor.c 2017-12-21 20:11:28 +01:00
monitor.c target/m68k: add monitor.c 2017-12-21 20:11:28 +01:00
op_helper.c target/m68k: check CF_PARALLEL instead of parallel_cpus 2017-10-24 13:53:41 -07:00
qregs.def
translate.c target/m68k: fix set_cc_op() 2017-12-21 20:11:28 +01:00