The vega10_kvm.py script configures a system to run in GPUFS mode. To create a checkpoint, an m5 checkpoint instruction has to be added to the script manually. This commit automatically adds the instruction if the checkpoint-dir flag is set Change-Id: I552fae6e98f6ec33a70a5b384242e87edb0e9526 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/70078 Reviewed-by: Matthew Poremba <matthew.poremba@amd.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com>