Introduce `CONFIG_RISCV_GP_PURPOSE` choice to make sure that only one of `CONFIG_RISCV_GP` or `CONFIG_RISCV_CURRENT_VIA_GP` can be enabled, instead of relying of dependencies. To do that, introduce a new `CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING` that can be selected by SoC when it implemented global pointer (GP) initialization for relative addressing in its linker. `CONFIG_RISCV_GP` will be the default choice when `CONFIG_RISCV_SOC_HAS_GP_RELATIVE_ADDRESSING=y` Signed-off-by: Yong Cong Sin <ycsin@meta.com> Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
13 lines
330 B
YAML
13 lines
330 B
YAML
common:
|
|
ignore_faults: true
|
|
ignore_qemu_crash: true
|
|
tags: kernel riscv
|
|
platform_allow:
|
|
- qemu_riscv64/qemu_virt_riscv64/smp
|
|
tests:
|
|
arch.riscv64.riscv_gp.relative_addressing:
|
|
extra_configs:
|
|
- CONFIG_RISCV_GP=y
|
|
arch.riscv64.riscv_gp.thread_pointer:
|
|
extra_configs:
|
|
- CONFIG_RISCV_CURRENT_VIA_GP=y
|