soc: riscv-privileged: support SoCs without reset vector

RISCV_PRIVILEGED implicitly depends on INCLUDE_RESET_VECTOR.
Remove that dependency by adding support for SoCs that
do not need the `__reset` stub.

Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
This commit is contained in:
Marcin Szymczyk 2024-04-03 15:36:59 +02:00 committed by Carles Cufí
parent 030a8b1830
commit 75f5d98002

View file

@ -97,5 +97,10 @@ SECTION_FUNC(vectors, __start)
#endif /* CONFIG_RISCV_VECTORED_MODE */
#if CONFIG_INCLUDE_RESET_VECTOR
/* Jump to __reset */
tail __reset
#else
/* Jump to __initialize */
tail __initialize
#endif