mbox series

[for-8.1,0/3] Make softmmu/qtest.c target independent

Message ID 20230411183418.1640500-1-thuth@redhat.com
Headers show
Series Make softmmu/qtest.c target independent | expand

Message

Thomas Huth April 11, 2023, 6:34 p.m. UTC
For being able to build universal binaries one day, we need certain
files to be independent from the emulated target. qtest.c is one of
these files. Rework the target specific code in there so we can
finally move it from "specific_ss" to "softmmu_ss".

Thomas Huth (3):
  softmmu/qtest: Move the target-specific pseries RTAS code out of
    qtest.c
  include/exec: Provide the tswap() functions for target independent
    code, too
  softmmu: Make qtest.c target independent

 include/exec/cpu-all.h | 64 +------------------------------------
 include/exec/tswap.h   | 72 ++++++++++++++++++++++++++++++++++++++++++
 include/sysemu/qtest.h |  4 +++
 hw/ppc/spapr_rtas.c    | 29 +++++++++++++++++
 softmmu/qtest.c        | 51 +++++++++++-------------------
 softmmu/meson.build    |  2 +-
 6 files changed, 126 insertions(+), 96 deletions(-)
 create mode 100644 include/exec/tswap.h

Comments

Richard Henderson April 12, 2023, 10:13 a.m. UTC | #1
On 4/11/23 20:34, Thomas Huth wrote:
> For being able to build universal binaries one day, we need certain
> files to be independent from the emulated target. qtest.c is one of
> these files. Rework the target specific code in there so we can
> finally move it from "specific_ss" to "softmmu_ss".
> 
> Thomas Huth (3):
>    softmmu/qtest: Move the target-specific pseries RTAS code out of
>      qtest.c
>    include/exec: Provide the tswap() functions for target independent
>      code, too
>    softmmu: Make qtest.c target independent

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~