Skip to content

Commit 694ebed

Browse files
kolerovanthony-kolesov
authored andcommitted
Set is_simulator flag for nsim-gdb
Option is-simulator which was used in nSIM board is wrong - neither DejaGNU, not any of testsuites use it. They do recognize is_simualtor however. Signed-off-by: Yuriy Kolerov <[email protected]> Signed-off-by: Anton Kolesov <[email protected]>
1 parent 31fc730 commit 694ebed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dejagnu/baseboards/arc-nsim.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ if { $tool == "gdb" } {
105105

106106
# Tests may recognize this board as a simulator and reduce amount
107107
# of computations.
108-
set_board_info is-simulator 1
108+
set_board_info is_simulator 1
109109

110110
# vim: noexpandtab sts=4 ts=8:

dejagnu/baseboards/arc-sim-nsimdrv.exp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ if { [info exists env(ARC_NSIM_OPTS) ] } {
6868
# Setup the MetaWare simulator.
6969
set_board_info sim "$::env(NSIM_HOME)/bin/nsimdrv ${xarchflags}"
7070
set_board_info sim_time_limit 120
71-
set_board_info is-simulator 1
71+
# is_simulator should be set already by 'load_generic_config "sim"'. Do it here
72+
# to be safe.
73+
set_board_info is_simulator 1
7274

7375
# nsimdrv doesn't return application's exit code as it's own exit code, thus it
7476
# is required to use status wrapper, that will print "***EXIT <number>" message.

0 commit comments

Comments
 (0)