mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
virQEMUCapsArch: openrisc vs or32
With a few exceptions, we assume that qemu binary for given architecture has form of qemu-system-$arch. Well, openrisc is yet another exception. It's binary is called qemu-system-or32. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0b92974c15
commit
c88bf57262
@ -358,6 +358,8 @@ static virArch virQEMUCapsArchFromString(const char *arch)
|
||||
return VIR_ARCH_I686;
|
||||
if (STREQ(arch, "arm"))
|
||||
return VIR_ARCH_ARMV7L;
|
||||
if (STREQ(arch, "or32"))
|
||||
return VIR_ARCH_OR32;
|
||||
|
||||
return virArchFromString(arch);
|
||||
}
|
||||
@ -369,6 +371,8 @@ static const char *virQEMUCapsArchToString(virArch arch)
|
||||
return "i386";
|
||||
else if (arch == VIR_ARCH_ARMV7L)
|
||||
return "arm";
|
||||
else if (arch == VIR_ARCH_OR32)
|
||||
return "or32";
|
||||
|
||||
return virArchToString(arch);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user