From: Alexander Graf <agraf@suse.de>
To: qemu-devel List <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH 4/4] PPC: Make e500 pci byte swap config data
Date: Fri, 3 Sep 2010 01:16:38 +0200 [thread overview]
Message-ID: <1283469398-19965-5-git-send-email-agraf@suse.de> (raw)
In-Reply-To: <1283469398-19965-1-git-send-email-agraf@suse.de>
The config data field on the e500 pci controller is in little endian, so we need
to enable byte swap there.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
hw/ppce500_pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c
index 3fa42d2..629b242 100644
--- a/hw/ppce500_pci.c
+++ b/hw/ppce500_pci.c
@@ -313,7 +313,7 @@ static int e500_pcihost_initfn(SysBusDevice *dev)
cpu_register_physical_memory(registers + PCIE500_CFGADDR, 4, index);
/* CFGDATA */
- index = pci_host_data_register_mmio(&s->pci_state, 0);
+ index = pci_host_data_register_mmio(&s->pci_state, 1);
if (index < 0)
return -1;
cpu_register_physical_memory(registers + PCIE500_CFGDATA, 4, index);
--
1.6.0.2
prev parent reply other threads:[~2010-09-02 23:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 23:16 [Qemu-devel] [PULL 0/4] PPC updates Alexander Graf
2010-09-02 23:16 ` [Qemu-devel] [PATCH 1/4] Fix compile of ivshmem on 32 bit hosts Alexander Graf
2010-09-02 23:16 ` [Qemu-devel] [PATCH 2/4] KVM: PPC: Add level based interrupt logic Alexander Graf
2010-09-02 23:16 ` [Qemu-devel] [PATCH 3/4] PPC: Qdev'ify e500 pci Alexander Graf
2010-09-02 23:16 ` Alexander Graf [this message]
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=1283469398-19965-5-git-send-email-agraf@suse.de \
--to=agraf@suse.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).