From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Anton Johansson" <anjo@rev.ng>,
qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>,
Claudio Fontana <cfontana@suse.de>
Subject: Re: [PATCH 5/9] accel/tcg: Hoist CPUClass arg to functions with external linkage
Date: Thu, 25 Jan 2024 08:59:17 +1000 [thread overview]
Message-ID: <00177e2f-766f-4adc-b7dc-6b45f6a22c92@linaro.org> (raw)
In-Reply-To: <20240124101639.30056-6-philmd@linaro.org>
On 1/24/24 20:16, Philippe Mathieu-Daudé wrote:
> Hoist the CPUClass argument from most of these internal helpers:
>
> - check_for_breakpoints_slow
> - check_for_breakpoints()
> - cpu_tb_exec()
> - cpu_exec_enter()
> - cpu_exec_exit()
> - cpu_handle_halt()
> - cpu_handle_debug_exception()
> - cpu_handle_exception()
> - need_replay_interrupt()
> - cpu_handle_interrupt()
> - cpu_loop_exec_tb()
> - cpu_exec_loop()
> - cpu_exec_setjmp()
>
> to the following ones with external linkage:
>
> - lookup_tb_ptr()
> - cpu_exec_step_atomic()
> - cpu_exec()
>
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
> accel/tcg/cpu-exec.c | 82 ++++++++++++++++++++------------------------
> 1 file changed, 37 insertions(+), 45 deletions(-)
I'm not so keen on this. Does it really make a difference?
What about simply making more use of CPUState->cc instead?
r~
next prev parent reply other threads:[~2024-01-24 22:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 10:16 [PATCH 0/9] accel/tcg: Extract some x86-specific code Philippe Mathieu-Daudé
2024-01-24 10:16 ` [PATCH 1/9] accel/tcg: Rename tcg_ss[] -> tcg_specific_ss[] in meson Philippe Mathieu-Daudé
2024-01-24 16:45 ` Anton Johansson via
2024-01-24 22:54 ` Richard Henderson
2024-01-24 10:16 ` [PATCH 2/9] accel/tcg: Rename tcg_cpus_destroy() -> tcg_cpu_destroy() Philippe Mathieu-Daudé
2024-01-24 16:47 ` Anton Johansson via
2024-01-24 22:54 ` Richard Henderson
2024-01-24 10:16 ` [PATCH 3/9] accel/tcg: Rename tcg_cpus_exec() -> tcg_cpu_exec() Philippe Mathieu-Daudé
2024-01-24 16:48 ` Anton Johansson via
2024-01-24 22:55 ` Richard Henderson
2024-01-24 10:16 ` [PATCH 4/9] accel/tcg: Un-inline icount_exit_request() for clarity Philippe Mathieu-Daudé
2024-01-24 17:00 ` Anton Johansson via
2024-01-24 22:56 ` Richard Henderson
2024-01-24 10:16 ` [PATCH 5/9] accel/tcg: Hoist CPUClass arg to functions with external linkage Philippe Mathieu-Daudé
2024-01-24 17:15 ` Anton Johansson via
2024-01-24 22:59 ` Richard Henderson [this message]
2024-01-25 4:46 ` Philippe Mathieu-Daudé
2024-01-24 10:16 ` [PATCH 6/9] accel/tcg: Introduce TCGCPUOps::need_replay_interrupt() handler Philippe Mathieu-Daudé
2024-01-24 17:16 ` Anton Johansson via
2024-01-24 23:00 ` Richard Henderson
2024-01-25 6:01 ` Pavel Dovgalyuk
2024-01-24 10:16 ` [PATCH 7/9] target/i386: Extract x86_need_replay_interrupt() from accel/tcg/ Philippe Mathieu-Daudé
2024-01-24 17:17 ` Anton Johansson via
2024-01-24 20:02 ` Philippe Mathieu-Daudé
2024-01-24 23:01 ` Richard Henderson
2024-01-25 6:01 ` Pavel Dovgalyuk
2024-01-24 10:16 ` [PATCH 8/9] accel/tcg: Introduce TCGCPUOps::cpu_exec_halt() handler Philippe Mathieu-Daudé
2024-01-24 17:19 ` Anton Johansson via
2024-01-24 23:02 ` Richard Henderson
2024-01-24 10:16 ` [PATCH 9/9] target/i386: Extract x86_cpu_exec_halt() from accel/tcg/ Philippe Mathieu-Daudé
2024-01-24 17:19 ` Anton Johansson via
2024-01-24 23:03 ` Richard Henderson
2024-01-24 10:17 ` [PATCH 0/9] accel/tcg: Extract some x86-specific code Philippe Mathieu-Daudé
2024-01-28 3:35 ` Richard Henderson
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=00177e2f-766f-4adc-b7dc-6b45f6a22c92@linaro.org \
--to=richard.henderson@linaro.org \
--cc=Pavel.Dovgalyuk@ispras.ru \
--cc=anjo@rev.ng \
--cc=cfontana@suse.de \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--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).