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
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dejagnu/arc-common.exp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ proc arc_get_cflags {} {
lappend cflags --specs=hl.specs
} elseif {[board_info $board arc,hostlink] == "semihost"} {
lappend cflags --specs=semihost.specs --specs=arcv.specs \
-mabi=ilp32 -march=rv32im_zba_zbb_zbs_zca_zcb_zcmp_zicsr \
-T arcv.ld
} else {
lappend cflags --specs=nosys.specs
Expand Down
10 changes: 9 additions & 1 deletion dejagnu/baseboards/arc-sim-nsimdrv.exp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ if {[check_target_arc64_64]} {
-p nsim_isa_core=3 \
-on nsim_isa_sat
} elseif {[check_target_arcv]} {
# Not used.
# The ARCV nSIM configuration is done through a wrapper.
# The wrapper/simulator name is defined by "setup_sim riscv" which will be
# the target alias name with "-run" suffix. (e.g., riscv64-unknown-elf-run)
set ext \
"-all.i.zicsr.zifencei.zihintpause.b.zca.zcb.zcmp.zcmt.a.m.zbb.zba.zbs"
lappend nsim_flags \
Expand Down Expand Up @@ -292,7 +296,11 @@ if {[info exists env(ARC_NSIM_OPTS) ]} {
}

# Setup nSIM.
set_board_info sim "$nsim_bin [join $nsim_flags]"
if {[check_target_arcv]} {
setup_sim riscv
} else {
set_board_info sim "$nsim_bin [join $nsim_flags]"
}
# is_simulator should be set already by 'load_generic_config "sim"'. Do it here
# to be safe.
set_board_info is_simulator 1
Expand Down