From: Matthew Wilcox <willy@debian.org>
To: Carlos O'Donell <carlos@baldric.uwo.ca>
Cc: parisc-linux@lists.parisc-linux.org,
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Subject: Re: [parisc-linux] [glibc] fixing delayed exceptions in hppa
Date: Fri, 22 Aug 2003 03:42:59 +0100 [thread overview]
Message-ID: <20030822024259.GC18834@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030822013931.GD31872@systemhalted>
On Thu, Aug 21, 2003 at 09:39:31PM -0400, Carlos O'Donell wrote:
> Just a quick RFC on this patch. I've generated a register interlock on
> the previous exception raising result register. This _should_ cause delayed
> exceptions to be flushed immediately on all processors.
>
> Under my C3K testsetup it fixes the test-fenv failure that was
> specifically related to "child raises exception, exception comes in late
> and kills parent after child called join."
Yay.
> Comments more than welcome, I'll be submitting this upstream if nobody
> has any quibles with my gcc asm :)
I can quibble!
> /* One example of a invalid operation is 0 * Infinity. */
> double d = HUGE_VAL;
> - __asm__ __volatile__ ("fmpy,dbl %1,%%fr0,%0\n\t"
> + __asm__ __volatile__ ("fmpy,dbl %2,%%fr0,%0\n\t"
> /* FIXME: is this a proper trap barrier? */
> - "fcpy,dbl %%fr0,%%fr0" : "=f" (d) : "0" (d));
> + "fcpy,dbl %0,%1" : "=f" (d), "=f" (dummy) : "0" (d));
> }
Surely this, and all the others, would be clearer written as:
__asm__ __volatile__ (
" fmpy,dbl %0,%%fr0,%0\n"
" fcpy,dbl %0,%1\n"
: "+f" (d), "=f" (dummy));
ie turn the \t into a literal tab, and use the "+" syntax rather than the
"=" and "0" syntax.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
next prev parent reply other threads:[~2003-08-22 2:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-22 1:39 [parisc-linux] [glibc] fixing delayed exceptions in hppa Carlos O'Donell
2003-08-22 2:42 ` Matthew Wilcox [this message]
2003-08-22 3:04 ` [parisc-linux] " John David Anglin
2003-08-22 14:46 ` Carlos O'Donell
2003-08-22 20:24 ` John David Anglin
2003-08-23 5:55 ` Carlos O'Donell
2003-08-23 16:12 ` John David Anglin
2003-08-30 16:37 ` Carlos O'Donell
2003-08-30 22:54 ` John David Anglin
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=20030822024259.GC18834@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=carlos@baldric.uwo.ca \
--cc=dave.anglin@nrc-cnrc.gc.ca \
--cc=parisc-linux@lists.parisc-linux.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