Skip to content

sysemu/replay: Restrict icount to TCG system emulation

Philippe Mathieu-Daudé qemu-arm qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 7 repliesIn review
  2. v25 patches 9 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Have icount_configure() return bool
- Addressed rth's review comments

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sysemu/cpu-timers: Have icount_configure() return a booleanaccel/tcg/icount-common.c include/sysemu/cpu-timers.h stubs/icount.c +1 more+21 -121 reply
2/6system/vl: Evaluate icount after accelerator options are parsedstubs/icount.c system/vl.c+9 -151 reply
3/6sysemu/cpu-timers: Introduce ICountMode enumeratoraccel/tcg/icount-common.c include/sysemu/cpu-timers.h stubs/icount.c +2 more+24 -191 reply
4/6target/arm: Ensure icount is enabled when emulating INST_RETIREDtarget/arm/helper.c+2 -01 reply
5/6util/async: Only call icount_notify_exit() if icount is enabledaccel/tcg/icount-common.c stubs/icount.c util/async.c+13 -91 reply
6/6sysemu/replay: Restrict icount to system emulationinclude/sysemu/cpu-timers.h include/sysemu/replay.h stubs/icount.c+9 -231 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] sysemu/replay: Restrict icount to TCG system emulation

Slightly simplify non-TCG and user emulation code.

This series still adds assertions in ARM INST_RETIRED PMU events, in order to bypass a linking failure. Better would be to restrict ARM PMU events to TCG. Left for another series.

Since v2:
- Have icount_configure() return bool
- Addressed rth's review comments

Since v1:
- Introduce enum of icount modes
- Fix ARM INST_RETIRED event

Philippe Mathieu-Daudé (6):
sysemu/cpu-timers: Have icount_configure() return a boolean system/vl: Evaluate icount after accelerator options are parsed sysemu/cpu-timers: Introduce ICountMode enumerator target/arm: Ensure icount is enabled when emulating INST_RETIRED util/async: Only call icount_notify_exit() if icount is enabled sysemu/replay: Restrict icount to system emulation

 include/sysemu/cpu-timers.h | 32 ++++++++++++++++++++++----------
 include/sysemu/replay.h     | 11 ++++++++---
 accel/tcg/icount-common.c   | 36 +++++++++++++++++++-----------------
 stubs/icount.c              | 29 ++---------------------------
 system/cpu-timers.c         |  2 +-
 system/vl.c                 | 19 ++++++++++---------
 target/arm/helper.c         |  5 ++++-
 util/async.c                | 16 +++++++++-------
 8 files changed, 75 insertions(+), 75 deletions(-)
Signature · 1 line
2.41.0