qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Helge Deller <deller@gmx.de>,
	dave.anglin@bell.net, QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [PATCH] target/hppa: Allow, but diagnose, LDCW aligned only mod 4
Date: Sat, 18 Jan 2020 07:10:34 +0100	[thread overview]
Message-ID: <0650e07e-d9d9-d5dd-2387-65ee3c5a12f1@redhat.com> (raw)
In-Reply-To: <ae03e9e6-af60-1b32-751f-68c08d0b3d51@linaro.org>

On 1/17/20 8:23 PM, Richard Henderson wrote:
> On 1/17/20 8:50 AM, Philippe Mathieu-Daudé wrote:
>> On Fri, Jan 17, 2020 at 2:53 AM Richard Henderson
>> <richard.henderson@linaro.org> wrote:
>>>
>>> The PA-RISC 1.1 specification says that LDCW must be aligned mod 16
>>> or the operation is undefined.  However, real hardware only generates
>>> an unaligned access trap for unaligned mod 4.
>>
>> This Linux kernel commit seems relevant:
>>
>> https://github.com/torvalds/linux/commit/14e256c107304#diff-e85862c7227599cb24e36494f75948d5R159-R164
>>
>>    /* From: "Jim Hull" <jim.hull of hp.com>
>>    I've attached a summary of the change, but basically, for PA 2.0, as
>>    long as the ",CO" (coherent operation) completer is specified, then the
>>    16-byte alignment requirement for ldcw and ldcd is relaxed, and instead
>>    they only require "natural" alignment (4-byte for ldcw, 8-byte for
>>    ldcd). */
> 
> It isn't completely relevant.  We don't implement hppa 2.0.

Oh... It was late and I misread it as:

   if (PA2)
     ...
   else
     ... "instead of PA 2.0 ... the 16-byte alignment ... is
     relaxed, and insted only require "natural" alignment ..."

   endif

> 
> I added a TODO comment for HPPA64, as I said in reply to Dave Anglin elsewhere
> in this thread.



      parent reply	other threads:[~2020-01-18  6:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-17  1:53 [PATCH] target/hppa: Allow, but diagnose, LDCW aligned only mod 4 Richard Henderson
2020-01-17 15:49 ` Helge Deller
2020-01-17 16:13   ` Philippe Mathieu-Daudé
2020-01-17 17:01     ` Helge Deller
2020-01-17 17:33       ` John David Anglin
2020-01-17 18:34       ` Richard Henderson
2020-01-17 17:30     ` Richard Henderson
2020-01-17 18:20       ` Philippe Mathieu-Daudé
2020-01-17 18:50 ` Philippe Mathieu-Daudé
2020-01-17 19:23   ` Richard Henderson
2020-01-17 19:57     ` Helge Deller
2020-01-18  6:10     ` Philippe Mathieu-Daudé [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=0650e07e-d9d9-d5dd-2387-65ee3c5a12f1@redhat.com \
    --to=philmd@redhat.com \
    --cc=dave.anglin@bell.net \
    --cc=deller@gmx.de \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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).