Re: [PATCH 2/2] hppa: Fix serial port pass-through

2022-05-27 Thread Mark Cave-Ayland
On 26/05/2022 12:19, Helge Deller wrote: This fixes the serial ports in the emulation to behave as on original hardware. On the real hardware, the LASI UART is serial port #0 and the DINO UART is serial port #1. This is fixed in SEABIOS_HPPA_VERSION >= 6, which is why the latest firmware is req

Re: [PATCH 00/50] PS2 device QOMification - part 1

2022-05-27 Thread Mark Cave-Ayland
On 24/05/2022 19:25, Helge Deller wrote: Hi Mark, On 5/22/22 20:17, Mark Cave-Ayland wrote: This series came about when looking at improving the LASI PS2 device for the HPPA machine: there were improvements that I was keen to make, but was restricted because the PS2 device(s) weren't QOMified.

Re: [PATCH 3/5] tests/acpi: allow changes for core_count2 test

2022-05-27 Thread Ani Sinha
On Fri, 27 May 2022, Julia Suvorova wrote: > Signed-off-by: Julia Suvorova Acked-by: Ani Sinha > --- > tests/qtest/bios-tables-test-allowed-diff.h | 3 +++ > tests/data/acpi/q35/APIC.core-count2| 0 > tests/data/acpi/q35/DSDT.core-count2| 0 > tests/data/acpi/q35/FACP.core-

Re: [PATCH 4/5] bios-tables-test: add test for number of cores > 255

2022-05-27 Thread Ani Sinha
On Fri, 27 May 2022, Julia Suvorova wrote: > The new test is run with a large number of cpus and checks if the > core_count field in smbios_cpu_test (structure type 4) is correct. > > Choose q35 as it allows to run with -smp > 255. > > Signed-off-by: Julia Suvorova > --- > tests/qtest/bios-ta

Re: [PATCH 1/5] hw/smbios: add core_count2 to smbios table type 4

2022-05-27 Thread Ani Sinha
On Fri, 27 May 2022, Julia Suvorova wrote: > In order to use the increased number of cpus, we need to bring smbios > tables in line with the SMBIOS 3.0 specification. This allows us to > introduce core_count2 which acts as a duplicate of core_count if we have > fewer cores than 256, and contain

GSoC project: VIRTIO_F_IN_ORDER support for virtio devices

2022-05-27 Thread Guo Zhi
Hi everyone, I'm Zhi Guo, a student from GSoC 2022. My project is VIRTIO_F_IN_ORDER support for virtio devices. VIRTIO_F_IN_ORDER is a new feature presented in VIRTIO 1.1. As mentioned on the project description page(https://wiki.qemu.org/Google_Summer_of_Code_2022#VIRTIO_F_IN_ORDER_support_for

Re: [PATCH v4 2/3] target/riscv: Add stimecmp support

2022-05-27 Thread Atish Kumar Patra
On Thu, May 26, 2022 at 7:07 PM Alistair Francis wrote: > > On Thu, May 26, 2022 at 5:16 PM Atish Patra wrote: > > > > On Wed, May 25, 2022 at 10:11 PM Alistair Francis > > wrote: > > > > > > On Sat, May 14, 2022 at 4:39 AM Atish Patra wrote: > > > > > > > > stimecmp allows the supervisor mode

Re: [PATCH v2] linux-user: Adjust child_tidptr on set_tid_address() syscall

2022-05-27 Thread Richard Henderson
On 5/27/22 13:44, Helge Deller wrote: I think the previous patch was wrong, since we just emulate writing to child_tidptr. Below is updated RFC patch. --- [PATCH] linux-user: Adjust child_tidptr on set_tid_address() Keep track of the new child tidptr given by a set_tid_address() syscall. Signe

[RESEND PATCH 1/2] modules: introduces module_kconfig directive

