|
31 | 31 | 'ppc64le',
|
32 | 32 | 'riscv',
|
33 | 33 | 's390',
|
| 34 | + 'sparc64', |
34 | 35 | 'x86',
|
35 | 36 | 'x86_64',
|
36 | 37 | ]
|
@@ -656,6 +657,17 @@ def __init__(self):
|
656 | 657 | self._qemu_args += ['-M', 's390-ccw-virtio']
|
657 | 658 |
|
658 | 659 |
|
| 660 | +class Sparc64QEMURunner(QEMURunner): |
| 661 | + |
| 662 | + def __init__(self): |
| 663 | + super().__init__() |
| 664 | + |
| 665 | + self.cmdline.append('console=ttyS0') |
| 666 | + self._default_kernel_path = Path('arch/sparc/boot/image') |
| 667 | + self._initrd_arch = self._qemu_arch = 'sparc64' |
| 668 | + self._qemu_args += ['-M', 'sun4u', '-cpu', 'TI UltraSparc IIi'] |
| 669 | + |
| 670 | + |
659 | 671 | class X86QEMURunner(QEMURunner):
|
660 | 672 |
|
661 | 673 | def __init__(self):
|
@@ -768,6 +780,7 @@ def guess_arch(kernel_arg):
|
768 | 780 | 'ELF 64-bit LSB executable, 64-bit PowerPC or cisco 7500, OpenPOWER ELF V2 ABI': 'ppc64le',
|
769 | 781 | 'ELF 64-bit LSB executable, UCB RISC-V': 'riscv',
|
770 | 782 | 'ELF 64-bit MSB executable, IBM S/390': 's390',
|
| 783 | + 'ELF 64-bit MSB executable, SPARC V9': 'sparc64', |
771 | 784 | 'ELF 32-bit LSB executable, Intel 80386': 'x86',
|
772 | 785 | 'ELF 64-bit LSB executable, x86-64': 'x86_64',
|
773 | 786 | } # yapf: disable
|
@@ -877,6 +890,7 @@ def parse_arguments():
|
877 | 890 | 'ppc64le': PowerPC64LEQEMURunner,
|
878 | 891 | 'riscv': RISCVQEMURunner,
|
879 | 892 | 's390': S390QEMURunner,
|
| 893 | + 'sparc64': Sparc64QEMURunner, |
880 | 894 | 'x86': X86QEMURunner,
|
881 | 895 | 'x86_64': X8664QEMURunner,
|
882 | 896 | }
|
|
0 commit comments