unicorn/qemu/include
Richard Henderson 66d79ac959
tcg: Merge GETPC and GETRA
The return address argument to the softmmu template helpers was
confused. In the legacy case, we wanted to indicate that there
is no return address, and so passed in NULL. However, we then
immediately subtracted GETPC_ADJ from NULL, resulting in a non-zero
value, indicating the presence of an (invalid) return address.

Push the GETPC_ADJ subtraction down to the only point it's required:
immediately before use within cpu_restore_state_from_tb, after all
NULL pointer checks have been completed.

This makes GETPC and GETRA identical. Remove GETRA as the lesser
used macro, replacing all uses with GETPC.

Backports commit 01ecaf438b1eb46abe23392c8ce5b7628b0c8cf5 from qemu
2018-02-26 02:54:44 -05:00
..
crypto Drop unused crypto source files 2018-02-17 15:23:57 -05:00
exec tcg: Merge GETPC and GETRA 2018-02-26 02:54:44 -05:00
fpu fpu: add mechanism to check for invalid long double formats 2018-02-26 02:27:40 -05:00
hw target-i386: Add x86_cpu_unrealizefn() 2018-02-25 20:54:13 -05:00
qapi Clean up header guards that don't match their file name 2018-02-25 04:18:42 -05:00
qemu atomics: Use __atomic_*_n() variant primitives 2018-02-26 02:16:48 -05:00
qom Fix confusing argument names in some common functions 2018-02-25 03:58:27 -05:00
sysemu accel: make configure_accelerator return void 2018-02-24 00:31:28 -05:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h glib_compat: Amend header guard 2018-02-25 23:12:20 -05:00
qemu-common.h qemu-common.h: Drop WORDS_ALIGNED define 2018-02-24 17:01:55 -05:00