On 5/22/2026 2:21 PM, Brian Cain wrote:
> The check_rev_gating test is compiled with -mv66, but the final linkage
> step does not specify the CPU version. The v22.1.0 toolchain contains a
> crt1.o compiled for v68, so the linker resolves the v66 + v68 linkage by
> selecting the highest version. The resulting binary then executes v68
> instructions without gating, leading to a segfault.
> 
> Fix this by passing -cpu v66 to QEMU when running the test, so that the
> emulated CPU matches the intended v66 target and the revision gating
> mechanism works as expected.
> 
> Suggested-by: Matheus Tavares Bernardino <[email protected]>
> Signed-off-by: Brian Cain <[email protected]>
> ---
>  tests/tcg/hexagon/Makefile.target | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to