Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Lluís
Nathan Froyd writes: > On Tue, Oct 19, 2010 at 09:57:13PM +0200, Lluís wrote: >> --- a/exec.c >> +++ b/exec.c >> @@ -688,6 +688,11 @@ static void page_flush_tb(void) >> } >> } >> >> +void tb_flush_jmp_cache (CPUState * env) >> +{ >> +memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (v

Re: [Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Nathan Froyd
On Tue, Oct 19, 2010 at 09:57:13PM +0200, Lluís wrote: > --- a/exec.c > +++ b/exec.c > @@ -688,6 +688,11 @@ static void page_flush_tb(void) > } > } > > +void tb_flush_jmp_cache (CPUState * env) > +{ > +memset (env->tb_jmp_cache, 0, TB_JMP_CACHE_SIZE * sizeof (void *)); > +} > + This is

[Qemu-devel] [PATCH] Refactor flush of per-CPU virtual TB cache

2010-10-22 Thread Lluís
Signed-off-by: Lluís Vilanova --- exec-all.h |2 ++ exec.c |9 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/exec-all.h b/exec-all.h index 3a53fe6..2ae09c5 100644 --- a/exec-all.h +++ b/exec-all.h @@ -182,6 +182,8 @@ static inline unsigned int tb_phys_hash_f