[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5310] 64 bit truncation in code_gen_buffer_size calculatio
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [5310] 64 bit truncation in code_gen_buffer_size calculation (Jes Sorensen) |
Date: |
Wed, 24 Sep 2008 14:10:37 +0000 |
Revision: 5310
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5310
Author: aliguori
Date: 2008-09-24 14:10:36 +0000 (Wed, 24 Sep 2008)
Log Message:
-----------
64 bit truncation in code_gen_buffer_size calculation (Jes Sorensen)
Don't truncate code_gen_buffer_size calculation to int, as it will give
unpredicted results on 64 bit systems when booting large guests.
Signed-off-by: Jes Sorensen <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/exec.c
Modified: trunk/exec.c
===================================================================
--- trunk/exec.c 2008-09-24 03:32:33 UTC (rev 5309)
+++ trunk/exec.c 2008-09-24 14:10:36 UTC (rev 5310)
@@ -410,7 +410,7 @@
code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE;
#else
/* XXX: needs ajustments */
- code_gen_buffer_size = (int)(phys_ram_size / 4);
+ code_gen_buffer_size = (unsigned long)(phys_ram_size / 4);
#endif
}
if (code_gen_buffer_size < MIN_CODE_GEN_BUFFER_SIZE)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5310] 64 bit truncation in code_gen_buffer_size calculation (Jes Sorensen),
Anthony Liguori <=