mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

The 32-bit sparc configuration (--arch sparc) crashes on
the kunit_fault_test. It's known that some architectures don't handle
deliberate segfaults in kernel mode well, so there's a config switch to
disable tests which rely upon it by default.
Use this for the sparc config, making sure the default config for it
passes.
Link: https://lore.kernel.org/r/20250416093826.1550040-1-davidgow@google.com
Fixes: 87c9c16317
("kunit: tool: add support for QEMU")
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Tested-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
14 lines
373 B
Python
14 lines
373 B
Python
from ..qemu_config import QemuArchParams
|
|
|
|
QEMU_ARCH = QemuArchParams(linux_arch='sparc',
|
|
kconfig='''
|
|
CONFIG_KUNIT_FAULT_TEST=n
|
|
CONFIG_SPARC32=y
|
|
CONFIG_SERIAL_SUNZILOG=y
|
|
CONFIG_SERIAL_SUNZILOG_CONSOLE=y
|
|
''',
|
|
qemu_arch='sparc',
|
|
kernel_path='arch/sparc/boot/zImage',
|
|
kernel_command_line='console=ttyS0 mem=256M',
|
|
extra_qemu_params=['-m', '256'])
|