[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 25/47] accel/tcg: Add restore_state_to_opc to TCGCPUOps
From: |
Christian Schoenebeck |
Subject: |
Re: [PULL 25/47] accel/tcg: Add restore_state_to_opc to TCGCPUOps |
Date: |
Mon, 31 Oct 2022 18:56:07 +0100 |
On Wednesday, October 26, 2022 4:10:54 AM CET Richard Henderson wrote:
> Add a tcg_ops hook to replace the restore_state_to_opc
> function call. Because these generic hooks cannot depend
> on target-specific types, temporarily, copy the current
> target_ulong data[] into uint64_t d64[].
>
> Reviewed-by: Claudio Fontana <cfontana@suse.de>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
[...]
> diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
> index 433fa247f4..4d8783efc7 100644
> --- a/accel/tcg/translate-all.c
> +++ b/accel/tcg/translate-all.c
[...]
> bool cpu_restore_state(CPUState *cpu, uintptr_t host_pc, bool will_exit)
> {
> + /*
> + * The pc update associated with restore without exit will
> + * break the relative pc adjustments performed by TARGET_TB_PCREL.
> + */
> + if (TARGET_TB_PCREL) {
> + assert(will_exit);
> + }
> +
> /*
> * The host_pc has to be in the rx region of the code buffer.
> * If it is not we will not be able to resolve it here.
This patch appears to break macOS host. This assertion always triggers on
Apple Silicon. Previous patch 8269c01417 runs fine. Any ideas?
BTW Richard, could you add a message-id tag to your queued TCG patches? If you
are using patchwork client then it suffices to add "msgid=on" to .pwclientrc
Best regards,
Christian Schoenebeck
- [PULL 18/47] accel/tcg: Unify declarations of tb_invalidate_phys_range, (continued)
- [PULL 18/47] accel/tcg: Unify declarations of tb_invalidate_phys_range, Richard Henderson, 2022/10/25
- [PULL 19/47] accel/tcg: Use tb_invalidate_phys_page in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 20/47] accel/tcg: Call tb_invalidate_phys_page for PAGE_RESET, Richard Henderson, 2022/10/25
- [PULL 21/47] accel/tcg: Use page_reset_target_data in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 22/47] accel/tcg: Use tb_invalidate_phys_range in page_set_flags, Richard Henderson, 2022/10/25
- [PULL 23/47] accel/tcg: Move TARGET_PAGE_DATA_SIZE impl to user-exec.c, Richard Henderson, 2022/10/25
- [PULL 24/47] accel/tcg: Simplify page_get/alloc_target_data, Richard Henderson, 2022/10/25
- [PULL 25/47] accel/tcg: Add restore_state_to_opc to TCGCPUOps, Richard Henderson, 2022/10/25
- [PULL 26/47] target/alpha: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 27/47] target/arm: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 28/47] target/avr: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 29/47] target/cris: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 30/47] target/hexagon: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25
- [PULL 31/47] target/hppa: Convert to tcg_ops restore_state_to_opc, Richard Henderson, 2022/10/25