From: Daniel P. Berrangé Date: Wed, 18 Nov 2020 16:53:50 +0000 (+0000) Subject: tests: add fake host CPU for sparc architecture X-Git-Tag: v6.10.0-rc1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61a3a7da5d78be7a9b0a0e42fdf99c6cea836c6d;p=thirdparty%2Flibvirt.git tests: add fake host CPU for sparc architecture Signed-off-by: Daniel P. Berrangé --- diff --git a/tests/testutilshostcpus.h b/tests/testutilshostcpus.h index a54b181c09..91d9c153d9 100644 --- a/tests/testutilshostcpus.h +++ b/tests/testutilshostcpus.h @@ -130,6 +130,14 @@ static virCPUDef cpuS390Data = { .threads = 1, }; +static virCPUDef cpuSparcData = { + .type = VIR_CPU_TYPE_HOST, + .arch = VIR_ARCH_SPARC, + .sockets = 1, + .cores = 1, + .threads = 1, +}; + static inline virCPUDefPtr testUtilsHostCpusGetDefForModel(const char *model) { @@ -161,6 +169,8 @@ testUtilsHostCpusGetDefForArch(virArch arch) return virCPUDefCopy(&cpuS390Data); else if (arch == VIR_ARCH_AARCH64) return virCPUDefCopy(&cpuAarch64Data); + else if (arch == VIR_ARCH_SPARC) + return virCPUDefCopy(&cpuSparcData); return NULL; }