Add loongarch support

Define the judgment function of
loongarch architecture.

Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
This commit is contained in:
Xianglai Li 2023-12-13 04:43:24 -05:00 committed by Pavel Hrdina
parent eee8d09dfe
commit d2cf01b3eb

View File

@ -77,6 +77,8 @@ class DomainOs(XMLBuilder):
return self.arch == "riscv64" or self.arch == "riscv32"
def is_riscv_virt(self):
return self.is_riscv() and str(self.machine).startswith("virt")
def is_loongarch64(self):
return self.arch == "loongarch64"
##################
# XML properties #