linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] [POWERPC] Emulate isel (Integer Select) instruction
Date: Wed, 21 Nov 2007 20:12:27 +1100	[thread overview]
Message-ID: <1195636347.6970.80.camel@pasglop> (raw)
In-Reply-To: <B82E6C31-8BB7-4348-9426-B18A971172A9@kernel.crashing.org>


On Tue, 2007-11-20 at 15:01 -0600, Kumar Gala wrote:
> > Given that the instruction is meant to be a performance enhancement,
> > we should probably warn the first few times it's emulated, so the
> user
> > knows they should change their toolchain setup if possible.
> 
> The same is true of mcrxr, popcntb, and possibly string ld/st.
> 
> Feel free to submit a patch that warns about their usage.

At least we should keep counters... best would be per-task counters
in /proc but that sounds harder :-)

I remember in the early days of powerpc, it wasn't uncommon to have apps
with issues because they used 601 only bits on 603/4 that had to be
emulated (such as old POWER opcodes). On MacOS, we used to have a
system-wide counter of the number of emulated instructions we could use
to detect these things.

Ben.

  reply	other threads:[~2007-11-21  9:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-20  3:36 [PATCH] [POWERPC] Emulate isel (Integer Select) instruction Kumar Gala
2007-11-20 17:54 ` Scott Wood
2007-11-20 21:01   ` Kumar Gala
2007-11-21  9:12     ` Benjamin Herrenschmidt [this message]
2007-11-21 14:19       ` Kumar Gala
2007-11-21 13:09     ` Geert Uytterhoeven
2007-11-21 14:22       ` Kumar Gala
2007-11-21 14:33         ` Geert Uytterhoeven
2007-11-21 15:34           ` Kumar Gala
2007-11-21 16:50         ` Geert Uytterhoeven
2007-11-21 19:22           ` Kumar Gala
2007-11-21 21:31       ` Paul Mackerras
2007-11-21 21:36       ` Paul Mackerras
2007-11-21 21:41         ` Scott Wood
2007-11-21 21:48           ` Kim Phillips
2007-11-21 21:38       ` Paul Mackerras
2007-11-27 14:56       ` Geert Uytterhoeven
2007-11-27 15:23         ` Olof Johansson
2007-11-28 10:49           ` Geert Uytterhoeven
2007-11-29 15:13             ` Geert Uytterhoeven
2007-12-14  8:12               ` Olof Johansson
2007-12-14  8:08                 ` Kumar Gala
2007-12-14  8:17                   ` Olof Johansson
2007-12-14  8:16                 ` Olof Johansson

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=1195636347.6970.80.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=galak@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.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).