mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
sim: cris: always search for local rvdummy tool
If the board info sets the sim to a basename that is found via $PATH (which is the default dejagnu behavior), the logic here to use its dirname to find rvdummy fails because it looks for `./rvdummy`. So switch it to always use the local build of rvdummy which is the one we want to be testing against in the first place. If we get a request for testing against a different setup, we can figure out & document the needs at that point, and then setup some config knobs to control it.
This commit is contained in:
@ -122,14 +122,8 @@ if [istarget cris*-*-*] {
|
|||||||
global SIMFLAGS_FOR_TARGET
|
global SIMFLAGS_FOR_TARGET
|
||||||
set has_rv_and_cris [sim_has_rv_and_cris]
|
set has_rv_and_cris [sim_has_rv_and_cris]
|
||||||
|
|
||||||
# See the logic in sim-defs.exp for more details.
|
global builddir
|
||||||
set sim [board_info target sim]
|
set rvdummy "$builddir/cris/rvdummy"
|
||||||
if [string equal "" $sim] {
|
|
||||||
global builddir
|
|
||||||
set rvdummy "$builddir/cris/rvdummy"
|
|
||||||
} else {
|
|
||||||
set rvdummy "[file dirname [board_info target sim]]/rvdummy"
|
|
||||||
}
|
|
||||||
|
|
||||||
# All machines we test and the corresponding assembler option.
|
# All machines we test and the corresponding assembler option.
|
||||||
# We'll only ever test v10 and higher here.
|
# We'll only ever test v10 and higher here.
|
||||||
|
Reference in New Issue
Block a user