Revision 834e76ea

b/vl.c
2440 2440
                    exit(1);
2441 2441
                }
2442 2442

  
2443
                /* On 32-bit hosts, QEMU is limited by virtual address space */
2444
                if (value > (2047 << 20) && HOST_LONG_BITS == 32) {
2445
                    fprintf(stderr, "qemu: at most 2047 MB RAM can be simulated\n");
2446
                    exit(1);
2447
                }
2448 2443
                if (value != (uint64_t)(ram_addr_t)value) {
2449 2444
                    fprintf(stderr, "qemu: ram size too large\n");
2450 2445
                    exit(1);
......
3099 3094
        exit(1);
3100 3095

  
3101 3096
    /* init the memory */
3102
    if (ram_size == 0)
3097
    if (ram_size == 0) {
3103 3098
        ram_size = DEFAULT_RAM_SIZE * 1024 * 1024;
3099
    }
3100

  
3101
    if (!xen_enabled()) {
3102
        /* On 32-bit hosts, QEMU is limited by virtual address space */
3103
        if (ram_size > (2047 << 20) && HOST_LONG_BITS == 32) {
3104
            fprintf(stderr, "qemu: at most 2047 MB RAM can be simulated\n");
3105
            exit(1);
3106
        }
3107
    }
3104 3108

  
3105 3109
    /* init the dynamic translator */
3106 3110
    cpu_exec_init_all(tb_size * 1024 * 1024);

Also available in: Unified diff