aboutsummaryrefslogtreecommitdiff
path: root/op-i386.c
diff options
context:
space:
mode:
Diffstat (limited to 'op-i386.c')
-rw-r--r--op-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/op-i386.c b/op-i386.c
index 88bdb0a41f..2cca6a6722 100644
--- a/op-i386.c
+++ b/op-i386.c
@@ -1959,7 +1959,8 @@ int cpu_x86_exec(CPUX86State *env1)
#endif
}
#endif
- cpu_x86_gen_code(code_gen_buffer, &code_gen_size, (uint8_t *)env->pc);
+ cpu_x86_gen_code(code_gen_buffer, sizeof(code_gen_buffer),
+ &code_gen_size, (uint8_t *)env->pc);
/* execute the generated code */
gen_func = (void *)code_gen_buffer;
gen_func();