diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-22 21:39:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-22 21:39:06 +0000 |
commit | a00bad7ed468da05916a9344f8ee0eed647e2b32 (patch) | |
tree | cb4390763e036e2b36d0036a88a0520c9a8ded37 /vl.c | |
parent | 25b42e9d53c0c2b8bce02483d0e80c9ae90e2f53 (diff) |
default ram size define (Pavel Janik)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@847 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -93,6 +93,8 @@ extern void __sigaction(); #define PHYS_RAM_MAX_SIZE (2047 * 1024 * 1024) #endif +#define DEFAULT_RAM_SIZE 32 + /* in ms */ #define GUI_REFRESH_INTERVAL 30 @@ -1914,7 +1916,7 @@ void help(void) "-cdrom file use 'file' as IDE cdrom image (cdrom is ide1 master)\n" "-boot [a|b|c|d] boot on floppy (a, b), hard disk (c) or CD-ROM (d)\n" "-snapshot write to temporary files instead of disk image files\n" - "-m megs set virtual RAM size to megs MB\n" + "-m megs set virtual RAM size to megs MB [default=%d]\n" "-nographic disable graphical output and redirect serial I/Os to console\n" "-enable-audio enable audio support\n" "\n" @@ -1951,7 +1953,8 @@ void help(void) #else "qemu-fast", #endif - DEFAULT_NETWORK_SCRIPT, + DEFAULT_RAM_SIZE, + DEFAULT_NETWORK_SCRIPT, DEFAULT_GDBSTUB_PORT, "/tmp/qemu.log"); term_print_help(); @@ -2090,7 +2093,7 @@ int main(int argc, char **argv) fd_filename[i] = NULL; for(i = 0; i < MAX_DISKS; i++) hd_filename[i] = NULL; - ram_size = 32 * 1024 * 1024; + ram_size = DEFAULT_RAM_SIZE * 1024 * 1024; vga_ram_size = VGA_RAM_SIZE; pstrcpy(network_script, sizeof(network_script), DEFAULT_NETWORK_SCRIPT); #ifdef CONFIG_GDBSTUB |