spapr: Remove obsolete ram_limit field from sPAPRMachineState
commitfb16499418aa7d71d2a4f2e3d79de444c4d054c0
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 2 Jul 2015 06:23:05 +0000 (2 16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:50 +0000 (7 17:44 +0200)
tree7b56c0f7279914859a1273bf1eb2c3544e109e2a
parent28e0204254c3f03e77106056a3a5730c4b8a2ac6
spapr: Remove obsolete ram_limit field from sPAPRMachineState

The ram_limit field was imported from sPAPREnvironment where it predates
the machine's ram size being available generically from machine->ram_size.

Worse, the existing code was inconsistent about where it got the ram size
from.  Sometimes it used spapr->ram_limit, sometimes the global 'ram_size'
and sometimes a local 'ram_size' masking the global.

This cleans up the code to consistently use machine->ram_size, eliminating
spapr->ram_limit in the process.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
include/hw/ppc/spapr.h