Revision 0ac543de

b/vl.c
3077 3077
        exit(1);
3078 3078
    }
3079 3079

  
3080
    /* init the memory */
3081
    if (ram_size == 0) {
3082
        ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
3083
    }
3084

  
3080 3085
    configure_accelerator();
3081 3086

  
3082 3087
    if (qemu_init_main_loop()) {
......
3111 3116
    if (foreach_device_config(DEV_BT, bt_parse))
3112 3117
        exit(1);
3113 3118

  
3114
    /* init the memory */
3115
    if (ram_size == 0) {
3116
        ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
3117
    }
3118

  
3119 3119
    if (!xen_enabled()) {
3120 3120
        /* On 32-bit hosts, QEMU is limited by virtual address space */
3121 3121
        if (ram_size > (2047 << 20) && HOST_LONG_BITS == 32) {

Also available in: Unified diff