From: Mayuresh Chitale <mchitale@ventanamicro.com>
To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Cc: Mayuresh Chitale <mchitale@ventanamicro.com>, alistair.francis@wdc.com
Subject: [PATCH 0/2] Risc-V CPU state by hart ID
Date: Fri, 3 Mar 2023 12:20:53 +0530 [thread overview]
Message-ID: <20230303065055.915652-1-mchitale@ventanamicro.com> (raw)
Currently a Risc-V platform cannot realizes multiple CPUs with non contiguous
hart IDs because the APLIC, IMSIC and ACLINT emulation code uses the
contiguous logical CPU ID to fetch per CPU state.
This patchset implements cpu_by_arch_id for Risc-V to get the CPU state
by hart ID which may be sparse instead of the contigous logical CPU id.
Mayuresh Chitale (2):
target/riscv: cpu: Implement get_arch_id callback
hw: intc: Use cpu_by_arch_id to fetch CPU state
hw/intc/riscv_aclint.c | 16 ++++++++--------
hw/intc/riscv_aplic.c | 4 ++--
hw/intc/riscv_imsic.c | 6 +++---
target/riscv/cpu.c | 8 ++++++++
4 files changed, 21 insertions(+), 13 deletions(-)
--
2.34.1
next reply other threads:[~2023-03-03 6:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 6:50 Mayuresh Chitale [this message]
2023-03-03 6:50 ` [PATCH 1/2] target/riscv: cpu: Implement get_arch_id callback Mayuresh Chitale
2023-03-03 20:05 ` Daniel Henrique Barboza
2023-03-03 6:50 ` [PATCH 2/2] hw: intc: Use cpu_by_arch_id to fetch CPU state Mayuresh Chitale
2023-03-03 20:05 ` Daniel Henrique Barboza
2023-03-05 23:41 ` [PATCH 0/2] Risc-V CPU state by hart ID Palmer Dabbelt
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=20230303065055.915652-1-mchitale@ventanamicro.com \
--to=mchitale@ventanamicro.com \
--cc=alistair.francis@wdc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.