On 7/3/25 23:00, Philippe Mathieu-Daudé wrote:
On 7/3/25 19:56, Richard Henderson wrote:
Split out GETPC and GETPC_ADJ to a target-independent header.
Signed-off-by: Richard Henderson <[email protected]>
---
include/exec/exec-all.h | 19 +------------------
include/exec/helper-getpc.h | 31 +++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 18 deletions(-)
create mode 100644 include/exec/helper-getpc.h
Preferably include/accel/tcg/getpc.h or similar
Also these should be guarded for CONFIG_TCG IMHO, similar to
include/exec/cpu_ldst.h:
#ifndef CONFIG_TCG
#error Can only include this header with TCG
#endif
If cleanups are required, I can deal with them later.
otherwise:
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>