From: Richard Henderson <richard.henderson@linaro.org>
To: NiuGenen <niugen@loongson.cn>, qemu-devel@nongnu.org
Subject: Re: [PATCH] accel/tcg: nochain should disable goto_ptr
Date: Fri, 31 May 2024 10:32:01 -0700 [thread overview]
Message-ID: <044af09d-4856-40f0-ae27-df6522e4dbb4@linaro.org> (raw)
In-Reply-To: <20240531101744.1683192-1-niugen@loongson.cn>
On 5/31/24 03:17, NiuGenen wrote:
> Signed-off-by: NiuGenen <niugen@loongson.cn>
> ---
> accel/tcg/cpu-exec.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
> index 2972f75b96..084fa645c7 100644
> --- a/accel/tcg/cpu-exec.c
> +++ b/accel/tcg/cpu-exec.c
> @@ -173,7 +173,7 @@ uint32_t curr_cflags(CPUState *cpu)
> } else if (qatomic_read(&one_insn_per_tb)) {
> cflags |= CF_NO_GOTO_TB | 1;
> } else if (qemu_loglevel_mask(CPU_LOG_TB_NOCHAIN)) {
> - cflags |= CF_NO_GOTO_TB;
> + cflags |= CF_NO_GOTO_TB | CF_NO_GOTO_PTR;
> }
>
> return cflags;
Why?
The original intent of nochain was so that -d exec would log all blocks, which requires
excluding goto_tb. There is exec logging in helper_lookup_goto_ptr, so there is no need
to avoid goto_ptr.
You must provide a rationale, at minimum.
r~
next prev parent reply other threads:[~2024-05-31 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-31 10:17 [PATCH] accel/tcg: nochain should disable goto_ptr NiuGenen
2024-05-31 17:32 ` Richard Henderson [this message]
2024-06-01 5:57 ` niugen
2024-06-01 13:36 ` Richard Henderson
2024-06-03 1:51 ` niugen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=044af09d-4856-40f0-ae27-df6522e4dbb4@linaro.org \
--to=richard.henderson@linaro.org \
--cc=niugen@loongson.cn \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).