|
From: | Anton Johansson |
Subject: | Re: [PATCH 2/3] Replace `TARGET_TB_PCREL` with `CF_PCREL` |
Date: | Wed, 8 Feb 2023 13:48:31 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.0 |
On 2/7/23 12:26, Philippe Mathieu-Daudé wrote:
Possibly: #ifdef CONFIG_DEBUG_TCG- assert(!TARGET_TB_PCREL); + assert(!(tb_cflags(last_tb) & CF_PCREL)); assert(cc->set_pc);#endif Or maybe clearer, use tcg_debug_assert()?cc->set_pc(cpu, tb_pc(last_tb)); }
Thanks for the review!tcg_debug_assert makes sense for the cflags check, but do we really want to disable
assert(cc->set_pc) in non-debug? -- Anton Johansson, rev.ng Labs Srl.
[Prev in Thread] | Current Thread | [Next in Thread] |