Commit 4fc5d0717682386fa7b28fff031f840fb7c8f489
1 parent
00f82b8a
Fix a regression introduced by my previous commit, ram_size is now
unsigned. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4266 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
3 additions
and
3 deletions
hw/boards.h
vl.c
| ... | ... | @@ -8277,7 +8277,7 @@ int main(int argc, char **argv) |
| 8277 | 8277 | machine = first_machine; |
| 8278 | 8278 | cpu_model = NULL; |
| 8279 | 8279 | initrd_filename = NULL; |
| 8280 | - ram_size = -1; | |
| 8280 | + ram_size = 0; | |
| 8281 | 8281 | vga_ram_size = VGA_RAM_SIZE; |
| 8282 | 8282 | #ifdef CONFIG_GDBSTUB |
| 8283 | 8283 | use_gdbstub = 0; |
| ... | ... | @@ -9000,7 +9000,7 @@ int main(int argc, char **argv) |
| 9000 | 9000 | } else |
| 9001 | 9001 | ram_size = phys_ram_size; |
| 9002 | 9002 | } else { |
| 9003 | - if (ram_size < 0) | |
| 9003 | + if (ram_size == 0) | |
| 9004 | 9004 | ram_size = DEFAULT_RAM_SIZE * 1024 * 1024; |
| 9005 | 9005 | |
| 9006 | 9006 | phys_ram_size += ram_size; | ... | ... |