2022-05-27 Thread Dario Faggioli
From: Jose R. Ziviani module_kconfig is a new directive that should be used with module_obj whenever that module depends on the Kconfig to be enabled. When the module is enabled in Kconfig we are sure that its dependencies will be enabled as well, thus the module will be loaded without any probl

[RESEND PATCH 2/2] modules: generates per-target modinfo

2022-05-27 Thread Dario Faggioli
From: Jose R. Ziviani This patch changes the way modinfo is generated and built. Instead of one modinfo.c it generates one modinfo--softmmu.c per target. It aims a fine-tune control of modules by configuring Kconfig. Signed-off-by: Jose R. Ziviani Signed-off-by: Dario Faggioli --- Cc: Gerd Hof

[RESEND PATCH 0/2] modules: Improve modinfo.c support

2022-05-27 Thread Dario Faggioli
Hello, This is a RESEND of patch series "[PATCH v3 0/2] modules: Improve modinfo.c support", from Sept 2021. Message-ID: <20210928204628.20001-1-jzivi...@suse.de> https://lore.kernel.org/qemu-devel/20210928204628.20001-1-jzivi...@suse.de/ Jose sent it because we were having issues building QEMU

Re: building e2k qemu errors

2022-05-27 Thread Joe Nosay
Will do, thanks On Fri, May 27, 2022 at 1:42 PM Peter Maydell wrote: > On Fri, 27 May 2022 at 16:16, Joe Nosay wrote: > > > > Does the newest qemu source at github include the e2k cpu? > > And, what is the exact address? > > Please keep emails on the mailing list, not on private email. > > than

Re: [PATCH v2] linux-user: Adjust child_tidptr on set_tid_address() syscall

2022-05-27 Thread Helge Deller
I think the previous patch was wrong, since we just emulate writing to child_tidptr. Below is updated RFC patch. --- [PATCH] linux-user: Adjust child_tidptr on set_tid_address() Keep track of the new child tidptr given by a set_tid_address() syscall. Signed-off-by: Helge Deller diff --git a/li

[PATCH] ebpf: replace deprecated bpf_program__set_socket_filter

2022-05-27 Thread Haochen Tong
bpf_program__set_ functions have been deprecated since libbpf 0.8. Replace with the equivalent bpf_program__set_type call to avoid a deprecation warning. Signed-off-by: Haochen Tong --- ebpf/ebpf_rss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebpf/ebpf_rss.c b/ebpf/ebp

Re: [PATCH 0/2] backend/tpm: Resolve issue with TPM 2 DA lockout

2022-05-27 Thread Stefan Berger
On 5/27/22 15:24, Marc-André Lureau wrote: Hi On Fri, May 27, 2022 at 7:36 PM Stefan Berger wrote: This series of patches resolves an issue with a TPM 2's dictionary attack lockout logic being triggered upon well-timed VM resets. Normally, the OS TPM driver sends a TPM2_Shutdown to the TPM

Re: [PATCH 0/2] backend/tpm: Resolve issue with TPM 2 DA lockout

2022-05-27 Thread Marc-André Lureau
Hi On Fri, May 27, 2022 at 7:36 PM Stefan Berger wrote: > > This series of patches resolves an issue with a TPM 2's dictionary attack > lockout logic being triggered upon well-timed VM resets. Normally, the OS > TPM driver sends a TPM2_Shutdown to the TPM 2 upon reboot and before a VM > is reset.

CTU CAN FD IP core SocketCAN driver - success with mainine Linux kernel and mainline QEMU builds

2022-05-27 Thread Pavel Pisa
Hello everybody, I want to report successful build and test of the CTU CAN FD driver from actual Linux kernel mainline GIT on actual QEMU build from mainline git. Test on HW from net-next has been repeatedly run by Matej Vasilevski during his timestamping patches work. Thanks to all who helped, n

[PATCH 104/114] target/arm: Use TRANS_FEAT for DO_FP_IMM

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index b47d5d7f21..e2ae387d62 100644 --- a/target/arm/translate-sve.c +++ b/t

[PATCH 111/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzzw

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 44af7530b6..57bff0d345 100644 --- a/target/arm/translate-sve.c +++ b/target

Re: [PATCH] ppc: fix boot with sam460ex

2022-05-27 Thread BALATON Zoltan
On Fri, 27 May 2022, Michael S. Tsirkin wrote: On Fri, May 27, 2022 at 12:46:57PM +0200, BALATON Zoltan wrote: Hello, Some changes to commit message (patch is OK). Want to write the commit message for me then? How about: Recent changes to pcie_host corrected size of its internal region to

[PATCH 113/114] target/arm: Add sve feature check for remaining trans_* functions

2022-05-27 Thread Richard Henderson
For all remaining trans_* functions that do not already have a check, add one now. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 177 ++--- 1 file changed, 163 insertions(+), 14 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm

[PATCH 102/114] target/arm: Use TRANS_FEAT for gen_gvec_fpst_zzzzp

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 42 +- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 8f50956d3b..75854a7c6c 100644 --- a/target/arm/translate-sve.c

[PATCH 110/114] target/arm: Use TRANS_FEAT for do_shr_narrow

2022-05-27 Thread Richard Henderson
Rename from do_sve2_shr_narrow and hoist the sve2 check into the TRANS_FEAT macro. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 470 + 1 file changed, 211 insertions(+), 259 deletions(-) diff --git a/target/arm/translate-sve.c b/target/ar

[PATCH 112/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzxw

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 26 -- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 57bff0d345..5fb66547ec 100644 --- a/target/arm/translate-sve.c +++ b/target

[PATCH 100/114] target/arm: Use TRANS_FEAT for FCADD

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 30 +++--- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 1108494919..e323b2d6d5 100644 --- a/target/arm/translate-sve.c +++ b/ta

[PATCH 109/114] target/arm: Use TRANS_FEAT for do_shll_tb

2022-05-27 Thread Richard Henderson
Rename from do_sve2_shll_tb and hoist the sve2 check into the TRANS_FEAT macro. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 102 - 1 file changed, 45 insertions(+), 57 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/tra

[PATCH 114/114] target/arm: Remove aa64_sve check from before disas_sve

2022-05-27 Thread Richard Henderson
We now have individual checks on all insns within disas_sve. Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c index f502545307..935e1929bb 100644 --- a/targe

[PATCH 099/114] target/arm: Use TRANS_FEAT for gen_gvec_fpst_arg_zpzz

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 68 -- 1 file changed, 22 insertions(+), 46 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f0f2db351e..1108494919 100644 --- a/target/arm/translate-sve.c

[PATCH 106/114] target/arm: Remove assert in trans_FCMLA_zzxz

2022-05-27 Thread Richard Henderson
Since 636ddeb15c0, we do not require rd == ra. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 886cf539a5..436d09b928 100644 --- a/target/arm/translate-sve.c +++ b/t

[PATCH 103/114] target/arm: Move null function and sve check into do_fp_imm

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 75854a7c6c..b47d5d7f21 100644 --- a/target/arm/translate-sve.c +++ b/targ

[PATCH 108/114] target/arm: Use TRANS_FEAT for do_narrow_extract

2022-05-27 Thread Richard Henderson
Rename from do_sve2_narrow_extract and hoist the sve2 check into the TRANS_FEAT macro. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 223 + 1 file changed, 102 insertions(+), 121 deletions(-) diff --git a/target/arm/translate-sve.c b/targe

[PATCH 097/114] target/arm: Use TRANS_FEAT for do_ppz_fp

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 41 ++ 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 2f96f52293..2ee48186ba 100644 --- a/target/arm/translate-sve.c

[PATCH 092/114] target/arm: Expand frint_fns for MO_8

2022-05-27 Thread Richard Henderson
Simplify indexing of this array. This will allow folding of the illegal esz == 0 into the normal fn == NULL check. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/target/arm/translate-sve.c b/tar

[PATCH 101/114] target/arm: Introduce gen_gvec_fpst_zzzzp

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 59 +++--- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index e323b2d6d5..8f50956d3b 100644 --- a/target/arm/translate-sve.c

[PATCH 107/114] target/arm: Use TRANS_FEAT for FCMLA_zzxz

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 436d09b928..70e8d90ae8 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tr

[PATCH 088/114] target/arm: Use TRANS_FEAT for FTMAD

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 29 +++-- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 29fcc8b014..11e4b4e1e4 100644 --- a/target/arm/translate-sve.c +++ b/tar

[PATCH 091/114] target/arm: Use TRANS_FEAT for FRECPE, FRSQRTE

2022-05-27 Thread Richard Henderson
Rename do_zz_fp to gen_gvec_fpst_arg_zz, and move up. Split out gen_gvec_fpst_zz as a helper while we're at it. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 77 ++ 1 file changed, 36 insertions(+), 41 deletions(-) diff --git a/target/arm/

[PATCH 105/114] target/arm: Use TRANS_FEAT for DO_FPCMP

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index e2ae387d62..886cf539a5 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c

[PATCH 094/114] target/arm: Move null function and sve check into do_frint_mode

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 52 +- 1 file changed, 23 insertions(+), 29 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 2a5fbec2d6..43cfd2818e 100644 --- a/target/arm/translate-sve.c

[PATCH 093/114] target/arm: Rename do_zpz_ptr to gen_gvec_ool_fpst_arg_zpz

2022-05-27 Thread Richard Henderson
Rename the function to match other expansion function and move to be adjacent. Split out gen_gvec_fpst_zzp as a helper while we're at it. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 392 - 1 file changed, 129 insertions(+), 263 deletions

[PATCH 083/114] target/arm: Use TRANS_FEAT for FMLA

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6e8d8d54bf..5aa3e477cf 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 070/114] target/arm: Use TRANS_FEAT for MUL_zzi

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index d44b24e988..c0781ecf60 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve

[PATCH 098/114] target/arm: Rename do_zpzz_ptr to gen_gvec_fpst_arg_zpzz

2022-05-27 Thread Richard Henderson
Rename the function to match other expansion functions and move to be adjacent. Split out gen_gvec_fpst_zzzp as a helper while we're at it. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 52 +++--- 1 file changed, 31 insertions(+), 21 deletions

[PATCH 082/114] target/arm: Use TRANS_FEAT for MOVPRFX

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index a040d694ea..6e8d8d54bf 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tran

[PATCH 090/114] target/arm: Use TRANS_FEAT for do_reduce

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 0d71072f83..4a9ecd5e72 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translat

[PATCH 066/114] target/arm: Use TRANS_FEAT for do_ppzz_flags

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 8eb70fd56f..73b5b67c25 100644 --- a/target/arm/translate-sve.c +++ b/tar

[PATCH 089/114] target/arm: Move null function and sve check into do_reduce

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 11e4b4e1e4..0d71072f83 100644 --- a/target/arm/translate-sve.c +++ b/t

[PATCH 084/114] target/arm: Use TRANS_FEAT for BFMLA

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 5aa3e477cf..f2939fbeb9 100644 --- a/target/arm/translate-sve.c +++ b/targ

[PATCH 061/114] target/arm: Use TRANS_FEAT for do_clast_fp

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 5135866798..21c2bd099d 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 096/114] target/arm: Use TRANS_FEAT for FLOGB

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 29 ++--- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 552a551fef..2f96f52293 100644 --- a/target/arm/translate-sve.c +++ b/tar

[PATCH 077/114] target/arm: Introduce gen_gvec_{ptr,fpst}_zzzz

2022-05-27 Thread Richard Henderson
Use these for the several varieties of floating-point multiply-add instructions. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 140 ++--- 1 file changed, 53 insertions(+), 87 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/tr

[PATCH 081/114] target/arm: Use TRANS_FEAT for SEL_zpzz

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index b6b5980e2d..a040d694ea 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@

[PATCH 062/114] target/arm: Use TRANS_FEAT for do_clast_general

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 21c2bd099d..f5453e99e1 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 095/114] target/arm: Use TRANS_FEAT for do_frint_mode

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 53 ++ 1 file changed, 14 insertions(+), 39 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 43cfd2818e..552a551fef 100644 --- a/target/arm/translate-sve.c

[PATCH 064/114] target/arm: Use TRANS_FEAT for do_last_general

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 841c1b5644..caa587506c 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 068/114] target/arm: Use TRANS_FEAT for do_ppzi_flags

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 22acd5ead0..03b2eddd8b 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c

[PATCH 075/114] target/arm: Use TRANS_FEAT for do_zzi_sat

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6b2f235e4a..e6434589f4 100644 --- a/target/arm/translate-sve.c +++ b/target/ar

[PATCH 087/114] target/arm: Use TRANS_FEAT for FMUL_zzx

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 26 +++--- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index d596e7a027..29fcc8b014 100644 --- a/target/arm/translate-sve.c +++ b/target

[PATCH 072/114] target/arm: Reject add/sub w/ shifted byte early

2022-05-27 Thread Richard Henderson
Remove the unparsed extractions in trans_ADD_zzi, trans_SUBR_zzi, and do_zzi_sat which are intended to reject an 8-bit shift of an 8-bit constant for 8-bit element. Signed-off-by: Richard Henderson --- target/arm/sve.decode | 35 --- target/arm/translate-sve.

[PATCH 043/114] target/arm: Use TRANS_FEAT for do_vpz_ool

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 911d2e28bf..6103bd7f1d 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/t

[PATCH 086/114] target/arm: Use TRANS_FEAT for DO_FP3

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 61bf5f5757..d596e7a027 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c

[PATCH 074/114] target/arm: Use TRANS_FEAT for ADD_zzi

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 83980f5ee6..6b2f235e4a 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@

[PATCH 063/114] target/arm: Use TRANS_FEAT for do_last_fp

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f5453e99e1..841c1b5644 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 069/114] target/arm: Use TRANS_FEAT for do_brk2, do_brk3

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 45 -- 1 file changed, 14 insertions(+), 31 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 03b2eddd8b..d44b24e988 100644 --- a/target/arm/translate-sve.c

[PATCH 053/114] target/arm: Use TRANS_FEAT for do_pfirst_pnext

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6fd9a42ef9..abb5433ee5 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 085/114] target/arm: Rename do_zzz_fp to gen_gvec_ool_fpst_arg_zzz

2022-05-27 Thread Richard Henderson
Rename the function to match gen_gvec_ool_arg_zzz, and move to be adjacent. Split out gen_gvec_fpst_zzz as a helper while we're at it. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 50 +++--- 1 file changed, 30 insertions(+), 20 deletions(-)

[PATCH 057/114] target/arm: Move sve zip high_ofs into simd_data

2022-05-27 Thread Richard Henderson
This is in line with how we treat uzp, and will eliminate the special case code during translation. Signed-off-by: Richard Henderson --- target/arm/sve_helper.c| 6 -- target/arm/translate-sve.c | 12 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/target/ar

[PATCH 055/114] target/arm: Use TRANS_FEAT for do_perm_pred3

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 35 ++- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 7139e6c0b0..413e89b19c 100644 --- a/target/arm/translate-sve.c +++

[PATCH 080/114] target/arm: Implement NOT (prediates) alias

2022-05-27 Thread Richard Henderson
This alias is defined on EOR (prediates). While the same operation could be performed with NAND or NOR, only bother with the official alias. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/arm/translate-sve.c b/targ

[PATCH 049/114] target/arm: Use TRANS_FEAT for do_index

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 35 --- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 44c2342923..dac29749ce 100644 --- a/target/arm/translate-sve.c +++

[PATCH 060/114] target/arm: Use TRANS_FEAT for do_clast_vector

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 7c9deb267f..5135866798 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 040/114] target/arm: Hoist sve access check through do_sel_z

2022-05-27 Thread Richard Henderson
The check is already done in gen_gvec_ool_zzzp, which is called by do_sel_z; remove from callers. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-

[PATCH 041/114] target/arm: Introduce gen_gvec_fn_arg_zzi

2022-05-27 Thread Richard Henderson
We have two places that perform this particular operation. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 62bfc6fe7c..7a3b5f13

[PATCH 079/114] target/arm: Move sve check into gen_gvec_fn_ppp

2022-05-27 Thread Richard Henderson
Combined with the check already present in gen_mov_p, we can simplify some special cases in trans_AND_ and trans_BIC_. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/targ

[PATCH 059/114] target/arm: Use TRANS_FEAT for do_zip, do_zip_q

2022-05-27 Thread Richard Henderson
Convert SVE translation functions using do_zip* to use TRANS_FEAT and gen_gvec_ool_arg_zzz. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 54 +- 1 file changed, 13 insertions(+), 41 deletions(-) diff --git a/target/arm/translate-sve.c b/ta

[PATCH 048/114] target/arm: Move sve check into do_index

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 53 ++ 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 52bbd1a4fa..44c2342923 100644 --- a/target/arm/translate-sve.c

[PATCH 078/114] target/arm: Use TRANS_FEAT for FMMLA

2022-05-27 Thread Richard Henderson
Being able to specify the feature predicate in TRANS_FEAT makes it easier to split trans_FMMLA by element size, which also happens to simplify the decode. Signed-off-by: Richard Henderson --- target/arm/sve.decode | 7 +++ target/arm/translate-sve.c | 27 --- 2

[PATCH 045/114] target/arm: Introduce do_shift_zpzi

2022-05-27 Thread Richard Henderson
Share code between the various shifts using arg_rpri_esz. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 68 +- 1 file changed, 30 insertions(+), 38 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f15

[PATCH 039/114] target/arm: Use TRANS_FEAT for do_zz_dbm

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 7938c5393e..6fa721eca6 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tran

[PATCH 052/114] target/arm: Use TRANS_FEAT for RDFFR, WRFFR

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index ce6e000f6f..6fd9a42ef9 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-s

[PATCH 071/114] target/arm: Reject dup_i w/ shifted byte early

2022-05-27 Thread Richard Henderson
Remove the unparsed extraction in trans_DUP_i, which is intended to reject an 8-bit shift of an 8-bit constant for 8-bit element. Signed-off-by: Richard Henderson --- target/arm/sve.decode | 5 - target/arm/translate-sve.c | 10 ++ 2 files changed, 10 insertions(+), 5 deletions

[PATCH 037/114] target/arm: Use TRANS_FEAT for do_sve2_zzzz_fn

2022-05-27 Thread Richard Henderson
Convert SVE translation functions using do_sve2__fn to use TRANS_FEAT and gen_gvec_fn_arg_. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 38 ++ 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/target/arm/translate-sve

[PATCH 051/114] target/arm: Use TRANS_FEAT for do_predset

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index c8eb2c684b..ce6e000f6f 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tr

[PATCH 044/114] target/arm: Use TRANS_FEAT for do_shift_imm

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6103bd7f1d..f15e9a30b3 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tran

[PATCH 038/114] target/arm: Introduce gen_gvec_fn_zzi

2022-05-27 Thread Richard Henderson
We have two places that perform this particular operation. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index f89c78a23e

[PATCH 073/114] target/arm: Reject copy w/ shifted byte early

2022-05-27 Thread Richard Henderson
Remove the unparsed extractions in trans_CPY_{m,z}_i which are intended to reject an 8-bit shift of an 8-bit constant for 8-bit element. Signed-off-by: Richard Henderson --- target/arm/sve.decode | 10 -- target/arm/translate-sve.c | 6 -- 2 files changed, 8 insertions(+), 8 de

[PATCH 042/114] target/arm: Use TRANS_FEAT for do_sve2_fn2i

2022-05-27 Thread Richard Henderson
Convert SVE translation functions using do_sve2_fn2i to use TRANS_FEAT and gen_gvec_fn_arg_zzi. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 43 ++ 1 file changed, 6 insertions(+), 37 deletions(-) diff --git a/target/arm/translate-sve.c b

[PATCH 076/114] target/arm: Use TRANS_FEAT for do_zzi_ool

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index e6434589f4..b8bd1047b0 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c

[PATCH 047/114] target/arm: Use TRANS_FEAT for do_zpzzz_ool

2022-05-27 Thread Richard Henderson
Remove the DO_ZPZZZ macro, as it had just the two uses. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 98f9cfa86c..52bbd1a4

[PATCH 034/114] target/arm: Use TRANS_FEAT for do_sve2_fn_zzz

2022-05-27 Thread Richard Henderson
Convert SVE translation functions using do_sve2_fn_zzz to use TRANS_FEAT and gen_gvec_fn_arg_zzz. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/trans

[PATCH 032/114] target/arm: More use of gen_gvec_fn_arg_zzz

2022-05-27 Thread Richard Henderson
Two uses of gen_gvec_fn_zzz can pass on arg_rrr_esz instead. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 1b3afcc24c..2dbf296128 100644 --- a/t

[PATCH 046/114] target/arm: Use TRANS_FEAT for do_shift_zpzi

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 52 +++--- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index c7c16863c0..98f9cfa86c 100644 --- a/target/arm/translate-sve.c

[PATCH 067/114] target/arm: Use TRANS_FEAT for do_sve2_ppzz_flags

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 73b5b67c25..22acd5ead0 100644 --- a/target/arm/translate-sve.c +++ b/targ

[PATCH 031/114] target/arm: Rename do_zzz_fn to gen_gvec_fn_arg_zzz

2022-05-27 Thread Richard Henderson
Rename the function to match gen_gvec_fn_zzz, and move to be adjacent. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c ind

[PATCH 050/114] target/arm: Use TRANS_FEAT for do_adr

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index dac29749ce..c8eb2c684b 100644 --- a/target/arm/translate-sve.c +++ b/target/ar

[PATCH 027/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zpzz

2022-05-27 Thread Richard Henderson
Convert SVE translation functions directly using gen_gvec_ool_arg_zpzz to TRANS_FEAT. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 85 -- 1 file changed, 36 insertions(+), 49 deletions(-) diff --git a/target/arm/translate-sve.c b/target/a

[PATCH 065/114] target/arm: Use TRANS_FEAT for SPLICE

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index caa587506c..8eb70fd56f 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/tran

[PATCH 029/114] target/arm: Merge gen_gvec_fn_zz into do_mov_z

2022-05-27 Thread Richard Henderson
There is only one caller for gen_gvec_fn_zz; inline it. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 0a69a1ef65..5ab9de46a7 100644 -

[PATCH 023/114] target/arm: Rename do_zpzi_ool to gen_gvec_ool_arg_zpzi

2022-05-27 Thread Richard Henderson
Rename the function to match gen_gvec_ool_arg_zpz, and move to be adjacent. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c

[PATCH 030/114] target/arm: Move null function and sve check into gen_gvec_fn_zzz

2022-05-27 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 36 +++- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 5ab9de46a7..3af4626e58 100644 --- a/target/arm/translate-sve.c +

  1   2   3   4   >