jtag_vpi: added an option to stop simulation on exit 07/5407/4
authorJan Matyas <matyas@codasip.com>
Wed, 22 Jan 2020 07:50:36 +0000 (08:50 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 15 Feb 2020 15:32:53 +0000 (15:32 +0000)
commit4882acef80d179628e31ee94e931f8fc2ac2698e
treed474f1ab2973e58885788e6eff4b3289286cf8b8
parente8c747048fed28edf1900df56e8ffd5ba77b221e
jtag_vpi: added an option to stop simulation on exit

Command CMD_STOP_SIMU had been defined in jtag_vpi for a long time
(since the beginning?) but has not been utilized until now.
Its purpose is to signal to the jtag_vpi server (i.e. the RTL
simulation software) that the simulation shall be stopped.

This commit adds a TCL configuration command that selects whether
CMD_STOP_SIMU will be sent to the jtag_vpi server when OpenOCD is
about to exit. This functionality is off by default to maintain
identical behavior as in previous OpenOCD versions, unless the user
enables it explicitly.

Change-Id: If3894af6efa61038ccf6c9191f664e2128f2ef11
Signed-off-by: Jan Matyas <matyas@codasip.com>
Reviewed-on: http://openocd.zylin.com/5407
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/jtag/drivers/jtag_vpi.c