Message ID | 1435567472-20338-5-git-send-email-bharata@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 8ab8df5..2ee4515 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1706,7 +1706,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++;