[PATCH 0/2] hw/riscv: Make s-mode IMSIC stride explicit

Joel Stanley posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260824030509.18078-1-joel@jms.id.au
Maintainers: Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Chao Liu <chao.liu@processmission.com>, Joel Stanley <joel@jms.id.au>, Nicholas Piggin <npiggin@gmail.com>, Anirudh Srinivasan <asrinivasan@oss.tenstorrent.com>, Michael Ellerman <mpe@kernel.org>, Portia Stephens <portias@oss.tenstorrent.com>
hw/riscv/aia.h         |  1 +
hw/riscv/aia.c         |  9 ++++++---
hw/riscv/tt_atlantis.c | 19 +++++++++++--------
hw/riscv/virt.c        |  2 ++
4 files changed, 20 insertions(+), 11 deletions(-)
[PATCH 0/2] hw/riscv: Make s-mode IMSIC stride explicit
Posted by Joel Stanley 1 month ago
This adds s_imsic_stride to riscv_create_aia so machines can separate
the s-mode IMSIC layout from the guest count. They are related but the
layout isn't necessarily defined by the guest count. Doing this means
we can fix a bug that was in the Atlantis machine that I wrote.

Joel Stanley (2):
  hw/riscv: Make s-mode IMSIC stride explicit
  hw/riscv/aia: Check for invalid IMSIC configs

 hw/riscv/aia.h         |  1 +
 hw/riscv/aia.c         |  9 ++++++---
 hw/riscv/tt_atlantis.c | 19 +++++++++++--------
 hw/riscv/virt.c        |  2 ++
 4 files changed, 20 insertions(+), 11 deletions(-)

-- 
2.47.3
Re: [PATCH 0/2] hw/riscv: Make s-mode IMSIC stride explicit
Posted by Alistair Francis 1 month ago
On Mon, 2026-08-24 at 12:35 +0930, Joel Stanley wrote:
> This adds s_imsic_stride to riscv_create_aia so machines can separate
> the s-mode IMSIC layout from the guest count. They are related but
> the
> layout isn't necessarily defined by the guest count. Doing this means
> we can fix a bug that was in the Atlantis machine that I wrote.
> 
> Joel Stanley (2):
>   hw/riscv: Make s-mode IMSIC stride explicit
>   hw/riscv/aia: Check for invalid IMSIC configs

Thanks!

Applied to riscv-to-apply.next

Alistair

> 
>  hw/riscv/aia.h         |  1 +
>  hw/riscv/aia.c         |  9 ++++++---
>  hw/riscv/tt_atlantis.c | 19 +++++++++++--------
>  hw/riscv/virt.c        |  2 ++
>  4 files changed, 20 insertions(+), 11 deletions(-)