qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] target/s390x: Fix and improve PER
@ 2024-05-02  5:44 Richard Henderson
  2024-05-02  5:44 ` [PATCH 01/14] target/s390x: Do not use unwind for per_check_exception Richard Henderson
                   ` (13 more replies)
  0 siblings, 14 replies; 26+ messages in thread
From: Richard Henderson @ 2024-05-02  5:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-s390x, iii, david, thuth

Split out from 

v1: https://lore.kernel.org/qemu-devel/20220906101747.344559-1-richard.henderson@linaro.org/
v4: https://lore.kernel.org/qemu-devel/20230220184052.163465-1-richard.henderson@linaro.org/

after I noticed that the testcase,

https://lore.kernel.org/qemu-devel/20221130174610.434590-2-iii@linux.ibm.com/

does not actually work under KVM.

In fact, support for PER_CR9_EVENT_BRANCH in TCG is broken.
This cleans it up and improves things so that when only one PER bit
is set (what I assume to be the normal state of afairs), we have
less overhead.

I'm not sure that all of the interactions are correct, particularly
with multiple PER triggers or other exceptions.  For that, we'd need
a more complex test case.  But at least branches match hardware now.


r~


Richard Henderson (14):
  target/s390x: Do not use unwind for per_check_exception
  target/s390x: Move cpu_get_tb_cpu_state out of line
  target/s390x: Update CR9 bits
  target/s390x: Record separate PER bits in TB flags
  target/s390x: Disable conditional branch-to-next for PER
  target/s390x: Introduce help_goto_indirect
  target/s390x: Simplify help_branch
  target/s390x: Split per_breaking_event from per_branch_*
  target/s390x: Raise exception from helper_per_branch
  target/s390x: Raise exception from per_store_real
  target/s390x: Fix helper_per_ifetch flags
  target/s390x: Simplify per_ifetch, per_check_exception
  target/s390x: Adjust check of noreturn in translate_one
  tests/tcg/s390x: Add per.S

 target/s390x/cpu.h                      |  83 ++++----
 target/s390x/helper.h                   |   8 +-
 target/s390x/cpu.c                      |  36 ++++
 target/s390x/tcg/excp_helper.c          |   2 +-
 target/s390x/tcg/misc_helper.c          |  68 ++++---
 target/s390x/tcg/translate.c            | 248 +++++++++---------------
 tests/tcg/s390x/Makefile.softmmu-target |   1 +
 tests/tcg/s390x/per.S                   |  82 ++++++++
 8 files changed, 302 insertions(+), 226 deletions(-)
 create mode 100644 tests/tcg/s390x/per.S

-- 
2.34.1



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2024-05-29 10:18 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02  5:44 [PATCH 00/14] target/s390x: Fix and improve PER Richard Henderson
2024-05-02  5:44 ` [PATCH 01/14] target/s390x: Do not use unwind for per_check_exception Richard Henderson
2024-05-22 20:46   ` Ilya Leoshkevich
2024-05-02  5:44 ` [PATCH 02/14] target/s390x: Move cpu_get_tb_cpu_state out of line Richard Henderson
2024-05-03  5:34   ` Thomas Huth
2024-05-22 20:48   ` Ilya Leoshkevich
2024-05-02  5:44 ` [PATCH 03/14] target/s390x: Update CR9 bits Richard Henderson
2024-05-03  8:34   ` Thomas Huth
2024-05-22 20:51   ` Ilya Leoshkevich
2024-05-02  5:44 ` [PATCH 04/14] target/s390x: Record separate PER bits in TB flags Richard Henderson
2024-05-22 21:33   ` Ilya Leoshkevich
2024-05-02  5:44 ` [PATCH 05/14] target/s390x: Disable conditional branch-to-next for PER Richard Henderson
2024-05-02  5:44 ` [PATCH 06/14] target/s390x: Introduce help_goto_indirect Richard Henderson
2024-05-02  5:44 ` [PATCH 07/14] target/s390x: Simplify help_branch Richard Henderson
2024-05-02  5:44 ` [PATCH 08/14] target/s390x: Split per_breaking_event from per_branch_* Richard Henderson
2024-05-02  5:44 ` [PATCH 09/14] target/s390x: Raise exception from helper_per_branch Richard Henderson
2024-05-22 22:45   ` Ilya Leoshkevich
2024-05-22 22:54     ` Richard Henderson
2024-05-02  5:44 ` [PATCH 10/14] target/s390x: Raise exception from per_store_real Richard Henderson
2024-05-02  5:44 ` [PATCH 11/14] target/s390x: Fix helper_per_ifetch flags Richard Henderson
2024-05-07 13:29   ` David Hildenbrand
2024-05-02  5:44 ` [PATCH 12/14] target/s390x: Simplify per_ifetch, per_check_exception Richard Henderson
2024-05-29 10:17   ` Thomas Huth
2024-05-02  5:44 ` [PATCH 13/14] target/s390x: Adjust check of noreturn in translate_one Richard Henderson
2024-05-02  5:44 ` [PATCH 14/14] tests/tcg/s390x: Add per.S Richard Henderson
2024-05-22 19:58   ` Ilya Leoshkevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).