qemu/target-cris
Sergey Fedorov 5b053a4a28 tcg: Clean up direct block chaining safety checks
We don't take care of direct jumps when address mapping changes. Thus we
must be sure to generate direct jumps so that they always keep valid
even if address mapping changes. Luckily, we can only allow to execute a
TB if it was generated from the pages which match with current mapping.

Document tcg_gen_goto_tb() declaration and note the reason for
destination PC limitations.

Some targets with variable length instructions allow TB to straddle a
page boundary. However, we make sure that both of TB pages match the
current address mapping when looking up TBs. So it is safe to do direct
jumps into the both pages. Correct the checks for some of those targets.

Given that, we can safely patch a TB which spans two pages. Remove the
unnecessary check in cpu_exec() and allow such TBs to be patched.

Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
Signed-off-by: Sergey Fedorov <sergey.fedorov@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
2016-05-12 14:06:41 -10:00
..
cpu-qom.h target-cris: update CPU state save/load to use VMStateDescription 2015-09-17 14:31:38 +01:00
cpu.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
cpu.h tb: consistently use uint32_t for tb->flags 2016-05-12 14:06:40 -10:00
crisv10-decode.h
crisv32-decode.h janitor: add guards to headers 2012-12-19 08:31:31 +01:00
gdbstub.c cris: Clean up includes 2016-01-29 15:07:24 +00:00
helper.c cris: Clean up includes 2016-01-29 15:07:24 +00:00
helper.h cris: avoid "naked" qemu_log 2015-12-17 17:33:47 +01:00
machine.c cris: Clean up includes 2016-01-29 15:07:24 +00:00
Makefile.objs cpu: Introduce CPUClass::gdb_{read,write}_register() 2013-07-27 00:04:17 +02:00
mmu.c cris: Clean up includes 2016-02-16 14:29:26 +00:00
mmu.h target-cris: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
op_helper.c cris: Clean up includes 2016-01-29 15:07:24 +00:00
opcode-cris.h cris: remove unused cris_cond15 declarations 2015-03-19 11:11:55 +03:00
translate_v10.c tcg: Change tcg_global_mem_new_* to take a TCGv_ptr 2016-02-09 10:19:32 +11:00
translate.c tcg: Clean up direct block chaining safety checks 2016-05-12 14:06:41 -10:00