qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Valentin Manea <valentin.manea@gmail.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: kwolf@redhat.com, mjt@tls.msk.ru, Jia Liu <proljc@gmail.com>,
	stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] IDE: MMIO IDE device control should be little endian
Date: Sun, 07 Sep 2014 22:07:10 +0300	[thread overview]
Message-ID: <540CACDE.5020102@gmail.com> (raw)
In-Reply-To: <5402DD88.5010600@gmail.com>

Hi,

  Did anybody get the chance to review this patch?
  It would be quite nice to integrate it before all the other openrisc changes, to get
the IDE working also.

Thanks,
Valentin
On 2014-08-31 11:32, Valentin Manea wrote:
> 
> Set the IDE MMIO memory type to little endian. The ATA specs identify
> words part of the control commands encoded as little endian.
> While this has no impact on little endian systems, it's required for big
> endian systems(eg OpenRisc).
> 
> Signed-off-by: Valentin Manea <valentin.manea@gmail.com>
> ---
>  hw/ide/mmio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c
> index 01c1d0e..334c8cc 100644
> --- a/hw/ide/mmio.c
> +++ b/hw/ide/mmio.c
> @@ -82,7 +82,7 @@ static void mmio_ide_write(void *opaque, hwaddr addr,
>  static const MemoryRegionOps mmio_ide_ops = {
>      .read = mmio_ide_read,
>      .write = mmio_ide_write,
> -    .endianness = DEVICE_NATIVE_ENDIAN,
> +    .endianness = DEVICE_LITTLE_ENDIAN,
>  };
> 
>  static uint64_t mmio_ide_status_read(void *opaque, hwaddr addr,
> @@ -102,7 +102,7 @@ static void mmio_ide_cmd_write(void *opaque, hwaddr
> addr,
>  static const MemoryRegionOps mmio_ide_cs_ops = {
>      .read = mmio_ide_status_read,
>      .write = mmio_ide_cmd_write,
> -    .endianness = DEVICE_NATIVE_ENDIAN,
> +    .endianness = DEVICE_LITTLE_ENDIAN,
>  };
> 
>  static const VMStateDescription vmstate_ide_mmio = {
> 

  reply	other threads:[~2014-09-07 19:07 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <53F704BE.6000407@mrs.ro>
2014-08-22  9:22 ` [Qemu-devel] [PATCH] IDE: MMIO IDE device control should be little endian Peter Maydell
2014-08-24  9:24 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-08-28 11:13   ` Stefan Hajnoczi
2014-08-31  8:32     ` Valentin Manea
2014-08-31  8:32 ` [Qemu-devel] " Valentin Manea
2014-09-07 19:07   ` Valentin Manea [this message]
2014-09-08  8:52     ` Stefan Hajnoczi
2014-09-08  9:07   ` Stefan Hajnoczi
2014-09-08  9:11     ` Paolo Bonzini
2014-09-08 10:59     ` Michael Tokarev
2014-09-08 12:13     ` Peter Maydell
2014-09-09  8:58   ` Kevin Wolf
2014-09-09 19:18     ` Valentin Manea

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=540CACDE.5020102@gmail.com \
    --to=valentin.manea@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=proljc@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /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).