Skip to content

Commit 5feccb4

Browse files
author
Claudiu Zissulescu
committed
Allow user to overwrite or not simulation environment context
This patch renders absolete the requirements of having the environment variable ARC_MULTILIB_OPTIONS defined. Thus, when it is not defined, the default procesor will be used. The default processor is given by --with-cpu flag passed to the configure script when we build the compiler. This is requiered when we want to run specific tests which are checking for the default gcc driver parameters. The simulator parameters can be addnotate from site.exp. Hence, we can ask to have the simulation traces whenever we want. 2016-01-08 Claudiu Zissulescu <[email protected]> * dejagnu/baseboards/arc-sim-nsimdrv.exp (ARC_MULTILIB_OPTIONS): Now is optional. (nsim_flags): Can be overwrite from site.exp.
1 parent 87794af commit 5feccb4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dejagnu/baseboards/arc-sim-nsimdrv.exp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ load_generic_config "sim"
3030
load_base_board_description "basic-sim"
3131

3232
# Any multilib options are set in an environment variable.
33-
process_multilib_options "$env(ARC_MULTILIB_OPTIONS)"
33+
if { [ info exists env(ARC_MULTILIB_OPTIONS) ] } {
34+
process_multilib_options "$env(ARC_MULTILIB_OPTIONS)"
35+
} else {
36+
process_multilib_options ""
37+
}
3438

3539
# We need extra procedures to determine for which cpu we simulate.
3640
search_and_load_file "library file" "tool-extra.exp" ${boards_dir}
@@ -39,7 +43,9 @@ set xldflags "-Wl,--defsym=__DEFAULT_HEAP_SIZE=256m \
3943
-Wl,--defsym=__DEFAULT_STACK_SIZE=1024m"
4044

4145
# Set common defaults
42-
set nsim_flags {}
46+
f ![info exists nsim_flags] {
47+
set nsim_flags {}
48+
}
4349
lappend nsim_flags \
4450
-on nsim_isa_spfp \
4551
-on nsim_isa_dpfp \

0 commit comments

Comments
 (0)