mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 10:05:31 +00:00
tests: add fake host CPU for sparc architecture
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
d2d737551a
commit
61a3a7da5d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user