tests/qtest: Move common define from libqos-spapr.h to new ppc-util.h
The spapr QEMU machine defaults is useful outside libqos, so create a new header for ppc specific qtests and move it there. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
046a64b980
commit
3e40bdb15e
@ -15,7 +15,7 @@
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "libqos/libqos-spapr.h"
|
||||
#include "ppc-util.h"
|
||||
|
||||
static const uint8_t bios_avr[] = {
|
||||
0x88, 0xe0, /* ldi r24, 0x08 */
|
||||
|
@ -9,11 +9,4 @@ QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...)
|
||||
G_GNUC_PRINTF(1, 2);
|
||||
void qtest_spapr_shutdown(QOSState *qs);
|
||||
|
||||
/* List of capabilities needed to silence warnings with TCG */
|
||||
#define PSERIES_DEFAULT_CAPABILITIES \
|
||||
"cap-cfpc=broken," \
|
||||
"cap-sbbc=broken," \
|
||||
"cap-ibs=broken," \
|
||||
"cap-ccf-assist=off,"
|
||||
|
||||
#endif
|
||||
|
19
tests/qtest/ppc-util.h
Normal file
19
tests/qtest/ppc-util.h
Normal file
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* PowerPC misc useful things
|
||||
*
|
||||
* Copyright (c) 2024, IBM Corporation.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef PPC_UTIL_H
|
||||
#define PPC_UTIL_H
|
||||
|
||||
/* List of capabilities needed to silence warnings with TCG */
|
||||
#define PSERIES_DEFAULT_CAPABILITIES \
|
||||
"cap-cfpc=broken," \
|
||||
"cap-sbbc=broken," \
|
||||
"cap-ibs=broken," \
|
||||
"cap-ccf-assist=off,"
|
||||
|
||||
#endif /* PPC_UTIL_H */
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "libqtest.h"
|
||||
#include "libqos/libqos-spapr.h"
|
||||
#include "ppc-util.h"
|
||||
|
||||
#define MAGIC 0xcafec0de
|
||||
#define ADDRESS 0x4000
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include <glib/gstdio.h>
|
||||
#include "libqtest.h"
|
||||
#include "boot-sector.h"
|
||||
#include "libqos/libqos-spapr.h"
|
||||
#include "ppc-util.h"
|
||||
|
||||
#define NETNAME "net0"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user