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:
Michal Privoznik 2015-06-11 16:26:45 +02:00
parent 0b92974c15
commit c88bf57262

View File

@ -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);
}