On 4/3/23 07:46, Peter Maydell wrote:
The 'singlestep' HMP command is confusing, because it
doesn't
actually have anything to do with single-stepping the CPU. What it
does do is force TCG emulation to put one guest instruction in each
TB, which can be useful in some situations.
Create a new HMP command 'one-insn-per-tb', so we can document that
'singlestep' is just a deprecated synonym for it, and eventually
perhaps drop it.
We aren't obliged to do deprecate-and-drop for HMP commands,
but it's easy enough to do so, so we do.
Signed-off-by: Peter Maydell<peter.maydell(a)linaro.org>
---
docs/about/deprecated.rst | 9 +++++++++
include/monitor/hmp.h | 2 +-
softmmu/runstate-hmp-cmds.c | 2 +-
tests/qtest/test-hmp.c | 1 +
hmp-commands.hx | 25 +++++++++++++++++++++----
5 files changed, 33 insertions(+), 6 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson(a)linaro.org>
r~