Message ID | 1441254496-16174-7-git-send-email-david@gibson.dropbear.id.au |
---|---|
State | New |
Headers | show |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 42fddb0..88bf8e3 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1708,7 +1708,7 @@ static void ppc_spapr_init(MachineState *machine) * more than needed for the Linux guests we support. */ spapr->htab_shift = 18; /* Minimum architected size */ while (spapr->htab_shift <= 46) { - if ((1ULL << (spapr->htab_shift + 7)) >= machine->ram_size) { + if ((1ULL << (spapr->htab_shift + 7)) >= machine->maxram_size) { break; } spapr->htab_shift++;