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

Thomas Huth posted 3 patches 1 year ago
Failed in applying to current master (apply log)
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
[PATCH for-8.1 0/3] Make softmmu/qtest.c target independent
Posted by Thomas Huth 1 year ago
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

-- 
2.31.1
Re: [PATCH for-8.1 0/3] Make softmmu/qtest.c target independent
Posted by Richard Henderson 1 year ago
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~