runfvp: Stop the FVP when telnet shuts down cleanly

At the moment, when using the --console flag, if telnet is shut down
cleanly (i.e. by typing "quit" at the prompt instead of Ctrl+C), runfvp
still waits on the FVP to exit of its own accord, so hangs.

Move the fvp.run() call so that when telnet quits, it immediately
proceeds to shut down the FVP.

Issue-Id: SCM-4954
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Change-Id: I2169c99586a1eebc2c6ab4b2e15fb0c769fc81a8
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Peter Hoyes authored and Jon Mason committed 2022-08-03 09:34:25 -04:00
1 parent 844696e401
commit 025fb194f5
1 file changed
+1 -1
+1 -1
View File
@@ -64,8 +64,8 @@ async def start_fvp(args, config, extra_args):
logger.debug(f"Telnet quit, cancelling tasks")
else:
fvp.add_line_callback(lambda line: print(line))
await fvp.run()
await fvp.run()
finally:
await fvp.stop()