mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
28e0204254
commit
fb16499418
3 changed files with 14 additions and 12 deletions
|
@ -33,7 +33,6 @@ struct sPAPRMachineState {
|
|||
XICSState *icp;
|
||||
DeviceState *rtc;
|
||||
|
||||
hwaddr ram_limit;
|
||||
void *htab;
|
||||
uint32_t htab_shift;
|
||||
hwaddr rma_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue