From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Cc: KONRAD Frederic <frederic.konrad@adacore.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
Thomas Huth <thuth@redhat.com>,
Fabien Chouteau <chouteau@adacore.com>,
Artyom Tarasenko <atar4qemu@gmail.com>
Subject: Re: [PATCH v2 4/4] hw/sparc*: Move cpu_check_irqs() to target/sparc/
Date: Wed, 28 Apr 2021 07:53:02 -0700 [thread overview]
Message-ID: <9ebea8b9-7481-3ea9-3e05-b08bd5ad4ac5@linaro.org> (raw)
In-Reply-To: <20210428141655.387430-5-f4bug@amsat.org>
On 4/28/21 7:16 AM, Philippe Mathieu-Daudé wrote:
> Since cpu_check_irqs() doesn't reference to anything outside
> of CPUSPARCState, it better belongs to the architectural code
> in target/, rather than the hardware specific code in hw/.
>
> Note: while we moved the trace events, we don't rename them.
>
> Remark: this allows us to build the leon3 machine stand alone,
> fixing this link failure (because cpu_check_irqs is defined in
> hw/sparc/sun4m.c which is only built when CONFIG_SUN4M is selected):
>
> /usr/bin/ld: target_sparc_win_helper.c.o: in function `cpu_put_psr':
> target/sparc/win_helper.c:91: undefined reference to `cpu_check_irqs'
>
> Suggested-by: Richard Henderson<richard.henderson@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
> ---
> hw/sparc/sun4m.c | 32 ------------------
> hw/sparc64/sparc64.c | 66 -------------------------------------
> target/sparc/int32_helper.c | 33 +++++++++++++++++++
> target/sparc/int64_helper.c | 66 +++++++++++++++++++++++++++++++++++++
> hw/sparc/trace-events | 2 --
> hw/sparc64/trace-events | 4 ---
> target/sparc/trace-events | 8 +++++
> 7 files changed, 107 insertions(+), 104 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2021-04-28 14:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-28 14:16 [PATCH v2 0/4] hw/sparc: Kconfig fixes to build with/without the leon3 machine Philippe Mathieu-Daudé
2021-04-28 14:16 ` [PATCH v2 1/4] hw/sparc: Allow building without " Philippe Mathieu-Daudé
2021-04-28 14:16 ` [PATCH v2 2/4] hw/sparc64: Remove unused "hw/char/serial.h" header Philippe Mathieu-Daudé
2021-04-28 14:34 ` Fred Konrad
2021-04-28 14:49 ` Richard Henderson
2021-04-28 14:16 ` [PATCH v2 3/4] hw/sparc64: Fix code style for checkpatch.pl Philippe Mathieu-Daudé
2021-04-28 14:35 ` Fred Konrad
2021-04-28 14:49 ` Richard Henderson
2021-04-28 14:16 ` [PATCH v2 4/4] hw/sparc*: Move cpu_check_irqs() to target/sparc/ Philippe Mathieu-Daudé
2021-04-28 14:53 ` Richard Henderson [this message]
2021-05-02 10:19 ` [PATCH v2 0/4] hw/sparc: Kconfig fixes to build with/without the leon3 machine Mark Cave-Ayland
2021-05-04 21:32 ` Mark Cave-Ayland
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=9ebea8b9-7481-3ea9-3e05-b08bd5ad4ac5@linaro.org \
--to=richard.henderson@linaro.org \
--cc=atar4qemu@gmail.com \
--cc=chouteau@adacore.com \
--cc=f4bug@amsat.org \
--cc=frederic.konrad@adacore.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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).