From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org
Subject: [PATCH v2 0/2] Split out tcg init functions to tcg/startup.h
Date: Fri, 29 Sep 2023 20:11:12 -0700 [thread overview]
Message-ID: <20230930031114.1042913-1-richard.henderson@linaro.org> (raw)
Supercedes: <20230923130843.3708899-1-peter.maydell@linaro.org>
("[PATCH] tcg.h: Split out runtime-only functions into tcg/runtime.h")
I thought "startup.h" was perhaps a better name than "runtime.h",
at least for the functions moved, since it's about starting up
either tcg or tcg within a new thread.
By removing the argument to tcg_prologue_init(), we can simplify
the users even further, since they no longer require TCGContext.
Adding tcg_init() seems to match the other two as a startup-y
function and allows tcg-all.c to avoid "tcg.h" as well.
r~
Richard Henderson (2):
tcg: Remove argument to tcg_prologue_init
tcg: Split out tcg init functions to tcg/startup.h
include/tcg/startup.h | 58 +++++++++++++++++++++++++++++++++
include/tcg/tcg.h | 3 --
accel/tcg/tcg-accel-ops-mttcg.c | 2 +-
accel/tcg/tcg-accel-ops-rr.c | 2 +-
accel/tcg/tcg-all.c | 4 +--
bsd-user/main.c | 4 +--
linux-user/main.c | 4 +--
linux-user/syscall.c | 2 +-
tcg/tcg.c | 4 ++-
9 files changed, 70 insertions(+), 13 deletions(-)
create mode 100644 include/tcg/startup.h
--
2.34.1
next reply other threads:[~2023-09-30 3:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-30 3:11 Richard Henderson [this message]
2023-09-30 3:11 ` [PATCH v2 1/2] tcg: Remove argument to tcg_prologue_init Richard Henderson
2023-09-30 3:11 ` [PATCH v2 2/2] tcg: Split out tcg init functions to tcg/startup.h Richard Henderson
2023-10-02 12:51 ` [PATCH v2 0/2] " Philippe Mathieu-Daudé
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=20230930031114.1042913-1-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@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).