All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Risc-V CPU state by hart ID
@ 2023-03-03  6:50 Mayuresh Chitale
  2023-03-03  6:50 ` [PATCH 1/2] target/riscv: cpu: Implement get_arch_id callback Mayuresh Chitale
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mayuresh Chitale @ 2023-03-03  6:50 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: Mayuresh Chitale, alistair.francis

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-05 23:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03  6:50 [PATCH 0/2] Risc-V CPU state by hart ID Mayuresh Chitale
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

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.