qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <andreas.faerber@web.de>
To: qemu-devel@nongnu.org
Cc: "Julio Guerra" <guerr@julio.in>,
	"Andreas Färber" <andreas.faerber@web.de>,
	qemu-ppc@nongnu.org, "Alexander Graf" <agraf@suse.de>
Subject: [Qemu-devel] [PULL 3/3] prep: Make System I/O port 0092 read/write
Date: Mon,  6 May 2013 02:37:52 +0200	[thread overview]
Message-ID: <1367800672-2914-4-git-send-email-andreas.faerber@web.de> (raw)
In-Reply-To: <1367800672-2914-1-git-send-email-andreas.faerber@web.de>

From: Julio Guerra <guerr@julio.in>

Port 0x0092 is documented as read/write, so for now return the
endianness state instead of hardcoded 0x00.

Signed-off-by: Julio Guerra <guerr@julio.in>
[AF: Extracted from larger port 0092 patch]
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
---
 hw/ppc/prep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
index afa62d7..be8a50e 100644
--- a/hw/ppc/prep.c
+++ b/hw/ppc/prep.c
@@ -269,7 +269,7 @@ static uint32_t PREP_io_800_readb (void *opaque, uint32_t addr)
     switch (addr) {
     case 0x0092:
         /* Special port 92 */
-        retval = 0x00;
+        retval = sysctrl->endian << 1;
         break;
     case 0x0800:
         /* Motorola CPU configuration register */
-- 
1.8.1.4

      parent reply	other threads:[~2013-05-06  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06  0:37 [Qemu-devel] [PULL for-1.5 0/3] PReP patch queue 2013-05-05 Andreas Färber
2013-05-06  0:37 ` [Qemu-devel] [PULL 1/3] prep: Fix NIP reset value Andreas Färber
2013-05-06  0:37 ` [Qemu-devel] [PULL 2/3] prep: Add ELF support for -bios Andreas Färber
2013-05-06  0:37 ` Andreas Färber [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=1367800672-2914-4-git-send-email-andreas.faerber@web.de \
    --to=andreas.faerber@web.de \
    --cc=agraf@suse.de \
    --cc=guerr@julio.in \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).