On 11/26/25 7:45 AM, Tao Tang wrote:
Move register definitions, command enums, and Stream Table Entry (STE) /
Context Descriptor (CD) structure definitions from the internal header
hw/arm/smmuv3-internal.h to a new common header
include/hw/arm/smmuv3-common.h.
This allows other components, such as generic SMMUv3 tests or test devices,
to utilize these definitions without including the specific SMMUv3 device
internal state.
In addition, refactor the STE and CD field definitions to consistently use
the 'hw/registerfields.h' API and introduce corresponding setter macros to
facilitate structure manipulation.
Signed-off-by: Tao Tang <[email protected]>
---
hw/arm/smmuv3-internal.h | 255 +-----------------
include/hw/arm/smmuv3-common.h | 461 +++++++++++++++++++++++++++++++++
2 files changed, 462 insertions(+), 254 deletions(-)
create mode 100644 include/hw/arm/smmuv3-common.h
Reviewed-by: Pierrick Bouvier <[email protected]>