All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] hw/ppc: remove call to tcg-only function
@ 2021-04-22 19:31 Lucas Mateus Castro (alqotel)
  2021-04-22 19:31 ` [RFC PATCH 1/4] target/ppc: updated build options Lucas Mateus Castro (alqotel)
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Lucas Mateus Castro (alqotel) @ 2021-04-22 19:31 UTC (permalink / raw)
  To: qemu-devel, qemu-ppc; +Cc: bruno.larsen, lucas.araujo, david

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-04-27  3:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 19:31 [RFC PATCH 0/4] hw/ppc: remove call to tcg-only function Lucas Mateus Castro (alqotel)
2021-04-22 19:31 ` [RFC PATCH 1/4] target/ppc: updated build options Lucas Mateus Castro (alqotel)
2021-04-22 19:31 ` [RFC PATCH 2/4] hw/ppc: Add kvm-only file spapr_hcall_tcg_stub.c Lucas Mateus Castro (alqotel)
2021-04-23 22:06   ` Fabiano Rosas
2021-04-27  3:51     ` David Gibson
2021-04-22 19:31 ` [RFC PATCH 3/4] hw/ppc: updated build rules to use new file Lucas Mateus Castro (alqotel)
2021-04-22 19:31 ` [RFC PATCH 4/4] target/ppc: transfered functions to non-tcg-only files Lucas Mateus Castro (alqotel)
2021-04-22 20:21 ` [RFC PATCH 0/4] hw/ppc: remove call to tcg-only function no-reply

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.