qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alistair Francis <alistair23@gmail.com>
To: Djordje Todorovic <Djordje.Todorovic@htecgroup.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"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>,
	"philmd@linaro.org" <philmd@linaro.org>
Subject: Re: [PATCH v8 03/14] target/riscv: Add MIPS P8700 CPU
Date: Tue, 30 Sep 2025 11:07:58 +1000	[thread overview]
Message-ID: <CAKmqyKO7RbJjty32QNUk-uec62s5+UAAvkCssurwt-e_hC2KKw@mail.gmail.com> (raw)
In-Reply-To: <20250924091746.1882125-4-djordje.todorovic@htecgroup.com>

On Wed, Sep 24, 2025 at 7:25 PM Djordje Todorovic
<Djordje.Todorovic@htecgroup.com> wrote:
>
> Introduce P8700 CPU by MIPS.
>
> Signed-off-by: Chao-ying Fu <cfu@mips.com>
> Signed-off-by: Djordje Todorovic <djordje.todorovic@htecgroup.com>
> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>

Alistair

> ---
>  target/riscv/cpu-qom.h      |  1 +
>  target/riscv/cpu.c          | 16 ++++++++++++++++
>  target/riscv/cpu_vendorid.h |  1 +
>  3 files changed, 18 insertions(+)
>
> diff --git a/target/riscv/cpu-qom.h b/target/riscv/cpu-qom.h
> index 75f4e43408..30dcdcfaae 100644
> --- a/target/riscv/cpu-qom.h
> +++ b/target/riscv/cpu-qom.h
> @@ -56,6 +56,7 @@
>  #define TYPE_RISCV_CPU_TT_ASCALON       RISCV_CPU_TYPE_NAME("tt-ascalon")
>  #define TYPE_RISCV_CPU_XIANGSHAN_NANHU  RISCV_CPU_TYPE_NAME("xiangshan-nanhu")
>  #define TYPE_RISCV_CPU_XIANGSHAN_KMH    RISCV_CPU_TYPE_NAME("xiangshan-kunminghu")
> +#define TYPE_RISCV_CPU_MIPS_P8700       RISCV_CPU_TYPE_NAME("mips-p8700")
>  #define TYPE_RISCV_CPU_HOST             RISCV_CPU_TYPE_NAME("host")
>
>  OBJECT_DECLARE_CPU_TYPE(RISCVCPU, RISCVCPUClass, RISCV_CPU)
> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
> index 74728c5371..6e0bd6b798 100644
> --- a/target/riscv/cpu.c
> +++ b/target/riscv/cpu.c
> @@ -3281,6 +3281,22 @@ static const TypeInfo riscv_cpu_type_infos[] = {
>          .cfg.max_satp_mode = VM_1_10_SV48,
>      ),
>
> +    /* https://mips.com/products/hardware/p8700/ */
> +    DEFINE_RISCV_CPU(TYPE_RISCV_CPU_MIPS_P8700, TYPE_RISCV_VENDOR_CPU,
> +        .misa_mxl_max = MXL_RV64,
> +        .misa_ext = RVI | RVM | RVA | RVF | RVD | RVC | RVS | RVU,
> +        .priv_spec = PRIV_VERSION_1_12_0,
> +        .cfg.max_satp_mode = VM_1_10_SV48,
> +        .cfg.ext_zifencei = true,
> +        .cfg.ext_zicsr = true,
> +        .cfg.mmu = true,
> +        .cfg.pmp = true,
> +        .cfg.ext_zba = true,
> +        .cfg.ext_zbb = true,
> +        .cfg.marchid = 0x8000000000000201,
> +        .cfg.mvendorid = MIPS_VENDOR_ID,
> +    ),
> +
>  #if defined(CONFIG_TCG) && !defined(CONFIG_USER_ONLY)
>      DEFINE_RISCV_CPU(TYPE_RISCV_CPU_BASE128, TYPE_RISCV_DYNAMIC_CPU,
>          .cfg.max_satp_mode = VM_1_10_SV57,
> diff --git a/target/riscv/cpu_vendorid.h b/target/riscv/cpu_vendorid.h
> index 96b6b9c2cb..28f0ce9370 100644
> --- a/target/riscv/cpu_vendorid.h
> +++ b/target/riscv/cpu_vendorid.h
> @@ -2,6 +2,7 @@
>  #define TARGET_RISCV_CPU_VENDORID_H
>
>  #define THEAD_VENDOR_ID         0x5b7
> +#define MIPS_VENDOR_ID          0x722
>
>  #define VEYRON_V1_MARCHID       0x8000000000010000
>  #define VEYRON_V1_MIMPID        0x111
> --
> 2.34.1
>


  reply	other threads:[~2025-09-30  1:09 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-24  9:18 [PATCH v8 00/14] riscv: Add support for MIPS P8700 CPU Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 02/14] target/riscv: Add cpu_set_exception_base Djordje Todorovic
2025-09-30  1:06   ` Alistair Francis
2025-10-01  9:32     ` Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 01/14] hw/intc: Allow gaps in hartids for aclint and aplic Djordje Todorovic
2025-09-30  1:02   ` Alistair Francis
2025-09-24  9:18 ` [PATCH v8 05/14] target/riscv: Add mips.ccmov instruction Djordje Todorovic
2025-09-30  1:14   ` Alistair Francis
2025-09-24  9:18 ` [PATCH v8 04/14] target/riscv: Add MIPS P8700 CSRs Djordje Todorovic
2025-09-30  1:11   ` Alistair Francis
2025-09-24  9:18 ` [PATCH v8 03/14] target/riscv: Add MIPS P8700 CPU Djordje Todorovic
2025-09-30  1:07   ` Alistair Francis [this message]
2025-09-24  9:18 ` [PATCH v8 07/14] target/riscv: Add Xmipslsp instructions Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 06/14] target/riscv: Add mips.pref instruction Djordje Todorovic
2025-09-30  1:19   ` Alistair Francis
2025-10-01  9:38     ` Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 09/14] hw/misc: Add RISC-V CPC device implementation Djordje Todorovic
2025-09-30  1:24   ` Alistair Francis
2025-09-24  9:18 ` [PATCH v8 08/14] hw/misc: Add RISC-V CMGCR " Djordje Todorovic
2025-09-30  1:22   ` Alistair Francis
2025-10-01  9:48     ` Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 12/14] hw/pci: Allow explicit function numbers in pci Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 11/14] hw/riscv: Add support for MIPS Boston-aia board mode Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 10/14] hw/riscv: Add support for RISCV CPS Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 13/14] riscv/boston-aia: Add an e1000e NIC in slot 0 func 1 Djordje Todorovic
2025-09-24  9:18 ` [PATCH v8 14/14] test/functional: Add test for boston-aia board 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=CAKmqyKO7RbJjty32QNUk-uec62s5+UAAvkCssurwt-e_hC2KKw@mail.gmail.com \
    --to=alistair23@gmail.com \
    --cc=Djordje.Todorovic@htecgroup.com \
    --cc=cfu@mips.com \
    --cc=dbarboza@ventanamicro.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mst@redhat.com \
    --cc=philmd@linaro.org \
    --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).