unicorn/qemu/target-m68k
Sergey Fedorov 73c59faad5
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.

Backports commit 5b053a4a28278bca606eeff7d1c0730df1b047e9 from qemu
2018-02-23 22:26:00 -05:00
..
cpu-qom.h remove slow cpu QOM casts (#815) 2017-05-02 14:56:39 +08:00
cpu.c include/qemu/osdep.h: Don't include qapi/error.h 2018-02-21 23:08:18 -05:00
cpu.h tb: consistently use uint32_t for tb->flags 2018-02-23 21:28:11 -05:00
helper.c m68k: Clean up includes 2018-02-19 01:06:05 -05:00
helper.h rework code/block tracing 2016-01-22 18:42:27 -08:00
Makefile.objs del qemu/target-m68k/m68k-semi.c 2017-01-20 11:52:31 +08:00
op_helper.c m68k: Clean up includes 2018-02-19 01:06:05 -05:00
qregs.def import 2015-08-21 15:04:50 +08:00
translate.c tcg: Clean up direct block chaining safety checks 2018-02-23 22:26:00 -05:00
unicorn.c tcg: Make store_dummy a TCGv 2018-02-21 00:24:40 -05:00
unicorn.h New feature: registers can be bulk saved/restored in an opaque blob 2016-08-20 04:14:07 -07:00