Skip to contentSkip to conversation

hw/arm/smmu-common: Remove the repeated ttb field

PATCH Applied JianChunfu 3 participants 3 messages Feb 21, 2025 – Mar 3, 2025

lore
Share & tools
lore

JianChunfu

author
#0 lore raw

PATCH 1/1 hw/arm/smmu-common: Remove the repeated ttb field

SMMUTransCfg->ttb is never used in QEMU, TT base address can be accessed by SMMUTransCfg->tt[i]->ttb.

---
 include/hw/arm/smmu-common.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/arm/smmu-common.h +0 -1
index d1a4a6455..e5ad55bba 100644
@@ -110,7 +110,6 @@ typedef struct SMMUTransCfg {
     /* Used by stage-1 only. */
     bool aa64;                 /* arch64 or aarch32 translation table */
     bool record_faults;        /* record fault events */
-    uint64_t ttb;              /* TT base address */
     uint8_t oas;               /* output address width */
     uint8_t tbi;               /* Top Byte Ignore */
     int asid;
Signature · 1 line
2.47.1
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 4 lines · JianChunfu

SMMUTransCfg->ttb is never used in QEMU, TT base address can be accessed by SMMUTransCfg->tt[i]->ttb.

Thanks!

Eric

Quoted 16 lines
---
 include/hw/arm/smmu-common.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/arm/smmu-common.h +0 -1
index d1a4a6455..e5ad55bba 100644
@@ -110,7 +110,6 @@ typedef struct SMMUTransCfg {
     /* Used by stage-1 only. */
     bool aa64;                 /* arch64 or aarch32 translation table */
     bool record_faults;        /* record fault events */
-    uint64_t ttb;              /* TT base address */
     uint8_t oas;               /* output address width */
     uint8_t tbi;               /* Top Byte Ignore */
     int asid;
#2 lore raw
In reply to JianChunfu
Quoted 14 lines · JianChunfu

SMMUTransCfg->ttb is never used in QEMU, TT base address can be accessed by SMMUTransCfg->tt[i]->ttb.

---
 include/hw/arm/smmu-common.h | 1 -
 1 file changed, 1 deletion(-)
include/hw/arm/smmu-common.h +0 -0
index d1a4a6455..e5ad55bba 100644

include/hw/arm/smmu-common.h typedef struct SMMUTransCfg {

Quoted 8 lines
include/hw/arm/smmu-common.h +0 -2
@@ -110,7 +110,6 @@ typedef struct SMMUTransCfg {
     /* Used by stage-1 only. */
     bool aa64;                 /* arch64 or aarch32 translation table */
     bool record_faults;        /* record fault events */
-    uint64_t ttb;              /* TT base address */
     uint8_t oas;               /* output address width */
     uint8_t tbi;               /* Top Byte Ignore */
     int asid;
--

Applied to target-arm.next, thanks.

-- PMM