Hi, I'm working with Bruno Larsen (billionai) to enable the disable-tcg option for PowerPC, right now I'm aiming at removing call to tcg-only functions from hw/ppc, there is still some work to be done in target/ppc.
This patch creates a spapr_hcall_tcg_stub.c file that has the same hcalls as spapr_hcall except those that call tcg-only functions, said functions now only trip a fatal error. The functions ppc_store_lpcr and ppc_hash64_filter_pagesizes were in tcg-only files but as their logic is necessary they have been moved to a non-tcg-only file. This is still a work in progress and this patches focuses on the spapr* calls, as there will still be some undefined references to functions in tcg-only files and include to tcg-only .h, mostly on target/ppc. Comments are welcome, thanks, Lucas Mateus. Lucas Mateus Castro (alqotel) (4): target/ppc: updated build options hw/ppc: Add kvm-only file spapr_hcall_tcg_stub.c hw/ppc: updated build rules to use new file target/ppc: transfered functions to non-tcg-only files hw/ppc/meson.build | 10 +- hw/ppc/spapr.c | 1 + hw/ppc/spapr_caps.c | 1 + hw/ppc/spapr_cpu_core.c | 1 + hw/ppc/spapr_hcall.c | 1 + hw/ppc/spapr_hcall_tcg_stub.c | 1825 +++++++++++++++++++++++++++++++++ hw/ppc/spapr_rtas.c | 1 + target/ppc/common-misc.c | 86 ++ target/ppc/common-misc.h | 13 + target/ppc/int_helper.c | 10 +- target/ppc/meson.build | 21 +- target/ppc/mmu-hash64.c | 67 +- target/ppc/mmu-hash64.h | 4 - 13 files changed, 1957 insertions(+), 84 deletions(-) create mode 100644 hw/ppc/spapr_hcall_tcg_stub.c create mode 100644 target/ppc/common-misc.c create mode 100644 target/ppc/common-misc.h -- 2.17.1