From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: cfontana@suse.de
Subject: Re: [PATCH 1/2] target/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed
Date: Sun, 28 Feb 2021 17:14:17 +0100 [thread overview]
Message-ID: <8102bde6-d2d3-0058-dddb-db295ce5bfac@amsat.org> (raw)
In-Reply-To: <20210227232519.222663-2-richard.henderson@linaro.org>
Hi Richard,
On 2/28/21 12:25 AM, Richard Henderson wrote:
> Add a flag to MIPSCPUClass in order to avoid needing to
> replace mips_tcg_ops.do_transaction_failed.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/mips/cpu-qom.h | 3 +++
> hw/mips/jazz.c | 35 +++--------------------------------
> target/mips/op_helper.c | 3 ++-
> 3 files changed, 8 insertions(+), 33 deletions(-)
>
> diff --git a/target/mips/cpu-qom.h b/target/mips/cpu-qom.h
> index 826ab13019..dda0c911fa 100644
> --- a/target/mips/cpu-qom.h
> +++ b/target/mips/cpu-qom.h
> @@ -47,6 +47,9 @@ struct MIPSCPUClass {
> DeviceRealize parent_realize;
> DeviceReset parent_reset;
> const struct mips_def_t *cpu_def;
> +
> + /* Used for the jazz board to modify mips_cpu_do_transaction_failed. */
Isn't it possible to have other (old) boards doing something similar?
If so any target can overload its CPUClass with the same boolean,
so:
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> + bool no_data_aborts;
> };
next prev parent reply other threads:[~2021-02-28 17:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-27 23:25 [PATCH 0/2] Fix mips jazz vs constant TCGCPUOps Richard Henderson
2021-02-27 23:25 ` [PATCH 1/2] target/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed Richard Henderson
2021-02-28 16:14 ` Philippe Mathieu-Daudé [this message]
2021-02-28 21:39 ` Richard Henderson
2021-03-01 8:03 ` Philippe Mathieu-Daudé
2021-03-01 8:53 ` Philippe Mathieu-Daudé
2021-02-27 23:25 ` [PATCH 2/2] hw/core: Constify TCGCPUOps Richard Henderson
2021-02-28 16:14 ` Philippe Mathieu-Daudé
2021-02-28 9:59 ` [PATCH 0/2] Fix mips jazz vs constant TCGCPUOps Claudio Fontana
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=8102bde6-d2d3-0058-dddb-db295ce5bfac@amsat.org \
--to=f4bug@amsat.org \
--cc=cfontana@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).