OSDN Git Service

i386/pc: factor out above-4g end to an helper
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 19 Jul 2022 17:00:07 +0000 (18:00 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Jul 2022 14:40:58 +0000 (10:40 -0400)
commit5ff62e2afedf5c984048f90a881794622a9eb3e8
treef8a679069f8e61877b459d642ab5e70e7b6d55ff
parentc48eb7a4e869f338e5b3e233fed7c9dbb0520247
i386/pc: factor out above-4g end to an helper

There's a couple of places that seem to duplicate this calculation
of RAM size above the 4G boundary. Move all those to a helper function.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20220719170014.27028-5-joao.m.martins@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c