From: Glenn Miles <milesg@linux.vnet.ibm.com>
To: qemu-ppc@nongnu.org
Cc: "Glenn Miles" <milesg@linux.vnet.ibm.com>,
qemu-devel@nongnu.org,
"Daniel Henrique Barboza" <danielhb413@gmail.com>,
"Cédric Le Goater" <clg@kaod.org>,
"Nicholas Piggin" <npiggin@gmail.com>,
"David Gibson" <david@gibson.dropbear.id.au>,
"Peter Maydell" <peter.maydell@linaro.org>
Subject: [PATCH v4 0/4] Add BHRB Facility Support
Date: Thu, 28 Mar 2024 14:23:52 -0500 [thread overview]
Message-ID: <20240328192356.2144086-1-milesg@linux.vnet.ibm.com> (raw)
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
--
2.31.8
next reply other threads:[~2024-03-28 19:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-28 19:23 Glenn Miles [this message]
2024-03-28 19:23 ` [PATCH v4 1/4] target/ppc: Add new hflags to support BHRB Glenn Miles
2024-03-28 19:23 ` [PATCH v4 2/4] target/ppc: Add recording of taken branches to BHRB Glenn Miles
2024-03-28 19:23 ` [PATCH v4 3/4] target/ppc: Add clrbhrb and mfbhrbe instructions Glenn Miles
2024-03-28 19:23 ` [PATCH v4 4/4] target/ppc: Add migration support for BHRB Glenn Miles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240328192356.2144086-1-milesg@linux.vnet.ibm.com \
--to=milesg@linux.vnet.ibm.com \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=david@gibson.dropbear.id.au \
--cc=npiggin@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.