All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] sparc32 iommu fix
Date: Tue, 20 Nov 2007 23:33:35 -0500	[thread overview]
Message-ID: <4743B51F.30303@earthlink.net> (raw)

[-- 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)

                 reply	other threads:[~2007-11-21  4:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4743B51F.30303@earthlink.net \
    --to=reif@earthlink.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.