hw/ppc: moved hcalls that depend on softmmu
commit962104f04482ad1244158068af36284f92038ca4
authorLucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Thu, 6 May 2021 16:39:38 +0000 (6 13:39 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 19 May 2021 00:30:28 +0000 (19 10:30 +1000)
tree840e20ca4b2201e4fd89f066836207a45edd8ed1
parent37f219c8f8b93f5bd1cb9bc156066357a806393a
hw/ppc: moved hcalls that depend on softmmu

The hypercalls h_enter, h_remove, h_bulk_remove, h_protect, and h_read,
have been moved to spapr_softmmu.c with the functions they depend on. The
functions is_ram_address and push_sregs_to_kvm_pr are not static anymore
as functions on both spapr_hcall.c and spapr_softmmu.c depend on them.
The hypercalls h_resize_hpt_prepare and h_resize_hpt_commit have been
divided, the KVM part stayed in spapr_hcall.c while the softmmu part
was moved to spapr_softmmu.c

Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br>
Message-Id: <20210506163941.106984-2-lucas.araujo@eldorado.org.br>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/meson.build
hw/ppc/spapr_hcall.c
hw/ppc/spapr_softmmu.c [new file with mode: 0644]
include/hw/ppc/spapr.h