All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Bochnig <mb1x@gmx.com>
To: qemu-devel@nongnu.org
Cc: renau@soe.ucsc.edu
Subject: Re: [Qemu-devel] SPARC patch for OS X (big endian machines)
Date: Wed, 28 Sep 2005 07:59:39 +0200	[thread overview]
Message-ID: <433A314B.8000703@gmx.com> (raw)
In-Reply-To: <8c2b58c5dbd7bef1e6dd8fa31c9f2d41@soe.ucsc.edu>

Jose Renau wrote:

>
> Without the following patch, I was unable to "start" the Linux boot 
> process
> on OS X (powerPC bigendian). I tried on ia64 (Linux) and works fine too.



Pretty cool.
I can confirm this for SPARC hosts , too (also MSB).

Hey, be aware that the SPARConSPARC case finally works with your patch :)
Even in SDL/gui mode, not just with "-nographic".

Thank you!

>
> --- target-sparc/op_helper.c 23 Jul 2005 14:27:54 -0000 1.15
> +++ target-sparc/op_helper.c 27 Sep 2005 23:54:52 -0000
> @@ -225,4 +225,5 @@
> void helper_ld_asi(int asi, int size, int sign)
> {
> +
> uint32_t ret = 0;
>
> @@ -258,8 +259,12 @@
> case 0x20 ... 0x2f: /* MMU passthrough */
> cpu_physical_memory_read(T0, (void *) &ret, size);
> - if (size == 4)
> - tswap32s(&ret);
> - else if (size == 2)
> - tswap16s((uint16_t *)&ret);
> +
> + tswap32s(&ret);
> + if (size == 2) {
> + ret = ret >> 16;
> + }else if (size == 1) {
> + ret = ret >> 24;
> + }
> +
> break;
> default:

  reply	other threads:[~2005-09-28  6:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27 23:58 [Qemu-devel] SPARC patch for OS X (big endian machines) Jose Renau
2005-09-28  5:59 ` Martin Bochnig [this message]
2005-10-30 20:53 ` Fabrice Bellard
2005-11-02  0:51   ` Jose Renau

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=433A314B.8000703@gmx.com \
    --to=mb1x@gmx.com \
    --cc=qemu-devel@nongnu.org \
    --cc=renau@soe.ucsc.edu \
    /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.