summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorRichard Henderson2016-07-26 02:39:16 +0200
committerRichard Henderson2016-09-16 17:12:11 +0200
commit01ecaf438b1eb46abe23392c8ce5b7628b0c8cf5 (patch)
tree8d5d6d640cb0994345a508213f716b08708b171e /scripts/switch-timer-api
parenttcg: Support arbitrary size + alignment (diff)
downloadqemu-01ecaf438b1eb46abe23392c8ce5b7628b0c8cf5.tar.gz
qemu-01ecaf438b1eb46abe23392c8ce5b7628b0c8cf5.tar.xz
qemu-01ecaf438b1eb46abe23392c8ce5b7628b0c8cf5.zip
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. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions