From 61a3a7da5d78be7a9b0a0e42fdf99c6cea836c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 18 Nov 2020 16:53:50 +0000 Subject: [PATCH] tests: add fake host CPU for sparc architecture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- tests/testutilshostcpus.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; }