All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Emilio G. Cota" <cota@braap.org>
To: Alistair Francis <alistair23@gmail.com>
Cc: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Sagar Karandikar <sagark@eecs.berkeley.edu>,
	Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
	Palmer Dabbelt <palmer@sifive.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	Michael Clark <mjc@sifive.com>,
	Alistair Francis <alistair.francis@wdc.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr
Date: Tue, 4 Sep 2018 21:07:56 -0400	[thread overview]
Message-ID: <20180905010756.GA2373@flamenco> (raw)
In-Reply-To: <CAKmqyKPoAhQnOMcTbCxR4g-vW2CBJJLO0EJt+ioXoTf0drSRCg@mail.gmail.com>

On Tue, Sep 04, 2018 at 16:42:32 -0700, Alistair Francis wrote:
> On Tue, Sep 4, 2018 at 4:39 PM, Emilio G. Cota <cota@braap.org> wrote:
> > On Tue, Sep 04, 2018 at 13:18:28 -0700, Alistair Francis wrote:
> >> On Fri, Aug 31, 2018 at 3:22 PM, Emilio G. Cota <cota@braap.org> wrote:
> >> > On Fri, Aug 10, 2018 at 13:39:38 -0400, Emilio G. Cota wrote:
> >> >> Changes wrt v1: changed patch 3 as suggested by Richard. Also
> >> >> added his R-b's.
> >> >>
> >> >> You can fetch this series from:
> >> >>   https://github.com/cota/qemu/tree/riscv-lookup_ptr-v2
> >> >
> >> > RISC-V maintainers: any plans of picking this up for 3.1?
> >>
> >> Thanks for CCing me.
> >>
> >> I think Michael must be really busy, I haven't seen any activity for
> >> awhile. I'm going to send a PR with everything that has been reviewed
> >> and applies cleanly.
> >
> > Thanks!
> >
> > Did patch 1 not apply cleanly? I see it's not part of the pullreq
> > you just sent.
> >
> > I'd like the three patches to go in in the original order, since
> > the perf numbers in patch 3's commit log are laid out assuming
> > that is the case.
> 
> The content of patch 1 was applied in this commit:
> 
> commit 07ea28b41830f946de3841b0ac61a3413679feb9
> Author: Richard Henderson <richard.henderson@linaro.org>
> Date:   Wed May 30 18:06:23 2018 -0700
> 
>     tcg: Pass tb and index to tcg_gen_exit_tb separately
> 
>     Do the cast to uintptr_t within the helper, so that the compiler
>     can type check the pointer argument.  We can also do some more
>     sanity checking of the index argument.
> 
>     Reviewed-by: Laurent Vivier <laurent@vivier.eu>
>     Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> 
> https://github.com/qemu/qemu/commit/07ea28b41830f946de3841b0ac61a3413679feb9
> 
> so unfortunately the patch no longer applies.

If I rebase the 3 patches on top of the current master (19b599f7),
the 3 patches apply cleanly, including patch 1:

--- a/target/riscv/translate.c
+++ b/target/riscv/translate.c
@@ -135,7 +135,7 @@ static void gen_goto_tb(DisasContext *ctx, int n, targ
         if (ctx->base.singlestep_enabled) {
             gen_exception_debug();
         } else {
-            tcg_gen_exit_tb(NULL, 0);
+            tcg_gen_lookup_and_goto_ptr();
         }
     }
 }

Did you apply the patches manually or pull from a branch?
The latest branch I have on this is:
   https://github.com/cota/qemu/tree/riscv-lookup_ptr-v2
(although note that that branch doesn't have Richard's
R-b tag for patch 3)

Thanks,

		Emilio

  reply	other threads:[~2018-09-05  1:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-10 17:39 [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr Emilio G. Cota
2018-08-10 17:39 ` [Qemu-devel] [PATCH v2 1/3] target/riscv: optimize cross-page direct jumps in softmmu Emilio G. Cota
2018-08-10 17:39 ` [Qemu-devel] [PATCH v2 2/3] target/riscv: optimize indirect branches Emilio G. Cota
2018-08-10 17:39 ` [Qemu-devel] [PATCH v2 3/3] target/riscv: call gen_goto_tb on DISAS_TOO_MANY Emilio G. Cota
2018-08-10 19:52   ` Richard Henderson
2018-08-31 22:22 ` [Qemu-devel] [PATCH v2 0/3] target/riscv: use tcg_lookup_and_goto_ptr Emilio G. Cota
2018-09-04 20:18   ` Alistair Francis
2018-09-04 23:39     ` Emilio G. Cota
2018-09-04 23:42       ` Alistair Francis
2018-09-05  1:07         ` Emilio G. Cota [this message]
2018-09-05 17:01           ` Alistair Francis
2018-09-06  9:45   ` Palmer Dabbelt

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=20180905010756.GA2373@flamenco \
    --to=cota@braap.org \
    --cc=alistair.francis@wdc.com \
    --cc=alistair23@gmail.com \
    --cc=kbastian@mail.uni-paderborn.de \
    --cc=mjc@sifive.com \
    --cc=palmer@sifive.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sagark@eecs.berkeley.edu \
    /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.