mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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,
|
.threads = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static virCPUDef cpuSparcData = {
|
||||||
|
.type = VIR_CPU_TYPE_HOST,
|
||||||
|
.arch = VIR_ARCH_SPARC,
|
||||||
|
.sockets = 1,
|
||||||
|
.cores = 1,
|
||||||
|
.threads = 1,
|
||||||
|
};
|
||||||
|
|
||||||
static inline virCPUDefPtr
|
static inline virCPUDefPtr
|
||||||
testUtilsHostCpusGetDefForModel(const char *model)
|
testUtilsHostCpusGetDefForModel(const char *model)
|
||||||
{
|
{
|
||||||
@ -161,6 +169,8 @@ testUtilsHostCpusGetDefForArch(virArch arch)
|
|||||||
return virCPUDefCopy(&cpuS390Data);
|
return virCPUDefCopy(&cpuS390Data);
|
||||||
else if (arch == VIR_ARCH_AARCH64)
|
else if (arch == VIR_ARCH_AARCH64)
|
||||||
return virCPUDefCopy(&cpuAarch64Data);
|
return virCPUDefCopy(&cpuAarch64Data);
|
||||||
|
else if (arch == VIR_ARCH_SPARC)
|
||||||
|
return virCPUDefCopy(&cpuSparcData);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user