From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Djordje Todorovic <Djordje.Todorovic@htecgroup.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org>,
"cfu@mips.com" <cfu@mips.com>, "mst@redhat.com" <mst@redhat.com>,
"marcel.apfelbaum@gmail.com" <marcel.apfelbaum@gmail.com>,
"dbarboza@ventanamicro.com" <dbarboza@ventanamicro.com>
Subject: Re: [PATCH v6 08/14] hw/misc: Add RISC-V CMGCR device implementation
Date: Fri, 8 Aug 2025 18:00:05 +0200 [thread overview]
Message-ID: <a9874cc7-e18e-4b6c-aaac-2c6ce56c1bf7@linaro.org> (raw)
In-Reply-To: <20250717093833.402237-9-djordje.todorovic@htecgroup.com>
On 17/7/25 11:38, Djordje Todorovic wrote:
> Add RISC-V implementation of the Coherent Manager Global Control
> Register (CMGCR) device. It is based on the existing MIPS CMGCR
> implementation but adapted for RISC-V systems.
>
> The CMGCR device provides global system control for multi-core
> configurations in RISC-V systems.
>
> This is needed for the MIPS BOSTON AIA board.
>
> Signed-off-by: Chao-ying Fu <cfu@mips.com>
> Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
> ---
> hw/misc/Kconfig | 10 ++
> hw/misc/meson.build | 2 +
> hw/misc/riscv_cmgcr.c | 234 ++++++++++++++++++++++++++++++++++
> include/hw/misc/riscv_cmgcr.h | 49 +++++++
> 4 files changed, 295 insertions(+)
> create mode 100644 hw/misc/riscv_cmgcr.c
> create mode 100644 include/hw/misc/riscv_cmgcr.h
> +static void riscv_gcr_realize(DeviceState *dev, Error **errp)
> +{
> + RISCVGCRState *s = RISCV_GCR(dev);
Please report an error for invalid num_vps values (0 or >MAX).
> +
> + /* Create local set of registers for each VP */
> + s->vps = g_new(RISCVGCRVPState, s->num_vps);
> +}
next prev parent reply other threads:[~2025-08-08 16:03 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-17 9:38 [PATCH v6 00/14] riscv: Add support for MIPS P8700 CPU Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 01/14] hw/intc: Allow gaps in hartids for aclint and aplic Djordje Todorovic
2025-08-08 15:52 ` Philippe Mathieu-Daudé
2025-09-01 8:17 ` Djordje Todorovic
2025-09-01 11:05 ` Philippe Mathieu-Daudé
2025-09-03 12:35 ` Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 03/14] target/riscv: Add MIPS P8700 CPU Djordje Todorovic
2025-08-08 17:02 ` Philippe Mathieu-Daudé
2025-09-01 8:17 ` Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 04/14] target/riscv: Add MIPS P8700 CSRs Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 02/14] target/riscv: Add cpu_set_exception_base Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 06/14] target/riscv: Add mips.pref instruction Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 05/14] target/riscv: Add mips.ccmov instruction Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 08/14] hw/misc: Add RISC-V CMGCR device implementation Djordje Todorovic
2025-08-08 16:00 ` Philippe Mathieu-Daudé [this message]
2025-08-08 16:07 ` Philippe Mathieu-Daudé
2025-09-01 8:24 ` Djordje Todorovic
2025-09-01 10:53 ` Philippe Mathieu-Daudé
2025-09-01 8:24 ` Djordje Todorovic
2025-08-08 16:05 ` Philippe Mathieu-Daudé
2025-09-01 8:22 ` Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 07/14] target/riscv: Add Xmipslsp instructions Djordje Todorovic
2025-08-08 16:02 ` Philippe Mathieu-Daudé
2025-09-01 8:20 ` Djordje Todorovic
2025-09-01 8:30 ` Djordje Todorovic
2025-09-01 11:09 ` Philippe Mathieu-Daudé
2025-07-17 9:38 ` [PATCH v6 09/14] hw/misc: Add RISC-V CPC device implementation Djordje Todorovic
2025-08-08 16:21 ` Philippe Mathieu-Daudé
2025-07-17 9:38 ` [PATCH v6 11/14] hw/riscv: Add support for MIPS Boston-aia board mode Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 10/14] hw/riscv: Add support for RISCV CPS Djordje Todorovic
2025-08-08 16:26 ` Philippe Mathieu-Daudé
2025-09-01 8:30 ` Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 12/14] hw/pci: Allow explicit function numbers in pci Djordje Todorovic
2025-08-08 16:29 ` Philippe Mathieu-Daudé
2025-09-01 8:31 ` Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 13/14] riscv/boston-aia: Add an e1000e NIC in slot 0 func 1 Djordje Todorovic
2025-07-17 9:38 ` [PATCH v6 14/14] test/functional: Add test for boston-aia board Djordje Todorovic
2025-08-08 16:32 ` Philippe Mathieu-Daudé
2025-09-01 8:35 ` Djordje Todorovic
2025-08-05 10:10 ` [PATCH v6 00/14] riscv: Add support for MIPS P8700 CPU Djordje Todorovic
2025-08-07 18:35 ` Daniel Henrique Barboza
2025-09-01 8:07 ` Djordje Todorovic
2025-08-08 16:42 ` Philippe Mathieu-Daudé
2025-09-01 8:15 ` Djordje Todorovic
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=a9874cc7-e18e-4b6c-aaac-2c6ce56c1bf7@linaro.org \
--to=philmd@linaro.org \
--cc=Djordje.Todorovic@htecgroup.com \
--cc=cfu@mips.com \
--cc=dbarboza@ventanamicro.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@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).