Skip to content

Conversation

@luismgsilva
Copy link
Member

By removing the hardcoded -mabi=ilp32 and
-march=rv32im_zba_zbb_zbs_zca_zcb_zcmp_zicsr options from the semihost
compiler flags, the compiler will now use its default ABI and
architecture settings unless specified elsewhere. This resolves the
problem where these hardcoded values were overriding the specific ABI
and architecture options required by certain tests.

Modified the nSIM setup logic to call setup_sim riscv when targeting
ARCV. It returns a simulator named with the target alias and a "-run"
suffix (for example, riscv64-unknown-elf-run), which can serve as a
wrapper for the simulator.

For non-ARCv targets, retain the previous behavior of setting the sim
board info directly.

By removing the hardcoded `-mabi=ilp32` and
`-march=rv32im_zba_zbb_zbs_zca_zcb_zcmp_zicsr` options from the semihost
compiler flags, the compiler will now use its default ABI and
architecture settings unless specified elsewhere. This resolves the
problem where these hardcoded values were overriding the specific ABI
and architecture options required by certain tests.

Signed-off-by: Luis Silva <[email protected]>
@luismgsilva luismgsilva self-assigned this Apr 30, 2025
@luismgsilva luismgsilva force-pushed the luis/nsim-wrapper branch from 89a8d8b to fcece99 Compare May 2, 2025 13:26
Modified the nSIM setup logic to call setup_sim riscv when targeting
ARCV. It returns a simulator named with the target alias and a "-run"
suffix (for example, riscv64-unknown-elf-run), which can serve as a
wrapper for the simulator.

For non-ARCv targets, retain the previous behavior of setting the sim
board info directly.

Signed-off-by: Luis Silva <[email protected]>
@luismgsilva luismgsilva force-pushed the luis/nsim-wrapper branch from fcece99 to ed63f2c Compare May 2, 2025 13:29
@luismgsilva luismgsilva marked this pull request as ready for review June 11, 2025 16:33
Copy link
Collaborator

@yaroslavsadin yaroslavsadin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok by me

@yaroslavsadin yaroslavsadin self-requested a review June 11, 2025 17:17
@yaroslavsadin yaroslavsadin merged commit b2cf6ba into arc-releases Jun 12, 2025
1 check passed
@yaroslavsadin yaroslavsadin deleted the luis/nsim-wrapper branch June 12, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants