aboutsummaryrefslogtreecommitdiff
path: root/include/exec
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-03-08 08:23:47 +0100
committerRichard Henderson <richard.henderson@linaro.org>2025-03-08 09:34:43 -0800
commitb73f58496dc7e14b56521c9eeec7aa1225861fc2 (patch)
tree46bdb05843bf692419e1457fe5557277b5a8a38e /include/exec
parentbf4a155b7a847c9290b1b5ab4208ca361f5a469c (diff)
downloadqemu-b73f58496dc7e14b56521c9eeec7aa1225861fc2.zip
qemu-b73f58496dc7e14b56521c9eeec7aa1225861fc2.tar.gz
qemu-b73f58496dc7e14b56521c9eeec7aa1225861fc2.tar.bz2
accel/tcg: Split out getpc.h
Split out GETPC to a target-independent header. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250308072348.65723-3-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/exec')
-rw-r--r--include/exec/exec-all.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
index 2ac98e5..dd5c40f 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -28,6 +28,7 @@
#include "exec/translation-block.h"
#if defined(CONFIG_TCG)
+#include "accel/tcg/getpc.h"
/**
* probe_access:
@@ -177,15 +178,6 @@ void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr);
void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t last);
void tb_set_jmp_target(TranslationBlock *tb, int n, uintptr_t addr);
-/* GETPC is the true target of the return instruction that we'll execute. */
-#if defined(CONFIG_TCG_INTERPRETER)
-extern __thread uintptr_t tci_tb_ptr;
-# define GETPC() tci_tb_ptr
-#else
-# define GETPC() \
- ((uintptr_t)__builtin_extract_return_addr(__builtin_return_address(0)))
-#endif
-
#if !defined(CONFIG_USER_ONLY)
/**