First set of s390x and functional test patches in 2026
Happy new year!
The following changes since commit 0fc482b73d8e085d1375b4e17b0647fd2e6fe8f0:
Merge tag 'pull-aspeed-20260105' of https://github.com/legoater/qemu into staging (2026-01-06 06:52:47 +1100)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2026-01-07
for you to fetch changes up to 80802278817770783a07eebc06adc157df89d827:
tests/functional/qemu_test/testcase: Fix mismatched quotations (2026-01-07 10:41:40 +0100)
----------------------------------------------------------------
* Compat machines for 11.0
* Add some more files to the MAINTAINERS file
* Use explicit big-endian API calls in the s390x code
* Add the possibility to run sub-tests manually in the functional test suite
----------------------------------------------------------------
Cornelia Huck (1):
hw: add compat machines for 11.0
Fabiano Rosas (1):
tests/functional: Allow tests to be run individually
Philippe Mathieu-Daudé (8):
hw/s390x/ccw: Remove deprecated s390-ccw-virtio-5.0 machine
hw/s390x: Use explicit big-endian LD/ST API
target/s390x: Use explicit big-endian LD/ST API
target/s390x: Replace gdb_get_regl() -> gdb_get_reg64()
target/s390x: Replace MO_TE -> MO_BE
target/s390x: Inline cpu_ld{uw, l}_code() calls in EX opcode helper
target/s390x: Use big-endian variant of cpu_ld/st_data*()
target/s390x: Inline translator_lduw() and translator_ldl()Thomas Huth (3):
hw/s390x: Un-inline the s390_do_cpu_*() functions
MAINTAINERS: Add util/s390x_pci_mmio.c to the S390 PCI section
MAINTAINERS: Add configs/targets/s390x-softmmu.mak to the S390 general sectionYodel Eldar (1):
tests/functional/qemu_test/testcase: Fix mismatched quotations
MAINTAINERS | 2 + docs/devel/testing/functional.rst | 15 ++++ include/hw/core/boards.h | 3 + include/hw/i386/pc.h | 3 + target/s390x/cpu.h | 24 +----- target/s390x/tcg/insn-data.h.inc | 54 ++++++------- hw/arm/virt.c | 9 ++- hw/core/machine.c | 3 + hw/i386/pc.c | 3 + hw/i386/pc_piix.c | 13 ++- hw/i386/pc_q35.c | 13 ++- hw/m68k/virt.c | 9 ++- hw/ppc/spapr.c | 15 +++- hw/s390x/css.c | 24 +++--- hw/s390x/s390-pci-bus.c | 4 +- hw/s390x/s390-virtio-ccw.c | 45 +++++++---- hw/s390x/virtio-ccw.c | 24 +++--- target/s390x/cpu-system.c | 2 +- target/s390x/cpu.c | 5 ++ target/s390x/gdbstub.c | 26 +++--- target/s390x/kvm/kvm.c | 8 +- target/s390x/mmu_helper.c | 3 +- target/s390x/tcg/excp_helper.c | 16 ++-- target/s390x/tcg/mem_helper.c | 71 ++++++++-------- target/s390x/tcg/translate.c | 144 ++++++++++++++++----------------- target/s390x/tcg/vec_helper.c | 8 +- target/s390x/tcg/translate_vx.c.inc | 38 ++++----- tests/functional/qemu_test/testcase.py | 9 +-- 28 files changed, 334 insertions(+), 259 deletions(-)
[PULL 07/14] target/s390x: Use explicit big-endian LD/ST API
From: Philippe Mathieu-Daudé <[email protected]>
The S390x architecture uses big endianness. Directly use the big-endian LD/ST API.
Mechanical change running:
$ for a in uw w l q; do \
sed -i -e "s/ld${a}_p(/ld${a}_be_p(/" \
$(git grep -wlE '(ld|st)u?[wlq]_p' target/s390x/);
doneMessage-ID: <[email protected]>
--- target/s390x/cpu-system.c | 2 +- target/s390x/kvm/kvm.c | 8 ++++---- target/s390x/mmu_helper.c | 3 ++- target/s390x/tcg/excp_helper.c | 16 ++++++++-------- target/s390x/tcg/mem_helper.c | 5 +++-- 5 files changed, 18 insertions(+), 16 deletions(-)
target/s390x/cpu-system.c +1 -1
@@ -63,7 +63,7 @@ static void s390_cpu_load_normal(CPUState *s)uint64_t spsw;if (!s390_is_pv ()) { - spsw =ldq_phys (s->as,0 ); + spsw =ldq_be_phys (s->as,0 ); cpu->env.psw.mask = spsw &PSW_MASK_SHORT_CTRL ;/* * Invert short psw indication, so SIE will report a specification
target/s390x/kvm/kvm.c +4 -4
@@ -1667,10 +1667,10 @@ static int handle_oper_loop(S390CPU *cpu, struct kvm_run *run)CPUState *cs =CPU (cpu);PSW oldpsw, newpsw; - newpsw.mask =ldq_phys (cs->as, cpu->env.psa + - offsetof(LowCore , program_new_psw)); - newpsw.addr =ldq_phys (cs->as, cpu->env.psa + - offsetof(LowCore , program_new_psw) +8 ); + newpsw.mask =ldq_be_phys (cs->as, cpu->env.psa + + offsetof(LowCore , program_new_psw)); + newpsw.addr =ldq_be_phys (cs->as, cpu->env.psa + + offsetof(LowCore , program_new_psw) +8 ); oldpsw.mask = run->psw_mask; oldpsw.addr = run->psw_addr;/*
target/s390x/mmu_helper.c +2 -1
@@ -44,7 +44,8 @@ static void trigger_access_exception(CPUS390XState *env, uint32_t type, }else {CPUState *cs =env_cpu (env);if (type !=PGM_ADDRESSING ) { -stq_phys (cs->as, env->psa + offsetof(LowCore , trans_exc_code), tec); +stq_be_phys (cs->as, env->psa + offsetof(LowCore , trans_exc_code), + tec); }trigger_pgm_exception (env, type); }
target/s390x/tcg/excp_helper.c +8 -8
@@ -55,8 +55,8 @@ G_NORETURN void tcg_s390_data_exception(CPUS390XState *env, uint32_t dxc,g_assert (dxc <=0xff );#if !defined(CONFIG_USER_ONLY )/* Store the DXC into the lowcore */ -stl_phys (env_cpu (env)->as, - env->psa + offsetof(LowCore , data_exc_code), dxc); +stl_be_phys (env_cpu (env)->as, + env->psa + offsetof(LowCore , data_exc_code), dxc);#endif /* Store the DXC into the FPC if AFP is enabled */
@@ -72,8 +72,8 @@ G_NORETURN void tcg_s390_vector_exception(CPUS390XState *env, uint32_t vxc,g_assert (vxc <=0xff );#if !defined(CONFIG_USER_ONLY )/* Always store the VXC into the lowcore, without AFP it is undefined */ -stl_phys (env_cpu (env)->as, - env->psa + offsetof(LowCore , data_exc_code), vxc); +stl_be_phys (env_cpu (env)->as, + env->psa + offsetof(LowCore , data_exc_code), vxc);#endif /* Always store the VXC into the FPC, without AFP it is undefined */
@@ -651,10 +651,10 @@ void monitor_event(CPUS390XState *env, uint8_t monitor_class, uintptr_t ra) {/* Store the Monitor Code and the Monitor Class Number into the lowcore */ - stq_phys(env_cpu(env)->as, - env->psa + offsetof(LowCore, monitor_code), monitor_code); -stw_phys (env_cpu (env)->as, - env->psa + offsetof(LowCore , mon_class_num), monitor_class); + stq_be_phys(env_cpu(env)->as, + env->psa + offsetof(LowCore, monitor_code), monitor_code); +stw_be_phys (env_cpu (env)->as, + env->psa + offsetof(LowCore , mon_class_num), monitor_class);tcg_s390_program_interrupt (env,PGM_MONITOR , ra); }
target/s390x/tcg/mem_helper.c +3 -2
@@ -958,8 +958,9 @@ uint32_t HELPER(mvpg)(CPUS390XState *env, uint64_t r0, uint32_t r1, uint32_t r2) inject_exc:#if !defined(CONFIG_USER_ONLY )if (exc !=PGM_ADDRESSING ) { -stq_phys (env_cpu (env)->as, env->psa + offsetof(LowCore , trans_exc_code), - env->tlb_fill_tec); +stq_be_phys (env_cpu (env)->as, + env->psa + offsetof(LowCore , trans_exc_code), + env->tlb_fill_tec); }if (exc ==PGM_PAGE_TRANS ) { stb_phys(env_cpu(env)->as, env->psa + offsetof(LowCore, op_access_id),
Signature · 1 line
2.52.0
[PULL 03/14] hw/s390x: Un-inline the s390_do_cpu_*() functions
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
These functions are only called via their function pointer by using the run_on_cpu() function, so it does not make sense to declare these as "inline" functions. Move the functions from cpu.h to either cpu.c (when they are still used in multiple places), or to s390-virtio-ccw.c (when they are only called from that file).
Message-ID: <[email protected]>
--- target/s390x/cpu.h | 24 +----------------------- hw/s390x/s390-virtio-ccw.c | 19 ++++++++++++++++++- target/s390x/cpu.c | 5 +++++ 3 files changed, 24 insertions(+), 24 deletions(-)
target/s390x/cpu.h +1 -23
@@ -845,30 +845,8 @@ static inline uint64_t s390_build_validity_mcic(void)return mcic; } -static inline void s390_do_cpu_full_reset (CPUState *cs,run_on_cpu_data arg) -{ -cpu_reset (cs); -} - -static inline void s390_do_cpu_reset (CPUState *cs,run_on_cpu_data arg) -{ -resettable_reset (OBJECT (cs),RESET_TYPE_S390_CPU_NORMAL ); -} - -static inline void s390_do_cpu_initial_reset (CPUState *cs,run_on_cpu_data arg) -{ -resettable_reset (OBJECT (cs),RESET_TYPE_S390_CPU_INITIAL ); -} - -static inline void s390_do_cpu_load_normal (CPUState *cs,run_on_cpu_data arg) -{ -S390CPUClass *scc =S390_CPU_GET_CLASS (cs); - - scc->load_normal (cs); -} - -/* cpu.c */ +void s390_do_cpu_full_reset (CPUState *cs,run_on_cpu_data arg);void s390_crypto_reset (void );void s390_cmma_reset (void );void s390_enable_css_support (S390CPU *cpu);
hw/s390x/s390-virtio-ccw.c +18 -1
@@ -364,7 +364,24 @@ static void s390_cpu_plug(HotplugHandler *hotplug_dev, } } -static inline void s390_do_cpu_ipl (CPUState *cs,run_on_cpu_data arg) +static void s390_do_cpu_reset (CPUState *cs,run_on_cpu_data arg) +{ +resettable_reset (OBJECT (cs),RESET_TYPE_S390_CPU_NORMAL ); +} + +static void s390_do_cpu_initial_reset (CPUState *cs,run_on_cpu_data arg) +{ +resettable_reset (OBJECT (cs),RESET_TYPE_S390_CPU_INITIAL ); +} + +static void s390_do_cpu_load_normal (CPUState *cs,run_on_cpu_data arg) +{ +S390CPUClass *scc =S390_CPU_GET_CLASS (cs); + + scc->load_normal (cs); +} + +static void s390_do_cpu_ipl (CPUState *cs,run_on_cpu_data arg) {S390CPU *cpu =S390_CPU (cs);
target/s390x/cpu.c +5 -0
@@ -141,6 +141,11 @@ static void s390_query_cpu_fast(CPUState *cpu, CpuInfoFast *value)#endif } +void s390_do_cpu_full_reset (CPUState *cs,run_on_cpu_data arg) +{ +cpu_reset (cs); +} +/* S390CPUClass Resettable reset_hold phase method */ static void s390_cpu_reset_hold (Object *obj,ResetType type) {
Signature · 1 line
2.52.0
[PULL 12/14] target/s390x: Inline translator_lduw() and translator_ldl()
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
translator_lduw() and translator_ldl() are defined in "exec/translator.h" as:
192 static inline uint16_t
193 translator_lduw(CPUArchState *env, DisasContextBase *db, vaddr pc)
194 {
195 return translator_lduw_end(env, db, pc, MO_TE);
196 }
198 static inline uint32_t
199 translator_ldl(CPUArchState *env, DisasContextBase *db, vaddr pc)
200 {
201 return translator_ldl_end(env, db, pc, MO_TE);
202 }Directly use the inlined form, expanding MO_TE -> MO_BE since we only build the S390x target as big-endian.
Message-ID: <[email protected]>
--- target/s390x/tcg/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
target/s390x/tcg/translate.c +3 -3
@@ -365,13 +365,13 @@ static void update_cc_op(DisasContext *s)static inline uint64_t ld_code2 (CPUS390XState *env,DisasContext *s,uint64_t pc) { -return (uint64_t )translator_lduw (env, &s->base, pc); +return (uint64_t )translator_lduw_end (env, &s->base, pc,MO_BE ); }static inline uint64_t ld_code4 (CPUS390XState *env,DisasContext *s,uint64_t pc) { -return (uint64_t )(uint32_t )translator_ldl (env, &s->base, pc); +return (uint64_t )(uint32_t )translator_ldl_end (env, &s->base, pc,MO_BE ); }static int get_mem_index (DisasContext *s)
@@ -6408,7 +6408,7 @@ static void s390x_tr_insn_start(DisasContextBase *dcbase, CPUState *cs)static target_ulong get_next_pc (CPUS390XState *env,DisasContext *s,uint64_t pc) { -uint64_t insn =translator_lduw (env, &s->base, pc); +uint64_t insn =translator_lduw_end (env, &s->base, pc,MO_BE );return pc +get_ilen ((insn >>8 ) &0xff ); }
Signature · 1 line
2.52.0
[PULL 06/14] hw/s390x: Use explicit big-endian LD/ST API
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
The S390x architecture uses big endianness. Directly use the big-endian LD/ST API.
Mechanical change running:
$ for a in uw w l q; do \
sed -i -e "s/ld${a}_p(/ld${a}_be_p(/" \
$(git grep -wlE '(ld|st)u?[wlq]_p' hw/s390x/);
doneMessage-ID: <[email protected]>
--- hw/s390x/css.c | 24 +++++++++++------------- hw/s390x/s390-pci-bus.c | 4 ++-- hw/s390x/virtio-ccw.c | 24 ++++++++++++------------ 3 files changed, 25 insertions(+), 27 deletions(-)
hw/s390x/css.c +11 -13
@@ -1583,27 +1583,25 @@ static void css_update_chnmon(SubchDev *sch)/* Format 1, per-subchannel area. */ uint32_t count; - count =address_space_ldl (&address_space_memory, - sch->curr_status.mba, -MEMTXATTRS_UNSPECIFIED , -NULL ); + count =address_space_ldl_be (&address_space_memory, + sch->curr_status.mba, +MEMTXATTRS_UNSPECIFIED ,NULL ); count++; -address_space_stl (&address_space_memory, sch->curr_status.mba, count, -MEMTXATTRS_UNSPECIFIED ,NULL ); +address_space_stl_be (&address_space_memory, sch->curr_status.mba, count, +MEMTXATTRS_UNSPECIFIED ,NULL ); }else {/* Format 0, global area. */ uint32_t offset;uint16_t count; offset = sch->curr_status.pmcw.mbi <<5 ; - count =address_space_lduw (&address_space_memory, - channel_subsys.chnmon_area + offset, -MEMTXATTRS_UNSPECIFIED , -NULL ); + count =address_space_lduw_be (&address_space_memory, + channel_subsys.chnmon_area + offset, +MEMTXATTRS_UNSPECIFIED ,NULL ); count++; -address_space_stw (&address_space_memory, - channel_subsys.chnmon_area + offset, count, -MEMTXATTRS_UNSPECIFIED ,NULL ); +address_space_stw_be (&address_space_memory, + channel_subsys.chnmon_area + offset, count, +MEMTXATTRS_UNSPECIFIED ,NULL ); } }
hw/s390x/s390-pci-bus.c +2 -2
@@ -462,8 +462,8 @@ static uint64_t table_translate(S390IOTLBEntry *entry, uint64_t to, int8_t ett,uint16_t err =0 ; tx =get_table_index (entry->iova, ett); - te =address_space_ldq (&address_space_memory, to + tx *sizeof (uint64_t ), -MEMTXATTRS_UNSPECIFIED ,NULL ); + te =address_space_ldq_be (&address_space_memory, to + tx *sizeof (uint64_t ), +MEMTXATTRS_UNSPECIFIED ,NULL );if (!te) { err =ERR_EVENT_INVALTE ;
hw/s390x/virtio-ccw.c +12 -12
@@ -890,26 +890,26 @@ static void virtio_ccw_notify(DeviceState *d, uint16_t vector) } }else {assert (vector <NR_CLASSIC_INDICATOR_BITS ); - indicators =address_space_ldq (&address_space_memory, - dev->indicators->addr, -MEMTXATTRS_UNSPECIFIED , -NULL ); + indicators =address_space_ldq_be (&address_space_memory, + dev->indicators->addr, +MEMTXATTRS_UNSPECIFIED , +NULL ); indicators |=1ULL << vector; -address_space_stq (&address_space_memory, dev->indicators->addr, - indicators,MEMTXATTRS_UNSPECIFIED ,NULL ); +address_space_stq_be (&address_space_memory, dev->indicators->addr, + indicators,MEMTXATTRS_UNSPECIFIED ,NULL );css_conditional_io_interrupt (sch); } }else {if (!dev->indicators2) {return ; } - indicators =address_space_ldq (&address_space_memory, - dev->indicators2->addr, -MEMTXATTRS_UNSPECIFIED , -NULL ); + indicators =address_space_ldq_be (&address_space_memory, + dev->indicators2->addr, +MEMTXATTRS_UNSPECIFIED , +NULL ); indicators |=1ULL ; -address_space_stq (&address_space_memory, dev->indicators2->addr, - indicators,MEMTXATTRS_UNSPECIFIED ,NULL ); +address_space_stq_be (&address_space_memory, dev->indicators2->addr, + indicators,MEMTXATTRS_UNSPECIFIED ,NULL );css_conditional_io_interrupt (sch); } }
Signature · 1 line
2.52.0
[PULL 01/14] hw/s390x/ccw: Remove deprecated s390-ccw-virtio-5.0 machine
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
This machine has been supported for a period of more than 6 years. According to our versioned machine support policy (see commit ce80c4fa6ff "docs: document special exception for machine type deprecation & removal") it can now be removed.
Message-ID: <[email protected]>
--- hw/s390x/s390-virtio-ccw.c | 12 ------------ 1 file changed, 12 deletions(-)
hw/s390x/s390-virtio-ccw.c +0 -12
@@ -1133,18 +1133,6 @@ static void ccw_machine_5_1_class_options(MachineClass *mc) }DEFINE_CCW_MACHINE (5 ,1 ); -static void ccw_machine_5_0_instance_options (MachineState *machine) -{ -ccw_machine_5_1_instance_options (machine); -} - -static void ccw_machine_5_0_class_options (MachineClass *mc) -{ -ccw_machine_5_1_class_options (mc); -compat_props_add (mc->compat_props, hw_compat_5_0, hw_compat_5_0_len); -} -DEFINE_CCW_MACHINE (5 ,0 ); -static void ccw_machine_register_types (void ) {type_register_static (&ccw_machine_info);
Signature · 1 line
2.52.0
[PULL 02/14] hw: add compat machines for 11.0
In reply to Thomas HuthFrom: Cornelia Huck <[email protected]>
Add 11.0 machine types for arm/i440fx/m68k/q35/s390x/spapr.
Message-ID: <[email protected]>
--- include/hw/core/boards.h | 3 +++ include/hw/i386/pc.h | 3 +++ hw/arm/virt.c | 9 ++++++++- hw/core/machine.c | 3 +++ hw/i386/pc.c | 3 +++ hw/i386/pc_piix.c | 13 +++++++++++-- hw/i386/pc_q35.c | 13 +++++++++++-- hw/m68k/virt.c | 9 ++++++++- hw/ppc/spapr.c | 15 +++++++++++++-- hw/s390x/s390-virtio-ccw.c | 14 +++++++++++++- 10 files changed, 76 insertions(+), 9 deletions(-)
include/hw/core/boards.h +3 -0
@@ -798,6 +798,9 @@ struct MachineState { } \ }while (0 ) +extern GlobalProperty hw_compat_10_2[]; +extern const size_t hw_compat_10_2_len; +extern GlobalProperty hw_compat_10_1[];extern const size_t hw_compat_10_1_len;
include/hw/i386/pc.h +3 -0
@@ -214,6 +214,9 @@ void pc_system_parse_ovmf_flash(uint8_t *flash_ptr, size_t flash_size);/* sgx.c */ void pc_machine_init_sgx_epc (PCMachineState *pcms); +extern GlobalProperty pc_compat_10_2[]; +extern const size_t pc_compat_10_2_len; +extern GlobalProperty pc_compat_10_1[];extern const size_t pc_compat_10_1_len;
hw/arm/virt.c +8 -1
@@ -3533,10 +3533,17 @@ static void machvirt_machine_init(void) }type_init (machvirt_machine_init); +static void virt_machine_11_0_options (MachineClass *mc) +{ +} +DEFINE_VIRT_MACHINE_AS_LATEST(11, 0) +static void virt_machine_10_2_options (MachineClass *mc) { +virt_machine_11_0_options (mc); +compat_props_add (mc->compat_props, hw_compat_10_2, hw_compat_10_2_len); } -DEFINE_VIRT_MACHINE_AS_LATEST(10, 2) +DEFINE_VIRT_MACHINE(10, 2)static void virt_machine_10_1_options (MachineClass *mc) {
hw/core/machine.c +3 -0
@@ -38,6 +38,9 @@#include "hw/acpi/generic_event_device.h" #include "qemu/audio.h" +GlobalProperty hw_compat_10_2[] = {}; +const size_t hw_compat_10_2_len =G_N_ELEMENTS (hw_compat_10_2); +GlobalProperty hw_compat_10_1[] = { {TYPE_ACPI_GED ,"x-has-hest-addr" ,"false" }, {TYPE_VIRTIO_NET ,"host_tunnel" ,"off" },
hw/i386/pc.c +3 -0
@@ -81,6 +81,9 @@ { "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\ { "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, }, +GlobalProperty pc_compat_10_2[] = {}; +const size_t pc_compat_10_2_len =G_N_ELEMENTS (pc_compat_10_2); +GlobalProperty pc_compat_10_1[] = { {"mch" ,"extended-tseg-mbytes" ,"16" }, };
hw/i386/pc_piix.c +11 -2
@@ -438,12 +438,21 @@ static void pc_i440fx_machine_options(MachineClass *m) pc_piix_compat_defaults, pc_piix_compat_defaults_len); } -static void pc_i440fx_machine_10_2_options (MachineClass *m) +static void pc_i440fx_machine_11_0_options (MachineClass *m) {pc_i440fx_machine_options (m); } -DEFINE_I440FX_MACHINE_AS_LATEST (10 ,2 ); +DEFINE_I440FX_MACHINE_AS_LATEST (11 ,0 ); + +static void pc_i440fx_machine_10_2_options (MachineClass *m) +{ +pc_i440fx_machine_11_0_options (m); +compat_props_add (m->compat_props, hw_compat_10_2, hw_compat_10_2_len); +compat_props_add (m->compat_props, pc_compat_10_2, pc_compat_10_2_len); +} + +DEFINE_I440FX_MACHINE (10 ,2 );static void pc_i440fx_machine_10_1_options (MachineClass *m) {
hw/i386/pc_q35.c +11 -2
@@ -374,12 +374,21 @@ static void pc_q35_machine_options(MachineClass *m) pc_q35_compat_defaults, pc_q35_compat_defaults_len); } -static void pc_q35_machine_10_2_options (MachineClass *m) +static void pc_q35_machine_11_0_options (MachineClass *m) {pc_q35_machine_options (m); } -DEFINE_Q35_MACHINE_AS_LATEST (10 ,2 ); +DEFINE_Q35_MACHINE_AS_LATEST (11 ,0 ); + +static void pc_q35_machine_10_2_options (MachineClass *m) +{ +pc_q35_machine_11_0_options (m); +compat_props_add (m->compat_props, hw_compat_10_2, hw_compat_10_2_len); +compat_props_add (m->compat_props, pc_compat_10_2, pc_compat_10_2_len); +} + +DEFINE_Q35_MACHINE (10 ,2 );static void pc_q35_machine_10_1_options (MachineClass *m) {
hw/m68k/virt.c +8 -1
@@ -367,10 +367,17 @@ type_init(virt_machine_register_types)#define DEFINE_VIRT_MACHINE (major, minor) \ DEFINE_VIRT_MACHINE_IMPL(false, major, minor) +static void virt_machine_11_0_options (MachineClass *mc) +{ +} +DEFINE_VIRT_MACHINE_AS_LATEST(11, 0) +static void virt_machine_10_2_options (MachineClass *mc) { +virt_machine_11_0_options (mc); +compat_props_add (mc->compat_props, hw_compat_10_2, hw_compat_10_2_len); } -DEFINE_VIRT_MACHINE_AS_LATEST(10, 2) +DEFINE_VIRT_MACHINE(10, 2)static void virt_machine_10_1_options (MachineClass *mc) {
hw/ppc/spapr.c +13 -2
@@ -4751,15 +4751,26 @@ static void spapr_machine_latest_class_options(MachineClass *mc)#define DEFINE_SPAPR_MACHINE (major, minor) \ DEFINE_SPAPR_MACHINE_IMPL(false, major, minor) +/* +* pseries-11.0 +*/ +static void spapr_machine_11_0_class_options (MachineClass *mc) +{ +/* Defaults for the latest behaviour inherited from the base class */ +} + +DEFINE_SPAPR_MACHINE_AS_LATEST (11 ,0 ); +/* * pseries-10.2 */ static void spapr_machine_10_2_class_options (MachineClass *mc) { -/* Defaults for the latest behaviour inherited from the base class */ +spapr_machine_11_0_class_options (mc); +compat_props_add (mc->compat_props, hw_compat_10_2, hw_compat_10_2_len); } -DEFINE_SPAPR_MACHINE_AS_LATEST (10 ,2 ); +DEFINE_SPAPR_MACHINE (10 ,2 );/* * pseries-10.1
hw/s390x/s390-virtio-ccw.c +13 -1
@@ -890,14 +890,26 @@ static const TypeInfo ccw_machine_info = { DEFINE_CCW_MACHINE_IMPL(false, major, minor) +static void ccw_machine_11_0_instance_options (MachineState *machine) +{ +} + +static void ccw_machine_11_0_class_options (MachineClass *mc) +{ +} +DEFINE_CCW_MACHINE_AS_LATEST (11 ,0 ); +static void ccw_machine_10_2_instance_options (MachineState *machine) { +ccw_machine_11_0_instance_options (machine); }static void ccw_machine_10_2_class_options (MachineClass *mc) { +ccw_machine_11_0_class_options (mc); +compat_props_add (mc->compat_props, hw_compat_10_2, hw_compat_10_2_len); } -DEFINE_CCW_MACHINE_AS_LATEST (10 ,2 ); +DEFINE_CCW_MACHINE (10 ,2 );static void ccw_machine_10_1_instance_options (MachineState *machine) {
Signature · 1 line
2.52.0
[PULL 08/14] target/s390x: Replace gdb_get_regl() -> gdb_get_reg64()
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
We only build s390x targets as 64-bit:
$ git grep BIT configs/targets/s390x-* configs/targets/s390x-linux-user.mak:6:TARGET_LONG_BITS=64 configs/targets/s390x-softmmu.mak:5:TARGET_LONG_BITS=64
Therefore gdb_get_regl() expands to gdb_get_reg64(). Use the latter which is more explicit.
Message-ID: <[email protected]>
--- target/s390x/gdbstub.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
target/s390x/gdbstub.c +13 -13
@@ -34,11 +34,11 @@ int s390_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)switch (n) {case S390_PSWM_REGNUM : -return gdb_get_regl (mem_buf,s390_cpu_get_psw_mask (env)); +return gdb_get_reg64 (mem_buf,s390_cpu_get_psw_mask (env));case S390_PSWA_REGNUM : -return gdb_get_regl (mem_buf, env->psw.addr); +return gdb_get_reg64 (mem_buf, env->psw.addr); case S390_R0_REGNUM ... S390_R15_REGNUM: -return gdb_get_regl (mem_buf, env->regs[n -S390_R0_REGNUM ]); +return gdb_get_reg64 (mem_buf, env->regs[n -S390_R0_REGNUM ]); }return 0 ; }
@@ -190,7 +190,7 @@ static int cpu_read_c_reg(CPUState *cs, GByteArray *buf, int n)switch (n) { case S390_C0_REGNUM ... S390_C15_REGNUM: -return gdb_get_regl (buf, env->cregs[n]); +return gdb_get_reg64 (buf, env->cregs[n]);default :return 0 ; }
@@ -227,13 +227,13 @@ static int cpu_read_virt_reg(CPUState *cs, GByteArray *mem_buf, int n)switch (n) {case S390_VIRT_CKC_REGNUM : -return gdb_get_regl (mem_buf, env->ckc); +return gdb_get_reg64 (mem_buf, env->ckc);case S390_VIRT_CPUTM_REGNUM : -return gdb_get_regl (mem_buf, env->cputm); +return gdb_get_reg64 (mem_buf, env->cputm);case S390_VIRT_BEA_REGNUM : -return gdb_get_regl (mem_buf, env->gbea); +return gdb_get_reg64 (mem_buf, env->gbea);case S390_VIRT_PREFIX_REGNUM : -return gdb_get_regl (mem_buf, env->psa); +return gdb_get_reg64 (mem_buf, env->psa);default :return 0 ; }
@@ -279,13 +279,13 @@ static int cpu_read_virt_kvm_reg(CPUState *cs, GByteArray *mem_buf, int n)switch (n) {case S390_VIRT_KVM_PP_REGNUM : -return gdb_get_regl (mem_buf, env->pp); +return gdb_get_reg64 (mem_buf, env->pp);case S390_VIRT_KVM_PFT_REGNUM : -return gdb_get_regl (mem_buf, env->pfault_token); +return gdb_get_reg64 (mem_buf, env->pfault_token);case S390_VIRT_KVM_PFS_REGNUM : -return gdb_get_regl (mem_buf, env->pfault_select); +return gdb_get_reg64 (mem_buf, env->pfault_select);case S390_VIRT_KVM_PFC_REGNUM : -return gdb_get_regl (mem_buf, env->pfault_compare); +return gdb_get_reg64 (mem_buf, env->pfault_compare);default :return 0 ; }
@@ -330,7 +330,7 @@ static int cpu_read_gs_reg(CPUState *cs, GByteArray *buf, int n)S390CPU *cpu =S390_CPU (cs);CPUS390XState *env = &cpu->env; -return gdb_get_regl (buf, env->gscb[n]); +return gdb_get_reg64 (buf, env->gscb[n]); }static int cpu_write_gs_reg (CPUState *cs,uint8_t *mem_buf,int n)
Signature · 1 line
2.52.0
[PULL 04/14] MAINTAINERS: Add util/s390x_pci_mmio.c to the S390 PCI section
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
s390x_pci_mmio.c currently shows up as unmaintained. Add it to the S390 PCI section to make the right people aware of changes to this file.
Message-ID: <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -1844,6 +1844,7 @@ M: Eric Farman <[email protected]> S: Supported F: hw/s390x/s390-pci* F: include/hw/s390x/s390-pci* +F: util/s390x_pci_mmio.c L: [email protected] S390 channel subsystem
Signature · 1 line
2.52.0
[PULL 14/14] tests/functional/qemu_test/testcase: Fix mismatched quotations
In reply to Thomas HuthFrom: Yodel Eldar <[email protected]>
A debug string incorrectly mixes single-quotes with double-quotes, causing the variable within to be treated as a literal. Fix it.
Message-ID: <[email protected]>
--- tests/functional/qemu_test/testcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/functional/qemu_test/testcase.py +1 -1
@@ -348,7 +348,7 @@ def require_netdev(self, netdevname): helptxt = run([self.qemu_bin, '-M', 'none', '-netdev', 'help'], capture_output=True, check=True, encoding='utf8').stdout if helptxt.find('\n' + netdevname + '\n') < 0: - self.skipTest('no support for " + netdevname + " networking') + self.skipTest('no support for ' + netdevname + ' networking') def require_device(self, devicename): helptxt = run([self.qemu_bin, '-M', 'none', '-device', 'help'],
Signature · 1 line
2.52.0
[PULL 11/14] target/s390x: Use big-endian variant of cpu_ld/st_data*()
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
We only build the S390x target using big endianness order, therefore the cpu_ld/st_data*() definitions expand to the big endian declarations. Use the explicit big-endian variants.
Mechanical change running:
$ tgt=s390x; \
end=be; \
for op in data mmuidx_ra; do \
for ac in uw sw l q; do \
sed -i -e "s/cpu_ld${ac}_${op}/cpu_ld${ac}_${end}_${op}/" \
$(git grep -l cpu_ target/${tgt}/); \
done;
for ac in w l q; do \
sed -i -e "s/cpu_st${ac}_${op}/cpu_st${ac}_${end}_${op}/" \
$(git grep -l cpu_ target/${tgt}/); \
done;
doneMessage-ID: <[email protected]>
--- target/s390x/tcg/mem_helper.c | 48 +++++++++++++++++------------------ target/s390x/tcg/vec_helper.c | 8 +++--- 2 files changed, 28 insertions(+), 28 deletions(-)
target/s390x/tcg/mem_helper.c +24 -24
@@ -101,7 +101,7 @@ static inline uint64_t cpu_ldusize_data_ra(CPUS390XState *env, uint64_t addr,case 1 :return cpu_ldub_data_ra (env, addr, ra);case 2 : -return cpu_lduw_data_ra (env, addr, ra); +return cpu_lduw_be_data_ra (env, addr, ra);default :abort (); }
@@ -117,7 +117,7 @@ static inline void cpu_stsize_data_ra(CPUS390XState *env, uint64_t addr,cpu_stb_data_ra (env, addr, value, ra);break ;case 2 : -cpu_stw_data_ra (env, addr, value, ra); +cpu_stw_be_data_ra (env, addr, value, ra);break ;default :abort ();
@@ -865,7 +865,7 @@ void HELPER(srstu)(CPUS390XState *env, uint32_t r1, uint32_t r2) env->cc_op =2 ;return ; } - v =cpu_lduw_data_ra (env, str + len, ra); + v =cpu_lduw_be_data_ra (env, str + len, ra);if (v == c) {/* Character found. Set R1 to the location; R2 is unmodified. */ env->cc_op =1 ;
@@ -1023,7 +1023,7 @@ void HELPER(lam)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { - env->aregs[i] =cpu_ldl_data_ra (env, a2, ra); + env->aregs[i] =cpu_ldl_be_data_ra (env, a2, ra); a2 +=4 ;if (i == r3) {
@@ -1043,7 +1043,7 @@ void HELPER(stam)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { -cpu_stl_data_ra (env, a2, env->aregs[i], ra); +cpu_stl_be_data_ra (env, a2, env->aregs[i], ra); a2 +=4 ;if (i == r3) {
@@ -1364,7 +1364,7 @@ Int128 HELPER(cksm)(CPUS390XState *env, uint64_t r1,/* Process full words as available. */ for (len =0 ; len +4 <= max_len; len +=4 , src +=4 ) { - cksm += (uint32_t )cpu_ldl_data_ra (env, src, ra); + cksm += (uint32_t )cpu_ldl_be_data_ra (env, src, ra); }switch (max_len - len) {
@@ -1373,11 +1373,11 @@ Int128 HELPER(cksm)(CPUS390XState *env, uint64_t r1, len +=1 ;break ;case 2 : - cksm +=cpu_lduw_data_ra (env, src, ra) <<16 ; + cksm +=cpu_lduw_be_data_ra (env, src, ra) <<16 ; len +=2 ;break ;case 3 : - cksm +=cpu_lduw_data_ra (env, src, ra) <<16 ; + cksm +=cpu_lduw_be_data_ra (env, src, ra) <<16 ; cksm +=cpu_ldub_data_ra (env, src +2 , ra) <<8 ; len +=3 ;break ;
@@ -1956,7 +1956,7 @@ void HELPER(lctlg)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { -uint64_t val =cpu_ldq_data_ra (env, src, ra); +uint64_t val =cpu_ldq_be_data_ra (env, src, ra);if (env->cregs[i] != val && i >=9 && i <=11 ) { PERchanged = true; }
@@ -1993,7 +1993,7 @@ void HELPER(lctl)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { -uint32_t val =cpu_ldl_data_ra (env, src, ra); +uint32_t val =cpu_ldl_be_data_ra (env, src, ra);uint64_t val64 =deposit64 (env->cregs[i],0 ,32 , val);if ((uint32_t )env->cregs[i] != val && i >=9 && i <=11 ) { PERchanged = true;
@@ -2029,7 +2029,7 @@ void HELPER(stctg)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { -cpu_stq_data_ra (env, dest, env->cregs[i], ra); +cpu_stq_be_data_ra (env, dest, env->cregs[i], ra); dest +=sizeof (uint64_t );if (i == r3) {
@@ -2049,7 +2049,7 @@ void HELPER(stctl)(CPUS390XState *env, uint32_t r1, uint64_t a2, uint32_t r3) }for (i = r1;; i = (i +1 ) %16 ) { -cpu_stl_data_ra (env, dest, env->cregs[i], ra); +cpu_stl_be_data_ra (env, dest, env->cregs[i], ra); dest +=sizeof (uint32_t );if (i == r3) {
@@ -2066,7 +2066,7 @@ uint32_t HELPER(testblock)(CPUS390XState *env, uint64_t real_addr) real_addr =wrap_address (env, real_addr) &TARGET_PAGE_MASK ;for (i =0 ; i <TARGET_PAGE_SIZE ; i +=8 ) { -cpu_stq_mmuidx_ra (env, real_addr + i,0 ,MMU_REAL_IDX , ra); +cpu_stq_be_mmuidx_ra (env, real_addr + i,0 ,MMU_REAL_IDX , ra); }return 0 ;
@@ -2325,11 +2325,11 @@ void HELPER(idte)(CPUS390XState *env, uint64_t r1, uint64_t r2, uint32_t m4)for (i =0 ; i < entries; i++) {/* addresses are not wrapped in 24/31bit mode but table index is */ raddr = table + ((index + i) &0x7ff ) *sizeof (entry); - entry =cpu_ldq_mmuidx_ra (env, raddr,MMU_REAL_IDX , ra); + entry =cpu_ldq_be_mmuidx_ra (env, raddr,MMU_REAL_IDX , ra);if (!(entry ®ION_ENTRY_I )) {/* we are allowed to not store if already invalid */ entry |=REGION_ENTRY_I ; -cpu_stq_mmuidx_ra (env, raddr, entry,MMU_REAL_IDX , ra); +cpu_stq_be_mmuidx_ra (env, raddr, entry,MMU_REAL_IDX , ra); } } }
@@ -2356,9 +2356,9 @@ void HELPER(ipte)(CPUS390XState *env, uint64_t pto, uint64_t vaddr, pte_addr +=VADDR_PAGE_TX (vaddr) *8 ;/* Mark the page table entry as invalid */ - pte =cpu_ldq_mmuidx_ra (env, pte_addr,MMU_REAL_IDX , ra); + pte =cpu_ldq_be_mmuidx_ra (env, pte_addr,MMU_REAL_IDX , ra); pte |=PAGE_ENTRY_I ; -cpu_stq_mmuidx_ra (env, pte_addr, pte,MMU_REAL_IDX , ra); +cpu_stq_be_mmuidx_ra (env, pte_addr, pte,MMU_REAL_IDX , ra);/* XXX we exploit the fact that Linux passes the exact virtual address here - it's not obliged to! */
@@ -2700,7 +2700,7 @@ static int decode_utf16(CPUS390XState *env, uint64_t addr, uint64_t ilen,if (ilen <2 ) {return 0 ; } - s0 =cpu_lduw_data_ra (env, addr, ra); + s0 =cpu_lduw_be_data_ra (env, addr, ra);if ((s0 &0xfc00 ) !=0xd800 ) {/* one word character */ l =2 ;
@@ -2711,7 +2711,7 @@ static int decode_utf16(CPUS390XState *env, uint64_t addr, uint64_t ilen,if (ilen <4 ) {return 0 ; } - s1 =cpu_lduw_data_ra (env, addr +2 , ra); + s1 =cpu_lduw_be_data_ra (env, addr +2 , ra); c =extract32 (s0,6 ,4 ) +1 ; c = (c <<6 ) | (s0 &0x3f ); c = (c <<10 ) | (s1 &0x3ff );
@@ -2735,7 +2735,7 @@ static int decode_utf32(CPUS390XState *env, uint64_t addr, uint64_t ilen,if (ilen <4 ) {return 0 ; } - c =cpu_ldl_data_ra (env, addr, ra); + c =cpu_ldl_be_data_ra (env, addr, ra);if ((c >=0xd800 && c <=0xdbff ) || c >0x10ffff ) {/* invalid unicode character */ return 2 ;
@@ -2797,7 +2797,7 @@ static int encode_utf16(CPUS390XState *env, uint64_t addr, uint64_t ilen,if (ilen <2 ) {return 1 ; } -cpu_stw_data_ra (env, addr, c, ra); +cpu_stw_be_data_ra (env, addr, c, ra); *olen =2 ; }else {/* two word character */
@@ -2807,8 +2807,8 @@ static int encode_utf16(CPUS390XState *env, uint64_t addr, uint64_t ilen, d1 =0xdc00 |extract32 (c,0 ,10 ); d0 =0xd800 |extract32 (c,10 ,6 ); d0 =deposit32 (d0,6 ,4 ,extract32 (c,16 ,5 ) -1 ); -cpu_stw_data_ra (env, addr +0 , d0, ra); -cpu_stw_data_ra (env, addr +2 , d1, ra); +cpu_stw_be_data_ra (env, addr +0 , d0, ra); +cpu_stw_be_data_ra (env, addr +2 , d1, ra); *olen =4 ; }
@@ -2821,7 +2821,7 @@ static int encode_utf32(CPUS390XState *env, uint64_t addr, uint64_t ilen,if (ilen <4 ) {return 1 ; } -cpu_stl_data_ra (env, addr, c, ra); +cpu_stl_be_data_ra (env, addr, c, ra); *olen =4 ;return -1 ; }
target/s390x/tcg/vec_helper.c +4 -4
@@ -45,9 +45,9 @@ void HELPER(vll)(CPUS390XState *env, void *v1, uint64_t addr, uint64_t bytes)if (likely (bytes >=16 )) {uint64_t t0, t1; - t0 =cpu_ldq_data_ra (env, addr,GETPC ()); + t0 =cpu_ldq_be_data_ra (env, addr,GETPC ()); addr =wrap_address (env, addr +8 ); - t1 =cpu_ldq_data_ra (env, addr,GETPC ()); + t1 =cpu_ldq_be_data_ra (env, addr,GETPC ());s390_vec_write_element64 (v1,0 , t0);s390_vec_write_element64 (v1,1 , t1); }else {
@@ -195,9 +195,9 @@ void HELPER(vstl)(CPUS390XState *env, const void *v1, uint64_t addr,probe_write_access (env, addr,MIN (bytes,16 ),GETPC ());if (likely (bytes >=16 )) { -cpu_stq_data_ra (env, addr,s390_vec_read_element64 (v1,0 ),GETPC ()); +cpu_stq_be_data_ra (env, addr,s390_vec_read_element64 (v1,0 ),GETPC ()); addr =wrap_address (env, addr +8 ); -cpu_stq_data_ra (env, addr,s390_vec_read_element64 (v1,1 ),GETPC ()); +cpu_stq_be_data_ra (env, addr,s390_vec_read_element64 (v1,1 ),GETPC ()); }else {int i;
Signature · 1 line
2.52.0
[PULL 05/14] MAINTAINERS: Add configs/targets/s390x-softmmu.mak to the S390 general section
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
Make sure that configs/targets/s390x-softmmu.mak is covered by MAINTAINERS - the "S390 general architecture support" section seems to be a good place for this.
Message-ID: <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -105,6 +105,7 @@ S390 general architecture support M: Thomas Huth <[email protected]> S: Supported F: configs/devices/s390x-softmmu/default.mak +F: configs/targets/s390x-softmmu.mak F: gdb-xml/s390*.xml F: hw/char/sclp*.[hc] F: hw/char/terminal3270.c
Signature · 1 line
2.52.0
[PULL 10/14] target/s390x: Inline cpu_ld{uw, l}_code() calls in EX opcode helper
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
In preparation of removing the cpu_lduw_code() and cpu_ldl_code() wrappers, inline them.
Since S390x instructions are always stored in big-endian order, replace MO_TE -> MO_BE.
Message-ID: <[email protected]>
--- target/s390x/tcg/mem_helper.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
target/s390x/tcg/mem_helper.c +7 -3
@@ -2430,15 +2430,18 @@ uint64_t HELPER(lra)(CPUS390XState *env, uint64_t r1, uint64_t addr)*/ void HELPER (ex )(CPUS390XState *env,uint32_t ilen,uint64_t r1,uint64_t addr) { +CPUState *cs =env_cpu (env);uint64_t insn;uint8_t opc; +MemOpIdx oi;/* EXECUTE targets must be at even addresses. */ if (addr &1 ) {tcg_s390_program_interrupt (env,PGM_SPECIFICATION ,GETPC ()); } - insn =cpu_lduw_code (env, addr); + oi =make_memop_idx (MO_BEUW ,cpu_mmu_index (cs, true)); + insn =cpu_ldw_code_mmu (env, addr, oi,0 ); opc = insn >>8 ;/* Or in the contents of R1[56:63]. */
@@ -2450,10 +2453,11 @@ void HELPER(ex)(CPUS390XState *env, uint32_t ilen, uint64_t r1, uint64_t addr)case 2 :break ;case 4 : - insn |= (uint64_t )cpu_lduw_code (env, addr +2 ) <<32 ; + insn |= (uint64_t )cpu_ldw_code_mmu (env, addr +2 , oi,0 ) <<32 ;break ;case 6 : - insn |= (uint64_t )(uint32_t )cpu_ldl_code (env, addr +2 ) <<16 ; + oi =make_memop_idx (MO_BEUL ,cpu_mmu_index (cs, true)); + insn |= (uint64_t )(uint32_t )cpu_ldl_code_mmu (env, addr +2 , oi,0 ) <<16 ;break ;default :g_assert_not_reached ();
Signature · 1 line
2.52.0
[PULL 09/14] target/s390x: Replace MO_TE -> MO_BE
In reply to Thomas HuthFrom: Philippe Mathieu-Daudé <[email protected]>
We only build the S390x target using big endianness order, therefore the MO_TE definitions expand to the big endian one. Use the latter which is more explicit.
Mechanical change running:
$ sed -i -e s/MO_TE/MO_BE/ \
$(git grep -wl MO_TE target/s390x/)Message-ID: <[email protected]>
--- target/s390x/tcg/insn-data.h.inc | 54 +++++------ target/s390x/tcg/mem_helper.c | 8 +- target/s390x/tcg/translate.c | 138 ++++++++++++++-------------- target/s390x/tcg/translate_vx.c.inc | 38 ++++---- 4 files changed, 119 insertions(+), 119 deletions(-)
target/s390x/tcg/insn-data.h.inc +27 -27
@@ -42,10 +42,10 @@ C(0xb9d8, AHHLR, RRF_a, HW, r2_sr32, r3, new, r1_32h, add, adds32) /* ADD IMMEDIATE */ C(0xc209, AFI, RIL_a, EI, r1, i2, new, r1_32, add, adds32) - D(0xeb6a, ASI, SIY, GIE, la1, i2, new, 0, asi, adds32, MO_TESL) + D(0xeb6a, ASI, SIY, GIE, la1, i2, new, 0, asi, adds32, MO_BESL) C(0xecd8, AHIK, RIE_d, DO, r3, i2, new, r1_32, add, adds32) C(0xc208, AGFI, RIL_a, EI, r1, i2, r1, 0, add, adds64) - D(0xeb7a, AGSI, SIY, GIE, la1, i2, new, 0, asi, adds64, MO_TEUQ) + D(0xeb7a, AGSI, SIY, GIE, la1, i2, new, 0, asi, adds64, MO_BEUQ) C(0xecd9, AGHIK, RIE_d, DO, r3, i2, r1, 0, add, adds64) /* ADD IMMEDIATE HIGH */ C(0xcc08, AIH, RIL_a, HW, r1_sr32, i2, new, r1_32h, add, adds32)
@@ -74,9 +74,9 @@ C(0xc20b, ALFI, RIL_a, EI, r1_32u, i2_32u, new, r1_32, add, addu32) C(0xc20a, ALGFI, RIL_a, EI, r1, i2_32u, r1, 0, addu64, addu64) /* ADD LOGICAL WITH SIGNED IMMEDIATE */ - D(0xeb6e, ALSI, SIY, GIE, la1, i2_32u, new, 0, asi, addu32, MO_TEUL) + D(0xeb6e, ALSI, SIY, GIE, la1, i2_32u, new, 0, asi, addu32, MO_BEUL) C(0xecda, ALHSIK, RIE_d, DO, r3_32u, i2_32u, new, r1_32, add, addu32) - D(0xeb7e, ALGSI, SIY, GIE, la1, i2, new, 0, asiu64, addu64, MO_TEUQ) + D(0xeb7e, ALGSI, SIY, GIE, la1, i2, new, 0, asiu64, addu64, MO_BEUQ) C(0xecdb, ALGHSIK, RIE_d, DO, r3, i2, r1, 0, addu64, addu64) /* ADD LOGICAL WITH SIGNED IMMEDIATE HIGH */ C(0xcc0a, ALSIH, RIL_a, HW, r1_sr32, i2_32u, new, r1_32h, add, addu32)
@@ -270,12 +270,12 @@ D(0xec7d, CLGIJ, RIE_c, GIE, r1_o, i2_8u, 0, 0, cj, 0, 1) /* COMPARE AND SWAP */ - D(0xba00, CS, RS_a, Z, r3_32u, r1_32u, new, r1_32, cs, 0, MO_TEUL) - D(0xeb14, CSY, RSY_a, LD, r3_32u, r1_32u, new, r1_32, cs, 0, MO_TEUL) - D(0xeb30, CSG, RSY_a, Z, r3_o, r1_o, new, r1, cs, 0, MO_TEUQ) + D(0xba00, CS, RS_a, Z, r3_32u, r1_32u, new, r1_32, cs, 0, MO_BEUL) + D(0xeb14, CSY, RSY_a, LD, r3_32u, r1_32u, new, r1_32, cs, 0, MO_BEUL) + D(0xeb30, CSG, RSY_a, Z, r3_o, r1_o, new, r1, cs, 0, MO_BEUQ) /* COMPARE DOUBLE AND SWAP */ - D(0xbb00, CDS, RS_a, Z, r3_D32, r1_D32, new, r1_D32, cs, 0, MO_TEUQ) - D(0xeb31, CDSY, RSY_a, LD, r3_D32, r1_D32, new, r1_D32, cs, 0, MO_TEUQ) + D(0xbb00, CDS, RS_a, Z, r3_D32, r1_D32, new, r1_D32, cs, 0, MO_BEUQ) + D(0xeb31, CDSY, RSY_a, LD, r3_D32, r1_D32, new, r1_D32, cs, 0, MO_BEUQ) C(0xeb3e, CDSG, RSY_a, Z, la2, r3_D64, 0, r1_D64, cdsg, 0) /* COMPARE AND SWAP AND STORE */ C(0xc802, CSST, SSF, CASS, la1, a2, 0, 0, csst, 0)
@@ -443,20 +443,20 @@ /* LOAD ADDRESS RELATIVE LONG */ C(0xc000, LARL, RIL_b, Z, 0, ri2, 0, r1, mov2, 0) /* LOAD AND ADD */ - D(0xebf8, LAA, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, laa, adds32, MO_TESL) - D(0xebe8, LAAG, RSY_a, ILA, r3, a2, new, in2_r1, laa, adds64, MO_TEUQ) + D(0xebf8, LAA, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, laa, adds32, MO_BESL) + D(0xebe8, LAAG, RSY_a, ILA, r3, a2, new, in2_r1, laa, adds64, MO_BEUQ) /* LOAD AND ADD LOGICAL */ - D(0xebfa, LAAL, RSY_a, ILA, r3_32u, a2, new, in2_r1_32, laa, addu32, MO_TEUL) - D(0xebea, LAALG, RSY_a, ILA, r3, a2, new, in2_r1, laa_addu64, addu64, MO_TEUQ) + D(0xebfa, LAAL, RSY_a, ILA, r3_32u, a2, new, in2_r1_32, laa, addu32, MO_BEUL) + D(0xebea, LAALG, RSY_a, ILA, r3, a2, new, in2_r1, laa_addu64, addu64, MO_BEUQ) /* LOAD AND AND */ - D(0xebf4, LAN, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lan, nz32, MO_TESL) - D(0xebe4, LANG, RSY_a, ILA, r3, a2, new, in2_r1, lan, nz64, MO_TEUQ) + D(0xebf4, LAN, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lan, nz32, MO_BESL) + D(0xebe4, LANG, RSY_a, ILA, r3, a2, new, in2_r1, lan, nz64, MO_BEUQ) /* LOAD AND EXCLUSIVE OR */ - D(0xebf7, LAX, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lax, nz32, MO_TESL) - D(0xebe7, LAXG, RSY_a, ILA, r3, a2, new, in2_r1, lax, nz64, MO_TEUQ) + D(0xebf7, LAX, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lax, nz32, MO_BESL) + D(0xebe7, LAXG, RSY_a, ILA, r3, a2, new, in2_r1, lax, nz64, MO_BEUQ) /* LOAD AND OR */ - D(0xebf6, LAO, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lao, nz32, MO_TESL) - D(0xebe6, LAOG, RSY_a, ILA, r3, a2, new, in2_r1, lao, nz64, MO_TEUQ) + D(0xebf6, LAO, RSY_a, ILA, r3_32s, a2, new, in2_r1_32, lao, nz32, MO_BESL) + D(0xebe6, LAOG, RSY_a, ILA, r3, a2, new, in2_r1, lao, nz64, MO_BEUQ) /* LOAD AND TEST */ C(0x1200, LTR, RR_a, Z, 0, r2_o, 0, cond_r1r2_32, mov2, s32) C(0xb902, LTGR, RRE, Z, 0, r2_o, 0, r1, mov2, s64)
@@ -572,8 +572,8 @@ C(0xb9e0, LOCFHR, RRF_c, LOC2, r1_sr32, r2_sr32, new, r1_32h, loc, 0) C(0xebe0, LOCFH, RSY_b, LOC2, r1_sr32, m2_32u, new, r1_32h, loc, 0) /* LOAD PAIR DISJOINT */ - D(0xc804, LPD, SSF, ILA, 0, 0, new_P, r3_P32, lpd, 0, MO_TEUL) - D(0xc805, LPDG, SSF, ILA, 0, 0, new_P, r3_P64, lpd, 0, MO_TEUQ) + D(0xc804, LPD, SSF, ILA, 0, 0, new_P, r3_P32, lpd, 0, MO_BEUL) + D(0xc805, LPDG, SSF, ILA, 0, 0, new_P, r3_P64, lpd, 0, MO_BEUQ) /* LOAD PAIR FROM QUADWORD */ C(0xe38f, LPQ, RXY_a, Z, 0, a2, 0, r1_D64, lpq, 0) /* LOAD POSITIVE */
@@ -1333,8 +1333,8 @@ #ifndef CONFIG_USER_ONLY /* COMPARE AND SWAP AND PURGE */ - E(0xb250, CSP, RRE, Z, r1_32u, ra2, r1_P, 0, csp, 0, MO_TEUL, IF_PRIV) - E(0xb98a, CSPG, RRE, DAT_ENH, r1_o, ra2, r1_P, 0, csp, 0, MO_TEUQ, IF_PRIV) + E(0xb250, CSP, RRE, Z, r1_32u, ra2, r1_P, 0, csp, 0, MO_BEUL, IF_PRIV) + E(0xb98a, CSPG, RRE, DAT_ENH, r1_o, ra2, r1_P, 0, csp, 0, MO_BEUQ, IF_PRIV) /* DIAGNOSE (KVM hypercall) */ F(0x8300, DIAG, RSI, Z, 0, 0, 0, 0, diag, 0, IF_PRIV | IF_IO) /* INSERT STORAGE KEY EXTENDED */
@@ -1357,8 +1357,8 @@ F(0xe313, LRAY, RXY_a, LD, 0, a2, r1, 0, lra, 0, IF_PRIV) F(0xe303, LRAG, RXY_a, Z, 0, a2, r1, 0, lra, 0, IF_PRIV) /* LOAD USING REAL ADDRESS */ - E(0xb24b, LURA, RRE, Z, 0, ra2, new, r1_32, lura, 0, MO_TEUL, IF_PRIV) - E(0xb905, LURAG, RRE, Z, 0, ra2, r1, 0, lura, 0, MO_TEUQ, IF_PRIV) + E(0xb24b, LURA, RRE, Z, 0, ra2, new, r1_32, lura, 0, MO_BEUL, IF_PRIV) + E(0xb905, LURAG, RRE, Z, 0, ra2, r1, 0, lura, 0, MO_BEUQ, IF_PRIV) /* MOVE TO PRIMARY */ C(0xda00, MVCP, SS_d, Z, la1, a2, 0, 0, mvcp, 0) /* MOVE TO SECONDARY */
@@ -1411,8 +1411,8 @@ /* STORE THEN OR SYSTEM MASK */ F(0xad00, STOSM, SI, Z, la1, 0, 0, 0, stnosm, 0, IF_PRIV) /* STORE USING REAL ADDRESS */ - E(0xb246, STURA, RRE, Z, r1_o, ra2, 0, 0, stura, 0, MO_TEUL, IF_PRIV) - E(0xb925, STURG, RRE, Z, r1_o, ra2, 0, 0, stura, 0, MO_TEUQ, IF_PRIV) + E(0xb246, STURA, RRE, Z, r1_o, ra2, 0, 0, stura, 0, MO_BEUL, IF_PRIV) + E(0xb925, STURG, RRE, Z, r1_o, ra2, 0, 0, stura, 0, MO_BEUQ, IF_PRIV) /* TEST BLOCK */ F(0xb22c, TB, RRE, Z, 0, r2_o, 0, 0, testblock, 0, IF_PRIV) /* TEST PROTECTION */
target/s390x/tcg/mem_helper.c +4 -4
@@ -1776,10 +1776,10 @@ static uint32_t do_csst(CPUS390XState *env, uint32_t r3, uint64_t a1, uint64_t a2, bool parallel) { uint32_t mem_idx = s390x_env_mmu_index(env, false); -MemOpIdx oi16 =make_memop_idx (MO_TE |MO_128 , mem_idx); -MemOpIdx oi8 =make_memop_idx (MO_TE |MO_64 , mem_idx); -MemOpIdx oi4 =make_memop_idx (MO_TE |MO_32 , mem_idx); -MemOpIdx oi2 =make_memop_idx (MO_TE |MO_16 , mem_idx); +MemOpIdx oi16 =make_memop_idx (MO_BE |MO_128 , mem_idx); +MemOpIdx oi8 =make_memop_idx (MO_BE |MO_64 , mem_idx); +MemOpIdx oi4 =make_memop_idx (MO_BE |MO_32 , mem_idx); +MemOpIdx oi2 =make_memop_idx (MO_BE |MO_16 , mem_idx);MemOpIdx oi1 =make_memop_idx (MO_8 , mem_idx);uintptr_t ra =GETPC ();uint32_t fc =extract32 (env->regs[0 ],0 ,8 );
target/s390x/tcg/translate.c +69 -69
520 lines not on this page · raw message
target/s390x/tcg/translate_vx.c.inc +19 -19
@@ -331,7 +331,7 @@ static DisasJumpType op_vge(DisasContext *s, DisasOps *o) tcg_gen_add_i64(o->addr1, o->addr1, tmp); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 0); - tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_BE | es); write_vec_element_i64(tmp, get_field(s, v1), enr, es); return DISAS_NEXT; }
@@ -402,9 +402,9 @@ static DisasJumpType op_vl(DisasContext *s, DisasOps *o) TCGv_i64 t0 = tcg_temp_new_i64(); TCGv_i64 t1 = tcg_temp_new_i64(); - tcg_gen_qemu_ld_i64(t0, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t0, o->addr1, get_mem_index(s), MO_BEUQ); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); - tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_BEUQ); write_vec_element_i64(t0, get_field(s, v1), 0, ES_64); write_vec_element_i64(t1, get_field(s, v1), 1, ES_64); return DISAS_NEXT;
@@ -427,7 +427,7 @@ static DisasJumpType op_vlrep(DisasContext *s, DisasOps *o) } tmp = tcg_temp_new_i64(); - tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_BE | es); gen_gvec_dup_i64(es, get_field(s, v1), tmp); return DISAS_NEXT; }
@@ -561,7 +561,7 @@ static DisasJumpType op_vle(DisasContext *s, DisasOps *o) } tmp = tcg_temp_new_i64(); - tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_ld_i64(tmp, o->addr1, get_mem_index(s), MO_BE | es); write_vec_element_i64(tmp, get_field(s, v1), enr, es); return DISAS_NEXT; }
@@ -595,9 +595,9 @@ static DisasJumpType op_vler(DisasContext *s, DisasOps *o) TCGv_i64 t1 = tcg_temp_new_i64(); /* Begin with the two doublewords swapped... */ - tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_BEUQ); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); - tcg_gen_qemu_ld_i64(t0, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t0, o->addr1, get_mem_index(s), MO_BEUQ); /* ... then swap smaller elements within the doublewords as required. */ switch (es) {
@@ -693,7 +693,7 @@ static DisasJumpType op_vllez(DisasContext *s, DisasOps *o) } t = tcg_temp_new_i64(); - tcg_gen_qemu_ld_i64(t, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_ld_i64(t, o->addr1, get_mem_index(s), MO_BE | es); gen_gvec_dup_imm(es, get_field(s, v1), 0); write_vec_element_i64(t, get_field(s, v1), enr, es); return DISAS_NEXT;
@@ -717,16 +717,16 @@ static DisasJumpType op_vlm(DisasContext *s, DisasOps *o) t0 = tcg_temp_new_i64(); t1 = tcg_temp_new_i64(); gen_addi_and_wrap_i64(s, t0, o->addr1, (v3 - v1) * 16 + 8); - tcg_gen_qemu_ld_i64(t0, t0, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t0, t0, get_mem_index(s), MO_BEUQ); for (;; v1++) { - tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_BEUQ); write_vec_element_i64(t1, v1, 0, ES_64); if (v1 == v3) { break; } gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); - tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_ld_i64(t1, o->addr1, get_mem_index(s), MO_BEUQ); write_vec_element_i64(t1, v1, 1, ES_64); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); }
@@ -1009,7 +1009,7 @@ static DisasJumpType op_vsce(DisasContext *s, DisasOps *o) gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 0); read_vec_element_i64(tmp, get_field(s, v1), enr, es); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BE | es); return DISAS_NEXT; }
@@ -1063,10 +1063,10 @@ static DisasJumpType op_vst(DisasContext *s, DisasOps *o) tmp = tcg_temp_new_i64(); read_vec_element_i64(tmp, get_field(s, v1), 0, ES_64); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BEUQ); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); read_vec_element_i64(tmp, get_field(s, v1), 1, ES_64); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BEUQ); return DISAS_NEXT; }
@@ -1154,7 +1154,7 @@ static DisasJumpType op_vste(DisasContext *s, DisasOps *o) tmp = tcg_temp_new_i64(); read_vec_element_i64(tmp, get_field(s, v1), enr, es); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TE | es); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BE | es); return DISAS_NEXT; }
@@ -1193,9 +1193,9 @@ static DisasJumpType op_vster(DisasContext *s, DisasOps *o) g_assert_not_reached(); } - tcg_gen_qemu_st_i64(t0, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(t0, o->addr1, get_mem_index(s), MO_BEUQ); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); - tcg_gen_qemu_st_i64(t1, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(t1, o->addr1, get_mem_index(s), MO_BEUQ); return DISAS_NEXT; }
@@ -1217,10 +1217,10 @@ static DisasJumpType op_vstm(DisasContext *s, DisasOps *o) tmp = tcg_temp_new_i64(); for (;; v1++) { read_vec_element_i64(tmp, v1, 0, ES_64); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BEUQ); gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); read_vec_element_i64(tmp, v1, 1, ES_64); - tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_TEUQ); + tcg_gen_qemu_st_i64(tmp, o->addr1, get_mem_index(s), MO_BEUQ); if (v1 == v3) { break; }
Signature · 1 line
2.52.0
[PULL 13/14] tests/functional: Allow tests to be run individually
In reply to Thomas HuthFrom: Fabiano Rosas <[email protected]>
The functional tests currently don't allow a single test to be selected for execution by dotted name, e.g:
./build/run tests/functional/ppc64/test_pseries.py PseriesMachine.test_ppc64_linux_boot
^
The issue is that the testcase.py main function passes the test module's name as the second argument to unittest.main(), which makes it ignore all other positional arguments (presumably because the module is already the superset of all tests).
After commit cac08383f0 ("tests/functional: expose sys.argv to unittest.main"), the situation improves by passing the rest of the argv from the command line invocation into unittest.main(), but it still doesn't fix the issue. The short form options are now accepted, so the -k option could be used to filter for a pattern, which is useful, but not the same as listing the test names.
Fix this by passing the test module name via the "module" argument to unittest.main() and stop touching argv. The ways of invoking tests are now as per unittests documentation (-k still works):
Examples:
test_pseries.py - run default set of tests
test_pseries.py MyTestSuite - run suite 'MyTestSuite'
test_pseries.py MyTestCase.testSomething - run MyTestCase.testSomething
test_pseries.py MyTestCase - run all 'test*' test methods in MyTestCaseNote that ever since we've been programatically passing the module name to unittest.main(), the usage 'test_pseries.py test_pseries' was never valid. It used to "work" just the same as 'test_pseries.py foobar' would. After this patch, that usage results in an error.
Also note that testcase.py:main() pertains to running the test module that invoked it via QemuSystemTest.main(), i.e. module == __main__. So the 'discover' usage of unittest doesn't apply here, the module is already discovered because that's where this code was called from to begin with. This patch could just as well call unittest.main() instead of unittest.main(test_module), but the latter provides nicer error messages prefixed with the module name.
Message-ID: <[email protected]>
--- docs/devel/testing/functional.rst | 15 +++++++++++++++ tests/functional/qemu_test/testcase.py | 7 +++---- 2 files changed, 18 insertions(+), 4 deletions(-)
docs/devel/testing/functional.rst +15 -0
@@ -60,8 +60,23 @@ Assuming the current working directory is the top level source checkout and the build directory is './build':: $ export QEMU_TEST_QEMU_BINARY=qemu-system-x86_64 + +Run all tests from a test file:: + $ ./build/run tests/functional/x86_64/test_virtio_version.py +Run all tests from a test class:: + + $ ./build/run tests/functional/x86_64/test_virtio_version.py VirtioVersionCheck + +Or a single test:: + + $ ./build/run tests/functional/x86_64/test_virtio_version.py VirtioVersionCheck.test_modern_only_devs + +Filtering test names also works:: + + $ ./build/run tests/functional/x86_64/test_virtio_version.py -k modern + The test framework will automatically purge any scratch files created during the tests. If needing to debug a failed test, it is possible to keep these files around on disk by setting ``QEMU_TEST_KEEP_SCRATCH=1`` as an env
tests/functional/qemu_test/testcase.py +3 -4
@@ -249,17 +249,16 @@ def main(): warnings.simplefilter("default") os.environ["PYTHONWARNINGS"] = "default" - path = os.path.basename(sys.argv[0])[:-3] + test_module = os.path.basename(sys.argv[0])[:-3] cache = os.environ.get("QEMU_TEST_PRECACHE", None) if cache is not None: - Asset.precache_suites(path, cache) + Asset.precache_suites(test_module, cache) return tr = pycotap.TAPTestRunner(message_log = pycotap.LogMode.LogToError, test_output_log = pycotap.LogMode.LogToError) - res = unittest.main(module = None, testRunner = tr, exit = False, - argv=[sys.argv[0], path] + sys.argv[1:]) + res = unittest.main(test_module, testRunner = tr, exit = False) failed = {} for (test, _message) in res.result.errors + res.result.failures: if hasattr(test, "log_filename") and not test.id() in failed:
Signature · 1 line
2.52.0
Richard Henderson
AppliedQuoted 12 lines · Thomas Huth
Happy new year!
The following changes since commit
0fc482b73d8e085d1375b4e17b0647fd2e6fe8f0:Merge tag 'pull-aspeed-20260105' ofhttps://github.com/legoater/qemu into staging (2026-01-06 06:52:47 +1100)are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2026-01-07for you to fetch changes up to
80802278817770783a07eebc06adc157df89d827:
Quoted 7 lines
tests/functional/qemu_test/testcase: Fix mismatched quotations (2026-01-07 10:41:40 +0100)----------------------------------------------------------------
* Compat machines for 11.0
* Add some more files to theMAINTAINERSfile
* Use explicit big-endian API calls in the s390x code
* Add the possibility to run sub-tests manually in the functional test suite
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/11.0 as appropriate.
r~