All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] sparc32 iommu fix
@ 2007-11-21  4:33 Robert Reif
  0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2007-11-21  4:33 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 45 bytes --]

Set initial value of AFSR register properly.

[-- Attachment #2: iommu.diff.txt --]
[-- Type: text/plain, Size: 530 bytes --]

Index: hw/iommu.c
===================================================================
RCS file: /sources/qemu/qemu/hw/iommu.c,v
retrieving revision 1.19
diff -p -u -r1.19 iommu.c
--- hw/iommu.c	17 Nov 2007 17:14:42 -0000	1.19
+++ hw/iommu.c	21 Nov 2007 04:30:28 -0000
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-21  4:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21  4:33 [Qemu-devel] [PATCH] sparc32 iommu fix Robert Reif

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.