Skip to content

Add BHRB Facility Support

Glenn Miles qemu-devel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew
  2. v34 patches 6 repliesSuperseded
  3. v24 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 of 4 patches2 repliesSuperseded

Changes from previous version from the cover letter

- Rebased on latest master head (req'd changing cpu_env to tcg_env)
- Fixed compiler errors for non ppc64-softmmu targets
- Fixed compiler errors from compiling on 32-bit platforms

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/ppc: Add new hflags to support BHRBtarget/ppc/cpu.h target/ppc/cpu_init.c target/ppc/helper.h +7 more+67 -90 replies
2/4target/ppc: Add recording of taken branches to BHRBtarget/ppc/cpu.h target/ppc/cpu_init.c target/ppc/power8-pmu.c +3 more+186 -80 replies
3/4target/ppc: Add clrbhrb and mfbhrbe instructionstarget/ppc/cpu.h target/ppc/helper.h target/ppc/insn32.decode +3 more+112 -00 replies
4/4target/ppc: Add migration support for BHRBtarget/ppc/machine.c+21 -00 replies

Reviews trailers per patch

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

PatchNicholas Piggin
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/4] Add BHRB Facility Support

This is a series of patches for adding support for the Branch History Rolling Buffer (BHRB) facility. This was added to the Power ISA starting with version 2.07. Changes were subsequently made in version 3.1 to limit BHRB recording to instructions run in problem state only and to add a control bit to disable recording (MMCRA[BHRBRD]).

Changes from previous version:
- Rebased on latest master head (req'd changing cpu_env to tcg_env)
- Fixed compiler errors for non ppc64-softmmu targets
- Fixed compiler errors from compiling on 32-bit platforms

Glenn Miles (4):
target/ppc: Add new hflags to support BHRB target/ppc: Add recording of taken branches to BHRB target/ppc: Add clrbhrb and mfbhrbe instructions target/ppc: Add migration support for BHRB

 target/ppc/cpu.h                       |  24 ++++++
 target/ppc/cpu_init.c                  |  41 +++++++++-
 target/ppc/helper.h                    |   8 ++
 target/ppc/helper_regs.c               |  37 +++++++++
 target/ppc/insn32.decode               |   8 ++
 target/ppc/machine.c                   |  23 +++++-
 target/ppc/misc_helper.c               |  50 ++++++++++++
 target/ppc/power8-pmu-regs.c.inc       |   5 ++
 target/ppc/power8-pmu.c                |  48 +++++++++++-
 target/ppc/power8-pmu.h                |  11 ++-
 target/ppc/spr_common.h                |   1 +
 target/ppc/translate.c                 | 102 +++++++++++++++++++++++--
 target/ppc/translate/bhrb-impl.c.inc   |  43 +++++++++++
 target/ppc/translate/branch-impl.c.inc |   2 +-
 14 files changed, 386 insertions(+), 17 deletions(-)
 create mode 100644 target/ppc/translate/bhrb-impl.c.inc
Signature · 1 line
2.31.8