Skip to content

Commit

Permalink
wip smmu
Browse files Browse the repository at this point in the history
Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Feb 26, 2025
1 parent 5ee7f6b commit e8118ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hw/arm/smmuv3.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ static void smmuv3_init_regs(SMMUv3State *s)
}
s->idr[3] = FIELD_DP32(s->idr[3], IDR3, RIL, 1);
s->idr[3] = FIELD_DP32(s->idr[3], IDR3, BBML, 2);
s->idr[3] = FIELD_DP32(s->idr[3], IDR3, STT, 1); /* FEAT_TTST */

s->idr[5] = FIELD_DP32(s->idr[5], IDR5, OAS, SMMU_IDR5_OAS); /* 44 bits */
/* 4K, 16K and 64K granule support */
Expand Down Expand Up @@ -358,7 +359,11 @@ static int smmu_get_cd(SMMUv3State *s, STE *ste, SMMUTransCfg *cfg,

trace_smmuv3_get_cd(addr);

if (cfg->stage == SMMU_STAGE_2) {
g_assert_not_reached();
}
if (cfg->stage == SMMU_NESTED) {
g_assert_not_reached();
status = smmuv3_do_translate(s, addr, cfg, event,
IOMMU_RO, &entry, SMMU_CLASS_CD);

Expand Down Expand Up @@ -397,6 +402,7 @@ static int smmu_get_cd(SMMUv3State *s, STE *ste, SMMUTransCfg *cfg,
*/
static bool s2t0sz_valid(SMMUTransCfg *cfg)
{
abort();
if (cfg->s2cfg.tsz > 39) {
return false;
}
Expand Down

0 comments on commit e8118ef

Please sign in to comment.