Re: [PATCH for-10.0 1/7] hw/riscv/riscv-iommu.c: add riscv_iommu_instance_init()

2024-11-18 Thread Alistair Francis
On Wed, Nov 6, 2024 at 11:38 PM Daniel Henrique Barboza wrote: > > Move all the static initializion of the device to an init() function, > leaving only the dynamic initialization to be done during realize. > > With this change s->cap is initialized with RISCV_IOMMU_CAP_DBG during > init(), and rea

[PATCH for-10.0 1/7] hw/riscv/riscv-iommu.c: add riscv_iommu_instance_init()

2024-11-06 Thread Daniel Henrique Barboza
Move all the static initializion of the device to an init() function, leaving only the dynamic initialization to be done during realize. With this change s->cap is initialized with RISCV_IOMMU_CAP_DBG during init(), and realize() will increment s->cap with the extra caps. This will allow callers