softmmu/qtest: Move the target-specific pseries RTAS code out of qtest.c
authorThomas Huth <thuth@redhat.com>
Tue, 11 Apr 2023 18:34:16 +0000 (20:34 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 20 Apr 2023 09:25:32 +0000 (11:25 +0200)
commitc7a6bf5d921a25bf1d59143e63b453affe6c8892
treee29f8b44ecd5c194fb7e164c6a1b2a0705244cca
parent8708c46306b8422eb0cbb882f88cdad29c041725
softmmu/qtest: Move the target-specific pseries RTAS code out of qtest.c

Ideally, qtest.c should be independent from target specific code, so
we only have to compile it once for all targets. Thus start improving
the situation by moving the pseries related code to hw/ppc/spapr_rtas.c
instead and allow target code to register a callback handler for such
target specific commands.

Message-Id: <20230411183418.1640500-2-thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/ppc/spapr_rtas.c
include/sysemu/qtest.h
softmmu/qtest.c