Skip to contentSkip to conversation

sparc32 iommu fix

PATCH New Robert Reif 1 participant 1 message Nov 21, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32 iommu fix

Set initial value of AFSR register properly.

Index: hw/iommu.c
===================================================================
RCS file: /sources/qemu/qemu/hw/iommu.c,v
retrieving revision 1.19

iommu.c +1 -0
diff -p -u -r1.19 iommu.c
@@ -311,6 +311,7 @@ static void iommu_reset(void *opaque)
     s->iostart = 0;
     s->regs[IOMMU_CTRL] = s->version;
     s->regs[IOMMU_ARBEN] = IOMMU_MID;
+    s->regs[IOMMU_AFSR] = 0x00800000;
 }
 
 void *iommu_init(target_phys_addr_t addr, uint32_t version)