All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: Marek Vasut <marex@denx.de>, qemu-devel@nongnu.org
Cc: Jeff Da Silva <jdasilva@altera.com>,
	Chris Wulff <crwulff@gmail.com>,
	Sandra Loosemore <sandra@codesourcery.com>,
	Yves Vandervennet <yvanderv@altera.com>,
	Ley Foon Tan <lftan@altera.com>
Subject: Re: [Qemu-devel] [PATCH 2/7] nios2: Add architecture emulation support
Date: Tue, 18 Oct 2016 18:24:23 -0700	[thread overview]
Message-ID: <434bbc7d-2a13-0253-0af0-151e43a89e16@twiddle.net> (raw)
In-Reply-To: <5dacaa8f-646f-9bce-f362-1d5927893f73@denx.de>

On 10/18/2016 03:05 PM, Marek Vasut wrote:
>>> Thanks, I hope this is fixed now, although I mostly special-case the
>>> R_ZERO handling throughout the code. Any writes to R_ZERO are now
>>> ignored and any usage is converted to mov/movi instructions where
>>> applicable.
>>
>> We've done that in the past, but in the end it is much cleaner to
>> minimize the number of places in which you have to check for R_ZERO.
>
> Isn't it a bit more performant if you generate as little TCG
> instructions as possible ?

Well, yes and no.

We're always going to run the tcg optimizers, so the resulting code should be 
the same either way.

Processing a little more data can be preferable to fewer branch prediction 
failures.  And the best way to avoid those is to not have the branch at all. 
Especially when it's unlikely that the data will be created in the first place.


r~

  reply	other threads:[~2016-10-19  1:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-27 23:30 [Qemu-devel] [PATCH V2 1/7] nios2: Add disas entries Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 2/7] nios2: Add architecture emulation support Marek Vasut
2016-09-29  1:05   ` Richard Henderson
2016-10-18  3:58     ` Marek Vasut
2016-10-18 15:31       ` Richard Henderson
2016-10-18 18:32         ` Marek Vasut
2016-10-18 20:44           ` Richard Henderson
2016-10-18 22:05             ` Marek Vasut
2016-10-19  1:24               ` Richard Henderson [this message]
2016-10-19  2:31                 ` Marek Vasut
2016-10-19 16:18                   ` Richard Henderson
2016-10-20  3:01                     ` Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 3/7] nios2: Add usermode binaries emulation Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 4/7] nios2: Add IIC interrupt controller emulation Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 5/7] nios2: Add periodic timer emulation Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 6/7] nios2: Add Altera 10M50 GHRD emulation Marek Vasut
2016-09-27 23:30 ` [Qemu-devel] [PATCH 7/7] nios2: Add support for Nios-II R1 Marek Vasut
2016-10-15 13:15 ` [Qemu-devel] [V2,1/7] nios2: Add disas entries Romain Naour
2016-10-18  4:17   ` Marek Vasut
2016-10-31 21:27     ` Romain Naour
2016-11-01  0:03       ` Marek Vasut
  -- strict thread matches above, loose matches on Subject: below --
2016-07-28 12:27 [Qemu-devel] [PATCH V2 1/7] " Marek Vasut
2016-07-28 12:27 ` [Qemu-devel] [PATCH 2/7] nios2: Add architecture emulation support Marek Vasut
2016-06-13 19:05 [Qemu-devel] [PATCH 1/7] nios2: Add disas entries Marek Vasut
2016-06-13 19:05 ` [Qemu-devel] [PATCH 2/7] nios2: Add architecture emulation support Marek Vasut

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=434bbc7d-2a13-0253-0af0-151e43a89e16@twiddle.net \
    --to=rth@twiddle.net \
    --cc=crwulff@gmail.com \
    --cc=jdasilva@altera.com \
    --cc=lftan@altera.com \
    --cc=marex@denx.de \
    --cc=qemu-devel@nongnu.org \
    --cc=sandra@codesourcery.com \
    --cc=yvanderv@altera.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.