sync with latest
[sdk/emulator/qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index a64e70b..8e6bf12 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1386,10 +1386,10 @@ void tb_link_page(TranslationBlock *tb,
 /* check whether the given addr is in TCG generated code buffer or not */
 bool is_tcg_gen_code(uintptr_t tc_ptr)
 {
-    /* This can be called during code generation, code_gen_buffer_max_size
+    /* This can be called during code generation, code_gen_buffer_size
        is used instead of code_gen_ptr for upper boundary checking */
     return (tc_ptr >= (uintptr_t)code_gen_buffer &&
-            tc_ptr < (uintptr_t)(code_gen_buffer + code_gen_buffer_max_size));
+            tc_ptr < (uintptr_t)(code_gen_buffer + code_gen_buffer_size));
 }
 #endif