Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Emilio G. Cota
On Wed, Apr 26, 2017 at 19:11:32 -0400, Emilio G. Cota wrote: > On Wed, Apr 26, 2017 at 18:45:31 -0400, Emilio G. Cota wrote: > > On Thu, Apr 27, 2017 at 00:29:49 +0200, Richard Henderson wrote: > > > On 04/26/2017 11:56 PM, Emilio G. Cota wrote: > > > >On Wed, Apr 26, 2017 at 10:40:45 +0200, Richa

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Emilio G. Cota
On Wed, Apr 26, 2017 at 10:40:45 +0200, Richard Henderson wrote: > On 04/26/2017 08:23 AM, Emilio G. Cota wrote: > >This paves the way for upcoming work. > > > >Reviewed-by: Richard Henderson > >Signed-off-by: Emilio G. Cota > >--- > > tcg-runtime.c | 21 + > > tcg/tcg-ru

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Emilio G. Cota
On Wed, Apr 26, 2017 at 18:45:31 -0400, Emilio G. Cota wrote: > On Thu, Apr 27, 2017 at 00:29:49 +0200, Richard Henderson wrote: > > On 04/26/2017 11:56 PM, Emilio G. Cota wrote: > > >On Wed, Apr 26, 2017 at 10:40:45 +0200, Richard Henderson wrote: > > >>On 04/26/2017 08:23 AM, Emilio G. Cota wrote

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Emilio G. Cota
On Thu, Apr 27, 2017 at 00:29:49 +0200, Richard Henderson wrote: > On 04/26/2017 11:56 PM, Emilio G. Cota wrote: > >On Wed, Apr 26, 2017 at 10:40:45 +0200, Richard Henderson wrote: > >>On 04/26/2017 08:23 AM, Emilio G. Cota wrote: > >(snip) > >>>+cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags)

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Richard Henderson
On 04/26/2017 11:56 PM, Emilio G. Cota wrote: On Wed, Apr 26, 2017 at 10:40:45 +0200, Richard Henderson wrote: On 04/26/2017 08:23 AM, Emilio G. Cota wrote: (snip) +cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags); +tb = atomic_rcu_read(&cpu->tb_jmp_cache[tb_jmp_cache_hash_func(addr)])

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Emilio G. Cota
On Wed, Apr 26, 2017 at 10:40:45 +0200, Richard Henderson wrote: > On 04/26/2017 08:23 AM, Emilio G. Cota wrote: (snip) > >+cpu_get_tb_cpu_state(env, &pc, &cs_base, &flags); > >+tb = atomic_rcu_read(&cpu->tb_jmp_cache[tb_jmp_cache_hash_func(addr)]); > >+if (likely(tb && tb->pc == addr &

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Alex Bennée
Paolo Bonzini writes: > On 26/04/2017 12:29, Alex Bennée wrote: >> >> Emilio G. Cota writes: >> >>> This paves the way for upcoming work. >>> >>> Reviewed-by: Richard Henderson >>> Signed-off-by: Emilio G. Cota >>> --- >>> tcg-runtime.c | 21 + >>> tcg/tcg-runtime.h |

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Paolo Bonzini
On 26/04/2017 12:29, Alex Bennée wrote: > > Emilio G. Cota writes: > >> This paves the way for upcoming work. >> >> Reviewed-by: Richard Henderson >> Signed-off-by: Emilio G. Cota >> --- >> tcg-runtime.c | 21 + >> tcg/tcg-runtime.h | 2 ++ >> tcg/tcg.h | 1

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Richard Henderson
On 04/26/2017 12:29 PM, Alex Bennée wrote: Emilio G. Cota writes: This paves the way for upcoming work. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tcg-runtime.c | 21 + tcg/tcg-runtime.h | 2 ++ tcg/tcg.h | 1 + 3 files changed,

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Alex Bennée
Emilio G. Cota writes: > This paves the way for upcoming work. > > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota > --- > tcg-runtime.c | 21 + > tcg/tcg-runtime.h | 2 ++ > tcg/tcg.h | 1 + > 3 files changed, 24 insertions(+) > > diff --git a

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Richard Henderson
On 04/26/2017 08:23 AM, Emilio G. Cota wrote: This paves the way for upcoming work. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tcg-runtime.c | 21 + tcg/tcg-runtime.h | 2 ++ tcg/tcg.h | 1 + 3 files changed, 24 insertions(+) diff -

Re: [Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-26 Thread Paolo Bonzini
On 26/04/2017 08:23, Emilio G. Cota wrote: > This paves the way for upcoming work. > > Reviewed-by: Richard Henderson > Signed-off-by: Emilio G. Cota > --- > tcg-runtime.c | 21 + > tcg/tcg-runtime.h | 2 ++ > tcg/tcg.h | 1 + > 3 files changed, 24 insertions

[Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-25 Thread Emilio G. Cota
This paves the way for upcoming work. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tcg-runtime.c | 21 + tcg/tcg-runtime.h | 2 ++ tcg/tcg.h | 1 + 3 files changed, 24 insertions(+) diff --git a/tcg-runtime.c b/tcg-runtime.c index 4c60c96..