[PATCH 0/4] MemoryRegionOps .impl cleanups

Peter Maydell posted 4 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260428093339.2087081-1-peter.maydell@linaro.org
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.zevorn@gmail.com>, Tyrone Ting <kfting@nuvoton.com>, Hao Wu <wuhaotsh@google.com>, Max Filippov <jcmvbkbc@gmail.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Xu <peterx@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
hw/riscv/riscv-iommu.c |  1 -
hw/ssi/npcm7xx_fiu.c   |  5 +++++
hw/xtensa/mx_pic.c     | 27 +++++++++++++++++++++++++++
system/memory.c        |  1 +
4 files changed, 33 insertions(+), 1 deletion(-)
[PATCH 0/4] MemoryRegionOps .impl cleanups
Posted by Peter Maydell 1 month ago
This patchset is some fixes to MemoryRegionOps that were
accidentally setting odd .impl values, plus an extra assert
that we can now add that a MemoryRegionOps doesn't set
.impl.unaligned true but .valid.unaligned false. They're
originally from the CJ Chen / Tomoyuki Hirose patchset that
aims to support proper synthesis of unaligned accesses in
the memory system core. I still want to get that patchset
upstream, but for the moment this is a set of simple
cleanups:

 * riscv_iommu_trap_ops set .impl.unaligned but not
   .valid.unaligned
 * npcm7xx_fiu_flash_ops failed to set any .impl at all
 * xtensa_mx_pic_ops failed to set any .impl, and was
   less strict than it could be about .valid

Patches 1 and 4 have been reviewed.

thanks
-- PMM

CJ Chen (2):
  hw/riscv: iommu-trap: remove .impl.unaligned = true
  system/memory: assert on invalid MemoryRegionOps .unaligned combo

Peter Maydell (2):
  hw/npcm7xx_fiu: Specify .impl for npcm7xx_fiu_flash_ops
  hw/xtensa/mx_pic: Specify xtensa_mx_pic_ops .impl settings

 hw/riscv/riscv-iommu.c |  1 -
 hw/ssi/npcm7xx_fiu.c   |  5 +++++
 hw/xtensa/mx_pic.c     | 27 +++++++++++++++++++++++++++
 system/memory.c        |  1 +
 4 files changed, 33 insertions(+), 1 deletion(-)

-- 
2.43.0
Re: [PATCH 0/4] MemoryRegionOps .impl cleanups
Posted by Peter Xu 3 weeks, 4 days ago
On Tue, Apr 28, 2026 at 10:33:35AM +0100, Peter Maydell wrote:
> This patchset is some fixes to MemoryRegionOps that were
> accidentally setting odd .impl values, plus an extra assert
> that we can now add that a MemoryRegionOps doesn't set
> .impl.unaligned true but .valid.unaligned false. They're
> originally from the CJ Chen / Tomoyuki Hirose patchset that
> aims to support proper synthesis of unaligned accesses in
> the memory system core. I still want to get that patchset
> upstream, but for the moment this is a set of simple
> cleanups:
> 
>  * riscv_iommu_trap_ops set .impl.unaligned but not
>    .valid.unaligned
>  * npcm7xx_fiu_flash_ops failed to set any .impl at all
>  * xtensa_mx_pic_ops failed to set any .impl, and was
>    less strict than it could be about .valid
> 
> Patches 1 and 4 have been reviewed.

I queued it..

-- 
Peter Xu
Re: [PATCH 0/4] MemoryRegionOps .impl cleanups
Posted by Peter Xu 1 month ago
On Tue, Apr 28, 2026 at 10:33:35AM +0100, Peter Maydell wrote:
> This patchset is some fixes to MemoryRegionOps that were
> accidentally setting odd .impl values, plus an extra assert
> that we can now add that a MemoryRegionOps doesn't set
> .impl.unaligned true but .valid.unaligned false. They're
> originally from the CJ Chen / Tomoyuki Hirose patchset that
> aims to support proper synthesis of unaligned accesses in
> the memory system core. I still want to get that patchset
> upstream, but for the moment this is a set of simple
> cleanups:
> 
>  * riscv_iommu_trap_ops set .impl.unaligned but not
>    .valid.unaligned
>  * npcm7xx_fiu_flash_ops failed to set any .impl at all
>  * xtensa_mx_pic_ops failed to set any .impl, and was
>    less strict than it could be about .valid
> 
> Patches 1 and 4 have been reviewed.
> 
> thanks
> -- PMM
> 
> CJ Chen (2):
>   hw/riscv: iommu-trap: remove .impl.unaligned = true
>   system/memory: assert on invalid MemoryRegionOps .unaligned combo
> 
> Peter Maydell (2):
>   hw/npcm7xx_fiu: Specify .impl for npcm7xx_fiu_flash_ops
>   hw/xtensa/mx_pic: Specify xtensa_mx_pic_ops .impl settings

Reviewed-by: Peter Xu <peterx@redhat.com>

-- 
Peter Xu