提交 c88bf572 编写于 作者: M Michal Privoznik

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: NMichal Privoznik <mprivozn@redhat.com>
上级 0b92974c
...@@ -358,6 +358,8 @@ static virArch virQEMUCapsArchFromString(const char *arch) ...@@ -358,6 +358,8 @@ static virArch virQEMUCapsArchFromString(const char *arch)
return VIR_ARCH_I686; return VIR_ARCH_I686;
if (STREQ(arch, "arm")) if (STREQ(arch, "arm"))
return VIR_ARCH_ARMV7L; return VIR_ARCH_ARMV7L;
if (STREQ(arch, "or32"))
return VIR_ARCH_OR32;
return virArchFromString(arch); return virArchFromString(arch);
} }
...@@ -369,6 +371,8 @@ static const char *virQEMUCapsArchToString(virArch arch) ...@@ -369,6 +371,8 @@ static const char *virQEMUCapsArchToString(virArch arch)
return "i386"; return "i386";
else if (arch == VIR_ARCH_ARMV7L) else if (arch == VIR_ARCH_ARMV7L)
return "arm"; return "arm";
else if (arch == VIR_ARCH_OR32)
return "or32";
return virArchToString(arch); return virArchToString(arch);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册