From: "J. Mayer" <l_indien@magic.fr>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Is Little endian supported by Qemu -prep
Date: Thu, 07 Apr 2005 12:44:39 +0200 [thread overview]
Message-ID: <1112870679.28622.96.camel@rapid> (raw)
In-Reply-To: <4254DB0D.6060509@co.inet.fi>
On Thu, 2005-04-07 at 10:02 +0300, Tero Kaarlela wrote:
> Still working on OS/2 PPC edition bootloading. I got patch to ppc_prep.c
> from J Mayer to make it support non-continuous I/O map mode. It seemed
> to work ok. But catched bug in the further code after line mfspr
> r3,1008. I modified ppc_prep.c Processor version from 0x00080000 (g3)
> to 0x00040000 (604) and problem was fixed. Now it crashes after code:
>
> subfic r0,r0,-32690
> mtlr r0
> blr
> (LR = ffef7f1e)
> r0 was 0x00100130 to begin with
>
> This error happens shortly after changinfg MSR state from 0x00000030
> to 0x00000031 (change mode from Big-endian to Little endian) So might
> Little-endian be reason why LR goes nuts?:)
Yes, that's the reason. As far as I know, Qemu has no support for
dynamic endian modes.
I did not think any OS did use LE mode...
Imho, the simple way to handle this is to add a bit in the translation
bloc state (flags in cpu-exec.c) and exend the memory access tables
(using mem_idx in target-ppc/translate.c) for little-endian case.
This is not so hard to do, but as all memory access routines have to be
duplicated, it may take some time to do the patch. The great thing doing
this way is that little endian mode will be as efficient as BE mode..
I'll take a look during the week end and give you a patch so you may go
on testing OS/2.
--
J. Mayer <l_indien@magic.fr>
Never organized
next prev parent reply other threads:[~2005-04-07 10:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-07 7:02 [Qemu-devel] Is Little endian supported by Qemu -prep Tero Kaarlela
2005-04-07 10:37 ` [Qemu-devel] Is Little endian supported by Qemu -prep sorry wrong info!! Tero Kaarlela
2005-04-07 10:44 ` J. Mayer [this message]
2005-04-07 16:29 ` [Qemu-devel] Is Little endian supported by Qemu -prep Tero Kaarlela
2005-04-07 17:46 ` Gwenole Beauchesne
2005-04-07 21:35 ` J. Mayer
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=1112870679.28622.96.camel@rapid \
--to=l_indien@magic.fr \
--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).