[PATCH v3 3/4] target/ppc: moved ppc_store_lpcr to misc_helper.c

2021-05-06 Thread Lucas Mateus Castro (alqotel)
Mateus Castro (alqotel) --- target/ppc/cpu.h | 1 + target/ppc/misc_helper.c | 10 ++ target/ppc/mmu-hash64.c | 10 -- target/ppc/mmu-hash64.h | 1 - 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 733a2168c4

[PATCH v3 4/4] hw/ppc: Altered calls from oea_read to read

2021-05-06 Thread Lucas Mateus Castro (alqotel)
Changed spapr.c and pnv.c from calls of ppc_spr_t.oea_read to ppc_spr_t.name as oea_read is not available in !TCG builds. Signed-off-by: Lucas Mateus Castro (alqotel) --- hw/ppc/pnv.c | 2 +- hw/ppc/spapr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc/pnv.c

[PATCH v3 2/4] target/ppc: moved function out of mmu-hash64

2021-05-06 Thread Lucas Mateus Castro (alqotel)
The function ppc_hash64_filter_pagesizes has been moved from a function with prototype in mmu-hash64.h and implemented in mmu-hash64.c to a static function in hw/ppc/spapr_caps.c as it's only used in that file. Signed-off-by: Lucas Mateus Castro (alqotel) --- hw/ppc/spapr_caps.c | 59

[PATCH v3 1/4] hw/ppc: moved hcalls that depend on softmmu

2021-05-06 Thread Lucas Mateus Castro (alqotel)
. 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) --- hw/ppc/meson.build | 3 + hw/ppc/spapr_hcall.c | 608

[PATCH v3 0/4] hw/ppc: code motion to compile without TCG

2021-05-06 Thread Lucas Mateus Castro (alqotel)
ppc_hash64_filter_pagesizes and ppc_store_lpcr, * Changed registration verification in pnv_dt_core and spapr_dt_cpu. This patch aims to move and change some functions to make some progress toward enabling the disable-tcg option on PPC. Lucas Mateus Castro (alqotel) (4): hw/ppc: Moved hypercalls

[RFC PATCH v2 1/2] target/ppc: Moved functions out of mmu-hash64

2021-04-30 Thread Lucas Mateus Castro (alqotel)
situation)? Signed-off-by: Lucas Mateus Castro (alqotel) --- 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_rtas.c | 1 + target/ppc/meson.build | 1 + target/ppc/mmu-hash64.c | 81

[RFC PATCH v2 2/2] hw/ppc: Moved TCG code to spapr_hcall_tcg

2021-04-30 Thread Lucas Mateus Castro (alqotel)
), what is the advised way to deal with these duplications? Signed-off-by: Lucas Mateus Castro (alqotel) --- hw/ppc/meson.build | 3 + hw/ppc/spapr_hcall.c | 300 ++ hw/ppc/spapr_hcall_tcg.c | 343 +++ 3 files changed, 363

[RFC PATCH v2 0/2] hw/ppc: code motion to compile without TCG

2021-04-30 Thread Lucas Mateus Castro (alqotel)
is to progress toward enabling disable-tcg on PPC by solving errors in hw/ppc with that option. As a WIP comments are welcome. Lucas Mateus Castro (alqotel) (2): target/ppc: Moved functions out of mmu-hash64 hw/ppc: Moved TCG code to spapr_hcall_tcg hw/ppc/meson.build | 3 + hw/ppc

[RFC PATCH 0/4] hw/ppc: remove call to tcg-only function

2021-04-22 Thread Lucas Mateus Castro (alqotel)
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

[RFC PATCH 3/4] hw/ppc: updated build rules to use new file

2021-04-22 Thread Lucas Mateus Castro (alqotel)
Updated meson.build to compile spapr_hcall_tcg_stub.c instead of spapr_hcall.c when disable-tcg option is used Signed-off-by: Lucas Mateus Castro (alqotel) --- hw/ppc/meson.build | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/ppc/meson.build b/hw/ppc

[RFC PATCH 2/4] hw/ppc: Add kvm-only file spapr_hcall_tcg_stub.c

2021-04-22 Thread Lucas Mateus Castro (alqotel)
method to deal with this recommended? Also some functions should only cause a fatal error as KVM should intercept and handle their call, but as I'm not sure which ones I just did this to functions that called tcg-only code. Signed-off-by: Lucas Mateus Castro (alqotel) --- hw/ppc

[RFC PATCH 1/4] target/ppc: updated build options

2021-04-22 Thread Lucas Mateus Castro (alqotel)
updated meson.build to not compile tcg-only files Signed-off-by: Lucas Mateus Castro (alqotel) --- target/ppc/meson.build | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/target/ppc/meson.build b/target/ppc/meson.build index bbfef90e08..b369a6bcd0 100644

[RFC PATCH 4/4] target/ppc: transfered functions to non-tcg-only files

2021-04-22 Thread Lucas Mateus Castro (alqotel)
moved the functions ppc_store_lpcr and ppc_hash64_filter_pagesizes to common-misc.c so they can be used in a disable-tcg build and added the necessary includes to files that call them. Created ppc_(store|load)_vscr to be used by both tcg and kvm. Signed-off-by: Lucas Mateus Castro (alqotel

<    1   2   3