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
Subject: Re: [PATCH v2 2/2] hw/mips: Add MIPS virt board
Date: Tue, 7 Mar 2023 21:10:45 +0100	[thread overview]
Message-ID: <93c0a866-74e8-8fad-07cf-79e964b73d84@linaro.org> (raw)
In-Reply-To: <20230304223803.55764-3-jiaxun.yang@flygoat.com>

On 4/3/23 23:38, Jiaxun Yang wrote:
> MIPS virt board is design to utilize existing VirtIO infrastures
> but also comptitable with MIPS's existing internal simulation tools.
> 
> It includes virtio-pci, virtio-mmio, pcie gpex, flash rom, fw_cfg,
> goldfish-rtc and MIPS CPS system.
> 
> It should be able to cooperate with any MIPS CPU cores.
> 
> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
> v1:
>   - Rename to virt board
>   - Convert BIOS flash to ROM
>   - Cleanups
> v2:
>   - Fix fdt flash
>   - Remove UP variant
> ---
>   MAINTAINERS                             |   7 +
>   configs/devices/mips-softmmu/common.mak |   1 +
>   docs/system/target-mips.rst             |  22 +
>   hw/mips/Kconfig                         |  17 +
>   hw/mips/meson.build                     |   1 +
>   hw/mips/virt.c                          | 916 ++++++++++++++++++++++++
>   6 files changed, 964 insertions(+)
>   create mode 100644 hw/mips/virt.c


> +static void virt_machine_init(MachineState *machine)
> +{
> +    MIPSVirtState *s = MIPS_VIRT_MACHINE(machine);
> +    MemoryRegion *system_memory = get_system_memory();
> +    const MemMapEntry *memmap = virt_memmap;
> +    int i;
> +
> +    s->cpuclk = clock_new(OBJECT(machine), "cpu-refclk");
> +    clock_set_hz(s->cpuclk, VIRT_CPU_REF_CLK_FREQ);
> +
> +    s->cps = MIPS_CPS(qdev_new(TYPE_MIPS_CPS));
> +    object_property_set_str(OBJECT(s->cps), "cpu-type", machine->cpu_type,
> +                            &error_fatal);
> +    object_property_set_int(OBJECT(s->cps), "num-core", machine->smp.cpus,
> +                            &error_fatal);
> +    qdev_connect_clock_in(DEVICE(s->cps), "clk-in", s->cpuclk);
> +    sysbus_realize(SYS_BUS_DEVICE(s->cps), &error_fatal);

qemu-system-mips64el: Property 'mips-cps.num-core' not found

I'm worried. I suppose you want this property:

   DEFINE_PROP_UINT32("num-vp", MIPSCPSState, num_vp, 1),

Is your series based on mainstream QEMU?


  parent reply	other threads:[~2023-03-07 20:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-04 22:38 [PATCH v2 0/2] MIPS Virt machine Jiaxun Yang
2023-03-04 22:38 ` [PATCH v2 1/2] hw/misc: Add MIPS Trickbox device Jiaxun Yang
2023-03-04 22:38 ` [PATCH v2 2/2] hw/mips: Add MIPS virt board Jiaxun Yang
2023-03-06 16:42   ` Philippe Mathieu-Daudé
2023-03-06 16:51     ` Philippe Mathieu-Daudé
2023-03-07 14:32   ` Philippe Mathieu-Daudé
2023-03-07 20:10   ` Philippe Mathieu-Daudé [this message]
2023-03-07 21:09     ` Jiaxun Yang
2023-03-07 15:01 ` [PATCH v2 0/2] MIPS Virt machine Philippe Mathieu-Daudé
2023-03-07 20:07   ` Jiaxun Yang
2023-03-07 20:14     ` Philippe Mathieu-Daudé
2023-03-07 21:07       ` Philippe Mathieu-Daudé
2023-03-07 21:21         ` Jiaxun Yang
2023-03-07 22:14           ` 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=93c0a866-74e8-8fad-07cf-79e964b73d84@linaro.org \
    --to=philmd@linaro.org \
    --cc=jiaxun.yang@flygoat.com \
    --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).