Skip to content

arcv: Remove hardcoded ABI and ARCH flags. #661

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Draft
wants to merge 2 commits into
base: arc-releases
Choose a base branch
from

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 <luiss@synopsys.com>
@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 <luiss@synopsys.com>
@luismgsilva luismgsilva force-pushed the luis/nsim-wrapper branch from fcece99 to ed63f2c Compare May 2, 2025 13:29
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant