Skip to content

target/s390x: fix, improve and implement some more instructions

Aurelien Jarno qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest30 patches 12 repliesIn review
  2. v229 patches 23 repliesSuperseded
  3. v126 patches 37 repliesSuperseded

Changes in v3 from the cover letter

- rename _VADDR_PX into VADDR_PX in IPTE patch
- check for alignment in LOAD PAIR FROM QUADWORD using MO_ALIGN16
- check for alignment in STORE PAIR TO QUADWORD using MO_ALIGN16
- remove side effect flags from COMPARE AND SIGNAL helpers
- pass the tst value as an argument ot the TRANSLATE ONE/TWO TO ONE/TWO helper and check for the M3 value
- add a patch to enable the ETF2-Enhancement Facility

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30target/s390x: remove dead code in translate.ctarget/s390x/translate.c+1 -40 replies
2/30target/s390x: remove some Linux assumptions from IPTEtarget/s390x/cpu.h target/s390x/mem_helper.c target/s390x/mmu_helper.c+12 -90 replies
3/30target/s390x: implement local-TLB-clearing in IPTEtarget/s390x/helper.h target/s390x/mem_helper.c target/s390x/translate.c+19 -100 replies
4/30target/s390x: implement TEST AND SETtarget/s390x/insn-data.def target/s390x/translate.c+13 -00 replies
5/30target/s390x: implement TEST ADDRESSING MODEtarget/s390x/insn-data.def target/s390x/translate.c+13 -00 replies
6/30target/s390x: implement PACKtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+51 -00 replies
7/30target/s390x: implement LOAD PAIR FROM QUADWORDtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+23 -00 replies
8/30target/s390x: implement STORE PAIR TO QUADWORDtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+21 -00 replies
9/30target/s390x: implement COMPARE AND SIGNALtarget/s390x/fpu_helper.c target/s390x/helper.h target/s390x/insn-data.def +1 more+57 -00 replies
10/30target/s390x: implement MOVE INVERSEtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+23 -00 replies
11/30target/s390x: implement MOVE NUMERICStarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+24 -00 replies
12/30target/s390x: implement MOVE WITH OFFSETtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+44 -00 replies
13/30target/s390x: implement MOVE ZONEStarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+24 -00 replies
14/30target/s390x: improve 24-bit and 31-bit addresses readtarget/s390x/mem_helper.c+31 -400 replies
15/30target/s390x: improve 24-bit and 31-bit addresses writetarget/s390x/mem_helper.c+30 -70 replies
16/30target/s390x: improve 24-bit and 31-bit lengths read/writetarget/s390x/mem_helper.c+33 -140 replies
17/30target/s390x: fix COMPARE LOGICAL LONG EXTENDEDtarget/s390x/mem_helper.c target/s390x/translate.c+52 -220 replies
18/30target/s390x: implement COMPARE LOGICAL LONGtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+84 -240 replies
19/30target/s390x: fix adj_len_to_pagetarget/s390x/mem_helper.c+1 -10 replies
20/30target/s390x: improve MOVE LONG and MOVE LONG EXTENDEDtarget/s390x/mem_helper.c target/s390x/translate.c+70 -600 replies
21/30target/s390x: implement COMPARE LOGICAL LONG UNICODEtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +2 more+90 -150 replies
22/30target/s390x: implement MOVE LONG UNICODEtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+65 -60 replies
23/30target/s390x: implement PACK ASCIItarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+54 -00 replies
24/30target/s390x: implement PACK UNICODEtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+40 -90 replies
25/30target/s390x: implement UNPACK ASCIItarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+71 -00 replies
26/30target/s390x: implement UNPACK UNICODEtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+60 -100 replies
27/30target/s390x: implement TEST DECIMALtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+36 -00 replies
28/30target/s390x: implement TRANSLATE ONE/TWO TO ONE/TWOtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/mem_helper.c +1 more+85 -00 replies
29/30target/s390x: mark ETF2 and ETF2-ENH facilities as availabletarget/s390x/cpu_models.c+2 -00 replies
30/30target/s390x: update maximum TCG model to z800target/s390x/cpu_models.c+6 -712 replies

Reviews trailers per patch

23 of 30 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonPhilippe Mathieu-DaudéThomas Huth
1/30R-b R-b
2/30
3/30R-b R-b
4/30R-b
5/30R-b
6/30R-b
7/30
8/30
9/30
10/30R-b
11/30R-b
12/30R-b
13/30R-b
14/30R-b R-b
15/30R-b
16/30R-b
17/30R-b
18/30R-b
19/30R-b
20/30R-b
21/30R-b
22/30R-b
23/30R-b
24/30R-b
25/30R-b
26/30R-b
27/30R-b
28/30
29/30
30/30

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/30] target/s390x: fix, improve and implement some more instructions

This patchset tries to improve the s390x emulation by fixing and improving some instructions. It implement some more instructions, from the zArchitecture base or from the Extended-Translation Facility 2. The last patch updates the maximum TCG CPU to z800, as the ETF2 and Long-Displacement Facility are now both fully implemented.

This patch series is based on the s390x unwind and execute patches from Richard Henderson and the qemu cpu_models patch from Thomas Huth. It includes feedback from both.

v1 -> v2:
- add a patch to improve IPTE
- implement local-TLB-clearing in IPTE
- use tcg_gen_atomic_xchg_i32 in TEST AND SET
- use gen_op_movi_cc in TEST ADDRESSING MODE
- use helper_atomic_ldo_be_mmu in LOAD PAIR FROM QUADWORD
- use helper_atomic_sto_be_mmu in STORE PAIR TO QUADWORD
- add a patch to implement COMPARE AND SIGNAL
- rename dest and src into src1 and src3 and check that r1 & r3 are even in COMPARE LOGICAL LONG EXTENDED
- check that r1 & r2 are even in COMPARE LOGICAL LONG
- check that r1 & r3 are even in COMPARE LOGICAL LONG UNICODE
- move the adj_len_to_page patch before MVCL/MVCLE changes and simplify the expression a bit
- fix indentation in MOVE LONG UNICODE
- rebase the cpu model upgrade to z800 onto the qemu cpu_models patch from Thomas Huth and use s390_find_cpu_def to get the z800 model.

v2 -> v3:
- rename _VADDR_PX into VADDR_PX in IPTE patch
- check for alignment in LOAD PAIR FROM QUADWORD using MO_ALIGN16
- check for alignment in STORE PAIR TO QUADWORD using MO_ALIGN16
- remove side effect flags from COMPARE AND SIGNAL helpers
- pass the tst value as an argument ot the TRANSLATE ONE/TWO TO ONE/TWO helper and check for the M3 value
- add a patch to enable the ETF2-Enhancement Facility

Aurelien Jarno (30):
target/s390x: remove dead code in translate.c target/s390x: remove some Linux assumptions from IPTE target/s390x: implement local-TLB-clearing in IPTE target/s390x: implement TEST AND SET
target/s390x: implement TEST ADDRESSING MODE target/s390x: implement PACK
target/s390x: implement LOAD PAIR FROM QUADWORD target/s390x: implement STORE PAIR TO QUADWORD target/s390x: implement COMPARE AND SIGNAL target/s390x: implement MOVE INVERSE
target/s390x: implement MOVE NUMERICS target/s390x: implement MOVE WITH OFFSET target/s390x: implement MOVE ZONES
target/s390x: improve 24-bit and 31-bit addresses read target/s390x: improve 24-bit and 31-bit addresses write target/s390x: improve 24-bit and 31-bit lengths read/write target/s390x: fix COMPARE LOGICAL LONG EXTENDED target/s390x: implement COMPARE LOGICAL LONG target/s390x: fix adj_len_to_page
target/s390x: improve MOVE LONG and MOVE LONG EXTENDED target/s390x: implement COMPARE LOGICAL LONG UNICODE target/s390x: implement MOVE LONG UNICODE target/s390x: implement PACK ASCII
target/s390x: implement PACK UNICODE
target/s390x: implement UNPACK ASCII
target/s390x: implement UNPACK UNICODE target/s390x: implement TEST DECIMAL
target/s390x: implement TRANSLATE ONE/TWO TO ONE/TWO target/s390x: mark ETF2 and ETF2-ENH facilities as available target/s390x: update maximum TCG model to z800

 target/s390x/cpu.h         |   2 +
 target/s390x/cpu_models.c  |  13 +-
 target/s390x/fpu_helper.c  |  27 ++
 target/s390x/helper.h      |  21 +-
 target/s390x/insn-data.def |  57 ++++
 target/s390x/mem_helper.c  | 746 +++++++++++++++++++++++++++++++++++++--------
 target/s390x/misc_helper.c |   4 +-
 target/s390x/mmu_helper.c  |   2 -
 target/s390x/translate.c   | 335 ++++++++++++++++++--
 9 files changed, 1052 insertions(+), 155 deletions(-)
Signature · 1 line
2.11.0