Skip to content

Add BHRB Facility Support

Glenn Miles qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 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+50 -92 replies
2/4target/ppc: Add recording of taken branches to BHRBtarget/ppc/cpu.h target/ppc/cpu_init.c target/ppc/helper_regs.c +5 more+205 -123 replies
3/4target/ppc: Add clrbhrb and mfbhrbe instructionstarget/ppc/cpu.h target/ppc/helper.h target/ppc/misc_helper.c +1 more+61 -00 replies
3/4target/ppc: Add clrbhrb and mfbhrbe instructionstarget/ppc/cpu.h target/ppc/helper.h target/ppc/misc_helper.c +1 more+61 -02 replies
4/4target/ppc: Add migration support for BHRBtarget/ppc/machine.c+23 -00 replies
4/4target/ppc: Add migration support for BHRBtarget/ppc/machine.c+23 -02 replies
4/4target/ppc: Add migration support for BHRBtarget/ppc/machine.c+23 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 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]).

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                  |  45 ++++++++-
 target/ppc/helper.h                    |   5 +
 target/ppc/helper_regs.c               |  44 ++++++++
 target/ppc/helper_regs.h               |   1 +
 target/ppc/machine.c                   |  25 ++++-
 target/ppc/misc_helper.c               |  43 ++++++++
 target/ppc/power8-pmu-regs.c.inc       |   5 +
 target/ppc/power8-pmu.c                |  17 +++-
 target/ppc/power8-pmu.h                |  11 +-
 target/ppc/spr_common.h                |   1 +
 target/ppc/translate.c                 | 133 +++++++++++++++++++++++--
 target/ppc/translate/branch-impl.c.inc |   2 +-
 13 files changed, 337 insertions(+), 19 deletions(-)
Signature · 1 line
2.31.1