xemu/accel/tcg
Roman Bolshakov 653b87eb36 tcg: Toggle page execution for Apple Silicon
Pages can't be both write and executable at the same time on Apple
Silicon. macOS provides public API to switch write protection [1] for
JIT applications, like TCG.

1. https://developer.apple.com/documentation/apple_silicon/porting_just-in-time_compilers_to_apple_silicon

Tested-by: Alexander Graf <agraf@csgraf.de>
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20210113032806.18220-1-r.bolshakov@yadro.com>
[rth: Inline the qemu_thread_jit_* functions;
 drop the MAP_JIT change for a follow-on patch.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-01-23 12:13:00 -10:00
..
atomic_common.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
atomic_template.h qemu/atomic.h: rename atomic_ to qatomic_ 2020-09-23 16:07:44 +01:00
cpu-exec-common.c qemu-common: Move tcg_enabled() etc. to sysemu/tcg.h 2019-06-11 20:22:09 +02:00
cpu-exec.c tcg: Toggle page execution for Apple Silicon 2021-01-23 12:13:00 -10:00
cputlb.c accel/tcg: Restrict cpu_io_recompile() from other accelerators 2021-01-23 12:13:00 -10:00
internal.h accel/tcg: Restrict cpu_io_recompile() from other accelerators 2021-01-23 12:13:00 -10:00
meson.build accel/tcg: split CpusAccel into three TCG variants 2020-12-10 17:44:10 -06:00
plugin-gen.c tcg: Use tcg_constant_{i32,i64} with tcg plugins 2021-01-13 08:39:08 -10:00
plugin-helpers.h plugin-gen: add module for TCG-related code 2019-10-28 15:12:38 +00:00
tcg-all.c tcg: Add --accel tcg,split-wx property 2021-01-07 05:09:41 -10:00
tcg-cpus-icount.c accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus-icount.h accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus-mttcg.c accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus-rr.c accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus-rr.h accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus.c accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-cpus.h accel/tcg: rename tcg-cpus functions to match module name 2020-12-10 17:44:10 -06:00
tcg-runtime-gvec.c tcg: Implement gvec support for rotate by vector 2020-06-02 08:42:37 -07:00
tcg-runtime.c tcg: Introduce tcg_splitwx_to_{rx,rw} 2021-01-07 05:09:41 -10:00
tcg-runtime.h tcg: Introduce tcg_splitwx_to_{rx,rw} 2021-01-07 05:09:41 -10:00
trace-events tcg: Introduce tcg_splitwx_to_{rx,rw} 2021-01-07 05:09:41 -10:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate-all.c tcg: Toggle page execution for Apple Silicon 2021-01-23 12:13:00 -10:00
translator.c tcg: Make DisasContextBase.tb const 2021-01-07 05:09:41 -10:00
user-exec-stub.c spapr: Unrealize vCPUs with qdev_unrealize() 2020-10-28 01:08:53 +11:00
user-exec.c remove TCG includes from common code 2021-01-02 21:03:36 +01:00