PPC64/TCG: Implement 'rfebb' instruction
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest15 patches 2 repliesIn review
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | target/ppc: add MMCR0 PMCC bits to hflagstarget/ target/ target/ | +16 | 0 replies | |
| 2/15 | target/ppc: add user read/write functions for MMCR0target/ target/ target/ +2 more | +128 | 0 replies | |
| 3/15 | target/ppc: add user read/write functions for MMCR2target/ target/ target/ +1 more | +99 | 0 replies | |
| 4/15 | target/ppc: adding user read/write functions for PMCstarget/ target/ target/ | +80 | 0 replies | |
| 5/15 | target/ppc: introduce PMU eventshw/ target/ target/ +2 more | +129 | 1 reply | |
| 6/15 | target/ppc: initialize PMUEvents on MMCR1 writetarget/ target/ target/ +3 more | +89 | 0 replies | |
| 7/15 | target/ppc: PMU basic cycle count for pseries TCGtarget/ target/ target/ +3 more | +119 | 0 replies | |
| 8/15 | target/ppc: enable PMU counter overflow with cycle eventstarget/ target/ | +75 | 0 replies | |
| 9/15 | target/ppc: enable PMU instruction counttarget/ target/ target/ +3 more | +100 | 0 replies | |
| 10/15 | target/ppc/power8-pmu.c: add PM_RUN_INST_CMPL (0xFA) eventtarget/ target/ target/ +2 more | +38 | 0 replies | |
| 11/15 | target/ppc: PMU: handle setting of PMCs while runningtarget/ target/ target/ +2 more | +42 | 0 replies | |
| 12/15 | target/ppc/power8-pmu.c: handle overflow bits when PMU is runningtarget/ | +24 | 0 replies | |
| 13/15 | PPC64/TCG: Implement 'rfebb' instructiontarget/ target/ target/ +3 more | +85 | 0 replies | |
| 14/15 | target/ppc: PMU Event-Based exception supporttarget/ target/ target/ | +56 | 0 replies | |
| 15/15 | target/ppc/excp_helper.c: EBB handling adjustmentstarget/ | +39 | 0 replies |
Reviews trailers per patch
1 of 15 patches has a Reviewed-by or Acked-by.
| Patch | Matheus Ferst |
|---|---|
| 1/15 | |
| 2/15 | |
| 3/15 | |
| 4/15 | |
| 5/15 | |
| 6/15 | |
| 7/15 | |
| 8/15 | |
| 9/15 | |
| 10/15 | |
| 11/15 | |
| 12/15 | |
| 13/15 | R-b |
| 14/15 | |
| 15/15 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/15] PPC64/TCG: Implement 'rfebb' instruction
This new version presents drastic design changes across all areas, most of them based on the feedback received in v3.
- TCG reviewers: for people looking to review only TCG related changes, here's a summmary of where are the TCG code in the series:
* Patches that have a lot of TCG/translation changes: 1-4, 9, 13
* Patches that have TCG/translation bits: 6, 7, 10, 11
- changes in v3:
The most drastic change is in the PMU. We're now working with an abstraction called PMUEvent that holds all the event information that the helper functions need to process it: the PMC, the event type and an overflow timer for cycle events. The PMU will always have 6 PMCEvent structs, one for each counter. Counters that aren't being used in that moment will have event type 'invalid'. These events are populated only when MMCR1 is written. Calculating the PMC values does not require multiple calls to 'get_PMC_event()', which has been deleted. In fact, this design change cut 60 lines of the power8-pmu.c file compared to the previous version, resulting in a more concise logic that will allow for easier extension of the PMU in the future.
Another change was related to PMCC bits and access control of problem state to PMU registers. We're now exposing both PMCC bits and doing a proper access control for groupA regs.
A new file was created to host the PMU translation code. The 300+ lines of the new power8-pmu-regs.c.inc file would be dumped into translate.c.
I've also changed the patch order. The exclusive EBB patches were pushed to the end of the series. I find it easier to add the placeholders for the PMC interrupt right at the start but populate them later on, after all the PMU logic has already been in place, instead of adding PMU code, then EBB, then go back to PMU code again.
All other changes were result of these decisions described above.
- patch 13 (former 08):
* renamed arg_RFEBB to arg_XL_s
* added Matheus' R-b
- other patches:
* The changes were so substancial that the patch breakdown with the diffs
turned out cumbersome and contraproductive.
- v3 link: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg01250.html
Daniel Henrique Barboza (13):
target/ppc: add MMCR0 PMCC bits to hflags
target/ppc: add user read/write functions for MMCR2 target/ppc: adding user read/write functions for PMCs target/ppc: introduce PMU events
target/ppc: initialize PMUEvents on MMCR1 write target/ppc: PMU basic cycle count for pseries TCG target/ppc: enable PMU counter overflow with cycle events target/ppc: enable PMU instruction count target/ppc/power8-pmu.c: add PM_RUN_INST_CMPL (0xFA) event target/ppc: PMU: handle setting of PMCs while running target/ppc/power8-pmu.c: handle overflow bits when PMU is running PPC64/TCG: Implement 'rfebb' instruction target/ppc/excp_helper.c: EBB handling adjustments
Gustavo Romero (2):
target/ppc: add user read/write functions for MMCR0 target/ppc: PMU Event-Based exception support
hw/ppc/spapr_cpu_core.c | 6 + target/ppc/cpu.h | 89 +++++- target/ppc/cpu_init.c | 38 +-- target/ppc/excp_helper.c | 92 ++++++ target/ppc/helper.h | 5 + target/ppc/helper_regs.c | 10 + target/ppc/insn32.decode | 5 + target/ppc/meson.build | 1 + target/ppc/power8-pmu-regs.c.inc | 320 +++++++++++++++++++ target/ppc/power8-pmu.c | 410 +++++++++++++++++++++++++ target/ppc/power8-pmu.h | 25 ++ target/ppc/spr_tcg.h | 12 + target/ppc/translate.c | 67 ++++ target/ppc/translate/branch-impl.c.inc | 33 ++ 14 files changed, 1093 insertions(+), 20 deletions(-) create mode 100644 target/ppc/power8-pmu-regs.c.inc create mode 100644 target/ppc/power8-pmu.c create mode 100644 target/ppc/power8-pmu.h create mode 100644 target/ppc/translate/branch-impl.c.inc
Signature · 1 line
2.31.1