diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2017-12-14 12:08:55 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-01-18 21:52:38 +0200 |
commit | 6cf6fe394acdf9b0025ae36ff75dfa8dc68d5bca (patch) | |
tree | 58d79845917efba17d84ef390e40a05b02d72e60 /hw/i386 | |
parent | d82c4f82e0233da642c36c40ef8da781fee689bc (diff) | |
download | qemu-6cf6fe394acdf9b0025ae36ff75dfa8dc68d5bca.zip qemu-6cf6fe394acdf9b0025ae36ff75dfa8dc68d5bca.tar.gz qemu-6cf6fe394acdf9b0025ae36ff75dfa8dc68d5bca.tar.bz2 |
hw/acpi-build: Make next_base easy to follow
It may be hard to read the assignment statement of "next_base", so
S/next_base += (1ULL << 32) - pcms->below_4g_mem_size;
/next_base = mem_base + mem_len;
... for readability.
No functionality change.
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/acpi-build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 6f38fb9..dc4b2b9 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2394,7 +2394,7 @@ build_srat(GArray *table_data, BIOSLinker *linker, MachineState *machine) } mem_base = 1ULL << 32; mem_len = next_base - pcms->below_4g_mem_size; - next_base += (1ULL << 32) - pcms->below_4g_mem_size; + next_base = mem_base + mem_len; } numamem = acpi_data_push(table_data, sizeof *numamem); build_srat_memory(numamem, mem_base, mem_len, i - 1, |