Skip to content

Commit f06d923

Browse files
Shahab Vaheditemap
authored andcommitted
Add arc32 target for nSIM
1 parent e20da74 commit f06d923

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

dejagnu/baseboards/arc-sim-nsimdrv.exp

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,30 @@ if [ string match arceb-* $target_triplet ] {
127127
}
128128

129129
# Select processor family. Also set nsim_isa_sat, which is mandatory for GCC.
130-
if { [check_target_arc64] } {
130+
if { [check_target_arc64_64] } {
131131
lappend nsim_flags \
132-
-prop=nsim_isa_family=arc64 \
132+
-p nsim_isa_family=arc64 \
133133
-p nsim_isa_div_rem_option=2 \
134-
-p nsim_isa_mpy_option=9 \
135-
-p nsim_isa_mpy64=1 \
136-
-p nsim_isa_div64_option=1 \
137-
-p nsim_isa_has_fp=1 \
138-
-p nsim_isa_fp_vec_option=1 \
139-
-p nsim_isa_fp_hp_option=1 \
140-
-p nsim_isa_fp_dp_option=1 \
141-
-p nsim_isa_fp_div_option=1 \
142-
-p nsim_isa_fp_num_regs=32
134+
-p nsim_isa_mpy_option=9 \
135+
-p nsim_isa_mpy64=1 \
136+
-p nsim_isa_div64_option=1 \
137+
-p nsim_isa_has_fp=1 \
138+
-p nsim_isa_fp_vec_option=1 \
139+
-p nsim_isa_fp_hp_option=1 \
140+
-p nsim_isa_fp_dp_option=1 \
141+
-p nsim_isa_fp_div_option=1 \
142+
-p nsim_isa_fp_num_regs=32 \
143+
-p nsim_isa_unaligned_option=1
144+
} elseif { [check_target_arc64_32] } {
145+
lappend nsim_flags \
146+
-p nsim_isa_family=av3hs \
147+
-p nsim_isa_pc_size=32 \
148+
-p nsim_isa_addr_size=32 \
149+
-p nsim_isa_swap_option=1 \
150+
-p nsim_isa_bitscan_option=1 \
151+
-p nsim_isa_div_rem_option=2 \
152+
-p nsim_isa_mpy_option=9 \
153+
-p nsim_isa_unaligned_option=1
143154
} elseif { [check_target_arc700] } {
144155
# GCC requires multiplier for ARC 700.
145156
lappend nsim_flags \

dejagnu/tool-extra.exp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ proc compile_quarkse_em_nsim_apex { } {
8787
}
8888

8989
# Return 1 if we compile for ARC64
90-
proc check_target_arc64 { } {
91-
return [check_target_arc "__ARC64__"]
90+
proc check_target_arc64_64 { } {
91+
return [check_target_arc "__ARC64_ARCH64__"]
92+
}
93+
94+
# Return 1 if we compile for ARC64
95+
proc check_target_arc64_32 { } {
96+
return [check_target_arc "__ARC64_ARCH32__"]
9297
}
9398

9499
# Return 1 if we compile for ARCv2 HS

0 commit comments

Comments
 (0)