diff mbox

[RFC,01/38] cpu-exec: add missing mmap_lock in tb_find_slow

Message ID 1440375847-17603-2-git-send-email-cota@braap.org
State New
Headers show

Commit Message

Emilio Cota Aug. 24, 2015, 12:23 a.m. UTC
Signed-off-by: Emilio G. Cota <cota@braap.org>
---
 cpu-exec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Alex Bennée Sept. 7, 2015, 3:33 p.m. UTC | #1
Emilio G. Cota <cota@braap.org> writes:

> Signed-off-by: Emilio G. Cota <cota@braap.org>
> ---
>  cpu-exec.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/cpu-exec.c b/cpu-exec.c
> index f53475c..b8a11e1 100644
> --- a/cpu-exec.c
> +++ b/cpu-exec.c
> @@ -330,6 +330,7 @@ static TranslationBlock *tb_find_slow(CPUState *cpu,
>          if (!tb) {
>              tb = tb_gen_code(cpu, pc, cs_base, flags, 0);
>          }
> +        mmap_unlock();
>      }
>  
>      /* we add the TB in the virtual pc hash table */

Fix the commit comment s/lock/unlock/ and you can have:

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
diff mbox

Patch

diff --git a/cpu-exec.c b/cpu-exec.c
index f53475c..b8a11e1 100644
--- a/cpu-exec.c
+++ b/cpu-exec.c
@@ -330,6 +330,7 @@  static TranslationBlock *tb_find_slow(CPUState *cpu,
         if (!tb) {
             tb = tb_gen_code(cpu, pc, cs_base, flags, 0);
         }
+        mmap_unlock();
     }
 
     /* we add the TB in the virtual pc hash table */