qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>, qemu-devel@nongnu.org
Cc: yangxiaojuan@loongson.cn, gaosong@loongson.cn, chenhuacai@kernel.org
Subject: Re: [PATCH 2/2] hw/mips/loongson3_virt: Remove CPU restrictions for TCG
Date: Mon, 22 May 2023 08:03:15 +0200	[thread overview]
Message-ID: <c5738a5e-03b3-180f-2e26-70e27abd3443@linaro.org> (raw)
In-Reply-To: <20230521214832.20145-3-jiaxun.yang@flygoat.com>

On 21/5/23 23:48, Jiaxun Yang wrote:
> After implemented CPUCFG and CSR, we are now able to boot Linux
> kernel with Loongson-3A4000 CPU, so there is no point to restrict
> CPU type for TCG.
> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>   hw/mips/loongson3_virt.c | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/hw/mips/loongson3_virt.c b/hw/mips/loongson3_virt.c
> index a57245012598..47289fb6bf85 100644
> --- a/hw/mips/loongson3_virt.c
> +++ b/hw/mips/loongson3_virt.c
> @@ -488,10 +488,6 @@ static void mips_loongson3_virt_init(MachineState *machine)
>           if (!machine->cpu_type) {
>               machine->cpu_type = MIPS_CPU_TYPE_NAME("Loongson-3A1000");
>           }
> -        if (!strstr(machine->cpu_type, "Loongson-3A1000")) {
> -            error_report("Loongson-3/TCG needs cpu type Loongson-3A1000");

Hmm, shouldn't we check for CPUs supporting the INSN_LOONGSON3A
insn_flags at least?

> -            exit(1);
> -        }
>       } else {
>           if (!machine->cpu_type) {
>               machine->cpu_type = MIPS_CPU_TYPE_NAME("Loongson-3A4000");



  reply	other threads:[~2023-05-22  6:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-21 21:48 [PATCH 0/2] MIPS: Enable Loongson-3A4000 TCG for system emulation Jiaxun Yang
2023-05-21 21:48 ` [PATCH 1/2] target/mips: Implement Loongson CSR instructions Jiaxun Yang
2023-05-22  6:00   ` Philippe Mathieu-Daudé
2023-07-10 11:03     ` Philippe Mathieu-Daudé
2023-07-10 20:00   ` Philippe Mathieu-Daudé
2023-07-10 20:11   ` Philippe Mathieu-Daudé
2023-07-10 21:34     ` Philippe Mathieu-Daudé
2023-05-21 21:48 ` [PATCH 2/2] hw/mips/loongson3_virt: Remove CPU restrictions for TCG Jiaxun Yang
2023-05-22  6:03   ` Philippe Mathieu-Daudé [this message]
2023-05-22 12:08   ` Philippe Mathieu-Daudé
2023-05-22 12:43     ` Jiaxun Yang
2023-07-10 19:54 ` [PATCH 0/2] MIPS: Enable Loongson-3A4000 TCG for system emulation 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=c5738a5e-03b3-180f-2e26-70e27abd3443@linaro.org \
    --to=philmd@linaro.org \
    --cc=chenhuacai@kernel.org \
    --cc=gaosong@loongson.cn \
    --cc=jiaxun.yang@flygoat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yangxiaojuan@loongson.cn \
    /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).