[PATCH 01/23] hw/mips/cps: Keep reference of vCPUs in MIPSCPSState

2025-01-12 Thread Philippe Mathieu-Daudé
When a QOM object create children with object_new(), it is better to keep reference to them for further use. In particular, this allow to remove one global &first_cpu use. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/cps.h | 1 + hw/mips/cps.c | 4 +++- 2 files changed, 4 in

[PATCH 04/23] hw/mips/bootloader: Propagate CPU env to bootcpu_supports_isa()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bootcpu_supports_isa() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c ind

[PATCH 05/23] hw/mips/bootloader: Propagate CPU env to bl_gen_nop()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_nop() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 918ce7795c4..b2be9267516

[PATCH 14/23] hw/mips/bootloader: Propagate CPU to bl_gen_jump_kernel()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target agnostic CPU pointer to the publicly declared bl_gen_jump_kernel() function. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 2 +- hw/mips/bootloader.c | 14 +++--- hw/mips/boston.c | 2 +- hw/mips/fuloong2e.c |

[PATCH 12/23] hw/mips/bootloader: Propagate CPU env to bl_gen_load_ulong()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_load_ulong() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader

[PATCH 17/23] hw/mips/bootloader: Propagate CPU to bl_gen_write_u64()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target agnostic CPU pointer to the publicly declared bl_gen_write_u64() function. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 3 ++- hw/mips/bootloader.c | 9 + hw/mips/boston.c | 6 +++--- 3 files changed, 10 insertions(+),

[PATCH 11/23] hw/mips/bootloader: Propagate CPU env to bl_gen_dli()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_dli() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 32811e48cdd..95e

[PATCH 13/23] hw/mips/bootloader: Propagate CPU to bl_gen_jump_to()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target agnostic CPU pointer to the publicly declared bl_gen_jump_to() function. Include "target/mips/cpu-qom.h" to get MIPSCPU typedef. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 3 ++- hw/mips/bootloader.c | 10 +- 2 files changed, 7

[PATCH 07/23] hw/mips/bootloader: Propagate CPU env to bl_gen_jalr()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_jalr() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 7cf1f01d225..9f35b23653

[PATCH 06/23] hw/mips/bootloader: Propagate CPU env to bl_gen_dsll()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_dsll() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index b2be9267516..7cf1f01

[PATCH 21/23] hw/mips/malta: Propagate MaltaState to write_bootloader()

2025-01-12 Thread Philippe Mathieu-Daudé
Pass MaltaState as argument to write_bootloader() so next commit can propagate it to bl_setup_gt64120_jump_kernel(). Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/malta.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/mips/malta.c b/hw/mips/malta.c index a0

[PATCH 23/23] hw/mips/malta: Remove all uses of &first_cpu global

2025-01-12 Thread Philippe Mathieu-Daudé
Now than bl_setup_gt64120_jump_kernel() has access to the MaltaState::cpus[] array, it doesn't need the &first_cpu global anymore. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/malta.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hw/mips/malta.c

[PATCH 15/23] hw/mips/bootloader: Propagate CPU to bl_gen_write_ulong()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target agnostic CPU pointer to the publicly declared bl_gen_write_ulong() function. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 3 ++- hw/mips/bootloader.c | 13 +++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/inclu

[PATCH 09/23] hw/mips/bootloader: Propagate CPU env to bl_gen_sd()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_sd() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 30e6422d331..34c3043a5

[PATCH 16/23] hw/mips/bootloader: Propagate CPU to bl_gen_write_u32()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target agnostic CPU pointer to the publicly declared bl_gen_write_u32() function. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/mips/bootloader.h | 3 ++- hw/mips/bootloader.c | 9 + hw/mips/malta.c | 18 +- 3 files changed, 16

[PATCH 08/23] hw/mips/bootloader: Propagate CPU env to bl_gen_sw()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_sw() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 9f35b23653a..30e6422d3

[PATCH 10/23] hw/mips/bootloader: Propagate CPU env to bl_gen_li()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate the target specific CPU env to the locally declared bl_gen_li() function. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/bootloader.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/mips/bootloader.c b/hw/mips/bootloader.c index 34c3043a563..32811e

[PATCH 18/23] hw/mips/boston: Propagate CPU to gen_firmware()

2025-01-12 Thread Philippe Mathieu-Daudé
In boston_mach_init(), resolves the first CPU from the CPS container using the QOM "cpu[0]" path. Propagate it to gen_firmware(), removing the &first_cpu use. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/boston.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --

[PATCH 19/23] hw/mips/fuloong: Propagate CPU to write_bootloader()

2025-01-12 Thread Philippe Mathieu-Daudé
mips_fuloong2e_init() created the vCPU so has its reference, propagate it to write_bootloader(), removing the &first_cpu use. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/fuloong2e.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/fuloong2e.c b/hw/mips/fulo

qemu-devel@nongnu.org

2025-01-12 Thread Alistair Francis
On Mon, Jan 13, 2025 at 9:14 AM Philippe Mathieu-Daudé wrote: > > Pass RISCVCPU to kvm_riscv_get_timebase_frequency(), > then access the first vCPU via Virt::Array::Hart[] > rather than the &first_cpu global, which is going to > be removed as part of the heterogeneous emulation > effort. > > Phili

[PATCH 22/23] hw/mips/malta: Propagate MaltaState to bl_setup_gt64120_jump_kernel()

2025-01-12 Thread Philippe Mathieu-Daudé
Propagate MaltaState to bl_setup_gt64120_jump_kernel() so it can access the MaltaState::cpus[] array. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/malta.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/mips/malta.c b/hw/mips/malta.c index 589e1a07e47..61b47b0d

[PATCH 01/11] hw/mips/loongson3_virt: Factor generic_cpu_reset() out

2025-01-12 Thread Philippe Mathieu-Daudé
main_cpu_reset() is misleadingly named "main": it resets all vCPUs, with a special case for the first vCPU. Factor generic_cpu_reset() out of main_cpu_reset(), allowing to remove one &first_cpu use. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_virt.c | 26 +---

[PULL 26/49] hw/sd/sdhci: Set SDHC_NIS_DMA bit when appropriate

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow In U-Boot, the fsl_esdhc[_imx] driver waits for both "transmit completed" and "DMA" bits in esdhc_send_cmd_common() by means of DATA_COMPLETE constant. QEMU currently misses to set the DMA bit which causes the driver to loop forever. Fix that by setting the DMA bit if enabl

[PULL 44/49] hw/usb/hcd-xhci-pci: Use event ring 0 if mapping unsupported

2025-01-12 Thread Philippe Mathieu-Daudé
From: Phil Dennis-Jordan The XHCI specification, section 4.17.1 specifies that "If the Number of Interrupters (MaxIntrs) field is greater than 1, then Interrupter Mapping shall be supported." and "If Interrupter Mapping is not supported, the Interrupter Target field shall be ignored by the xHC an

[PULL 15/49] hw/net/xilinx_ethlite: Map TX_LEN as MMIO

2025-01-12 Thread Philippe Mathieu-Daudé
Declare TX registers as MMIO region, split it out of the current mixed RAM/MMIO region. The memory flat view becomes: (qemu) info mtree -f FlatView #0 Root memory region: system 8100-810007e3 (prio 0, i/o): xlnx.xps-ethernetlite 810007e4-810007f3

qemu-devel@nongnu.org

2025-01-12 Thread Philippe Mathieu-Daudé
triboard_machine_init() has access to the single CPU via: TriBoardMachineState { TC27XSoCState { TriCoreCPU cpu; ... } tc27x_soc; } ms; Pass it as argument to tricore_load_kernel() so we can remove the &first_cpu global use. Signed-off-by: Philippe Mathieu-Daudé Reviewed

[PULL 29/49] hw/timer/imx_gpt: Remove unused define

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250108092538.11474-11-shen...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/timer/imx_gpt.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/timer/imx_gpt.c b/hw/timer/

[PULL 41/49] target/hppa: Speed up hppa_is_pa20()

2025-01-12 Thread Philippe Mathieu-Daudé
From: Helge Deller Although the hppa_is_pa20() helper is costly due to string comparisons in object_dynamic_cast(), it is called quite often during memory lookups and at each start of a block of instruction translations. Speed hppa_is_pa20() up by calling object_dynamic_cast() only once at CPU cr

[PULL 33/49] hw/i2c/imx_i2c: Convert DPRINTF() to trace events

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Also print the QOM canonical path when tracing which allows for distinguishing the many instances a typical i.MX SoC has. Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Bernhard Beschow Message-ID: <2025083711.2338-12-shen...@gm

[PULL 11/49] hw/net/xilinx_ethlite: Access TX_GIE register for each port

2025-01-12 Thread Philippe Mathieu-Daudé
Rather than accessing the registers within the mixed RAM/MMIO region as indexed register, declare a per-port TX_GIE. This will help to map the RAM as RAM (keeping MMIO as MMIO) in few commits. Previous s->regs[R_TX_GIE0] and s->regs[R_TX_GIE1] are now unused. Not a concern, this array will soon di

[PULL 35/49] tests/qtest/boot-serial-test: Correct HPPA machine name

2025-01-12 Thread Philippe Mathieu-Daudé
Commit 7df6f751176 ("hw/hppa: Split out machine creation") renamed the 'hppa' machine as 'B160L', but forgot to update the boot serial test, which ended being skipped. Cc: qemu-sta...@nongnu.org Fixes: 7df6f751176 ("hw/hppa: Split out machine creation") Reported-by: Thomas Huth Signed-off-by: Phi

[PULL 39/49] target/hppa: Only set PSW 'M' bit on reset

2025-01-12 Thread Philippe Mathieu-Daudé
On reset: "All PSW bits except the M bit is reset. The M bit is set." Commit 1a19da0da44 ("target/hppa: Fill in hppa_cpu_do_interrupt / hppa_cpu_exec_interrupt") inadvertently set the W bit at RESET, remove it and set the M bit. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Helge Deller Me

[PULL 42/49] hw/loongarch/virt: Checkpatch cleanup

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bibo Mao Code cleanup with directory hw/loongarch/, removing errors from command "scripts/checkpatch.pl hw/loongarch/*" Signed-off-by: Bibo Mao Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250103064514.2660438-1-maob...@loongson.cn> Signed-off-by: Philippe Mathieu-Daudé --- hw/lo

[PULL 09/49] hw/net/xilinx_ethlite: Introduce txbuf_ptr() helper

2025-01-12 Thread Philippe Mathieu-Daudé
For a particular physical address within the EthLite MMIO range, addr_to_port_index() returns which port is accessed. txbuf_ptr() points to the beginning of a (RAM) TX buffer within the device state. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Edgar E. Iglesias Message-Id: <2024111218104

[PULL 25/49] hw/ufs: Adjust value to match CPU's endian format

2025-01-12 Thread Philippe Mathieu-Daudé
From: Keoseong Park In ufs_write_attr_value(), the value parameter is handled in the CPU's endian format but provided in big-endian format by the caller. Thus, it is converted to the CPU's endian format. The related test code is also fixed to reflect this change. Fixes: 7c85332a2b3e ("hw/ufs: mi

[PULL 31/49] hw/misc/imx6_src: Convert DPRINTF() to trace events

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-ID: <20250108092538.11474-14-shen...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/misc/imx6_src.c | 23 +-- hw/misc/trace-even

[PULL 27/49] hw/sd/sdhci: Factor sdhci_sdma_transfer() out

2025-01-12 Thread Philippe Mathieu-Daudé
Factor sdhci_sdma_transfer() out of sdhci_data_transfer(). Re-use it in sdhci_write(), so we don't try to run multi block transfer for a single block. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bernhard Beschow Message-Id: <20250109122029.22780-1-phi...@linaro.org> --- hw/sd/sdhci.c | 2

[PULL 28/49] hw/char/stm32f2xx_usart: replace print with trace

2025-01-12 Thread Philippe Mathieu-Daudé
From: Nikita Shubin Drop debug printing macros and replace them with according trace functions. Signed-off-by: Nikita Shubin Reviewed-by: Alistair Francis Message-ID: <20241220111756.16511-1-nikita.shu...@maquefel.me> Signed-off-by: Philippe Mathieu-Daudé --- hw/char/stm32f2xx_usart.c | 49 +

[PULL 20/49] hw/net/xilinx_ethlite: Map RESERVED I/O as unimplemented

2025-01-12 Thread Philippe Mathieu-Daudé
In order to track access to reserved I/O space, use yet another UnimplementedDevice covering the whole device memory range. Mapped with lower priority (-1). The memory flat view becomes: (qemu) info mtree -f FlatView #0 Root memory region: system 8100-810007e3 (prio

[PULL 47/49] MAINTAINERS: Add me as the maintainer for ivshmem-flat

2025-01-12 Thread Philippe Mathieu-Daudé
From: Gustavo Romero Add me as the maintainer for the ivshmem-flat device. Signed-off-by: Gustavo Romero Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250107015639.27648-1-gustavo.rom...@linaro.org> Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 7 +++ 1 file changed, 7 ins

Re: [PATCH 3/3] hw/arm/v7m: Remove use of &first_cpu in machine_init()

2025-01-12 Thread Alistair Francis
On Mon, Jan 13, 2025 at 8:57 AM Philippe Mathieu-Daudé wrote: > > When instanciating the machine model, the machine_init() > implementations usually create the CPUs, so have access > to its first CPU. Use that rather then the &first_cpu > global. > > Signed-off-by: Philippe Mathieu-Daudé Reviewe

Re: [PATCH 2/3] hw/arm/stellaris: Add 'armv7m' local variable

2025-01-12 Thread Alistair Francis
On Mon, Jan 13, 2025 at 8:57 AM Philippe Mathieu-Daudé wrote: > > While the TYPE_ARMV7M object forward its NVIC interrupt lines, > it is somehow misleading to name it 'nvic'. Add the 'armv7m' > local variable for clarity, but also keep the 'nvic' variable > behaving like before when used for wirin

[PATCH 02/11] hw/mips/loongson3_virt: Keep reference of vCPUs in machine_init()

2025-01-12 Thread Philippe Mathieu-Daudé
Keep references of all vCPUs created. That allows to directly access the first vCPU without using the &first_cpu global. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_virt.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/mips/loongson3_virt.c b/hw/m

[PATCH 08/11] hw/mips/loongson3_bootp: Propagate processor_id to init_cpu_info()

2025-01-12 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_bootp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/loongson3_bootp.c b/hw/mips/loongson3_bootp.c index 91b58a71a68..1aab26df69e 100644 --- a/hw/mips/loongson3_bootp.c +++ b/hw/mips/loongson3_bootp.c

[PATCH 04/11] hw/mips/loongson3_virt: Pass CPU argument to get_cpu_freq_hz()

2025-01-12 Thread Philippe Mathieu-Daudé
Pass the first vCPU as argument, allowing to remove another &first_cpu global use. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_virt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mips/loongson3_virt.c b/hw/mips/loongson3_virt.c index 032ff92383e..0

[PATCH 11/11] hw/mips/loongson3_bootp: Move to common_ss[]

2025-01-12 Thread Philippe Mathieu-Daudé
loongson3_bootp.c doesn't contain any target-specific code and can be build generically, move it to common_ss[]. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/mips/meson.build b/hw/mips/meson.build index fcb

[PATCH 09/11] hw/mips/loongson3_virt: Propagate processor_id to init_loongson_params()

2025-01-12 Thread Philippe Mathieu-Daudé
Remove one &first_cpu use in hw/mips/loongson3_bootp.c. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_bootp.h | 2 +- hw/mips/loongson3_bootp.c | 5 ++--- hw/mips/loongson3_virt.c | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips/loongson3_bootp.h b/hw/

[PATCH 05/11] hw/mips/loongson3_bootp: Include missing headers

2025-01-12 Thread Philippe Mathieu-Daudé
MemMapEntry is declared in "exec/hwaddr.h", cpu_to_le32() in "qemu/bswap.h". These headers are indirectly included via "cpu.h". Include them explicitly in order to avoid when removing "cpu.h": In file included from ../../hw/mips/loongson3_bootp.c:27: hw/mips/loongson3_bootp.h:234:14: error: un

[PATCH 07/11] hw/mips/loongson3_virt: Propagate cpu_count to init_boot_param()

2025-01-12 Thread Philippe Mathieu-Daudé
Remove one use of the 'current_machine' global. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/loongson3_virt.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/mips/loongson3_virt.c b/hw/mips/loongson3_virt.c index af1937455b0..a240662016b 100644 --- a/hw/mips/lo

[PULL 36/49] tests: Add functional tests for HPPA machines

2025-01-12 Thread Philippe Mathieu-Daudé
Add quick firmware boot tests (less than 1sec) for the B160L (32-bit) and C3700 (64-bit) HPPA machines: $ make check-functional-hppa ... 4/4 qemu:func-quick+func-hppa / func-hppa-hppa_seabiosOK 0.22s 2 subtests passed Remove the duplicated B160L test in qtest/boot-serial-test.c. Sugge

[PULL 19/49] hw/net/xilinx_ethlite: Rename 'mmio' MR as 'container'

2025-01-12 Thread Philippe Mathieu-Daudé
Having all its address range mapped by subregions, s->mmio MemoryRegion effectively became a container. Rename it as 'container' for clarity. Reviewed-by: Edgar E. Iglesias Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20241112181044.92193-21-phi...@linaro.org> --- hw/net/xilinx_ethlite.c

[PULL 32/49] hw/char/imx_serial: Turn some DPRINTF() statements into trace events

2025-01-12 Thread Philippe Mathieu-Daudé
From: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Bernhard Beschow Message-ID: <2025083711.2338-9-shen...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé --- hw/char/imx_serial.c | 58 +---

[PULL 22/49] hw/misc/vmcoreinfo: Rename VMCOREINFO_DEVICE -> TYPE_VMCOREINFO

2025-01-12 Thread Philippe Mathieu-Daudé
Follow the assumed QOM type definition style, prefixing with 'TYPE_', and dropping the '_DEVICE' suffix which doesn't add any value. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau Message-Id: <20250102132624.53443-1-phi...@linaro.org> --- include/hw/misc/vmcoreinfo.h | 7 +

[PULL 38/49] hw/hppa: Reset vCPUs calling resettable_reset()

2025-01-12 Thread Philippe Mathieu-Daudé
From: Helge Deller Rather than manually (and incompletely) resetting vCPUs, call resettable_reset() which will fully reset the vCPUs. Remove redundant assignations. Signed-off-by: Helge Deller Co-developed-by: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-Id: <202412311

Re: [PATCH 1/3] hw/arm/nrf51: Rename ARMv7MState 'cpu' -> 'armv7m'

2025-01-12 Thread Alistair Francis
On Mon, Jan 13, 2025 at 8:57 AM Philippe Mathieu-Daudé wrote: > > The ARMv7MState object is not simply a CPU, it also > contains the NVIC, SysTick timer, and various MemoryRegions. > > Rename the field as 'armv7m', like other Cortex-M boards. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by

Re: download.qemu.org file list

2025-01-12 Thread Thomas Huth
On 11/01/2025 16.07, Rahul Chandra wrote: Hi, I am not sure if this is the right list to send this to, but the https://download.qemu.org/ download server is showing no files available for listing. Is this unintentional? Or should I be querying the Gitlab tags from now on for version info? I

Re: [PATCH v3 7/7] s390x: Fix CSS migration

2025-01-12 Thread Thomas Huth
On 12/01/2025 15.34, Michael Tokarev wrote: 09.01.2025 21:52, Fabiano Rosas wrote: Commit a55ae46683 ("s390: move css_migration_enabled from machine to css.c") disabled CSS migration globally instead of doing it per-instance. CC: Paolo Bonzini CC: qemu-sta...@nongnu.org #9.1 Fixes: a55ae46683

Re: [PATCH v3 3/7] migration: Fix parsing of s390 stream

2025-01-12 Thread Thomas Huth
On 12/01/2025 15.29, Michael Tokarev wrote: 12.01.2025 16:06, Michael Tokarev wrote: 09.01.2025 21:52, Fabiano Rosas wrote: The parsing for the S390StorageAttributes section is currently leaving an unconsumed token that is later interpreted by the generic code as QEMU_VM_EOF, cutting the parsin

[PATCH v2 0/3] Support timer for AST2700

2025-01-12 Thread Jamin Lin via
v1: - Support timer for AST2700 - Introduce new "aspeed_2700_timer_read" and "aspeed_2700_timer_write" callback functions and "aspeed_2700_timer_ops" memory region operation for AST2700. Introduce a new ast2700 class to support AST2700. v2: Refactor Timer Callbacks for SoC-Sp

[PATCH v2 3/3] aspeed/soc: Support Timer for AST2700

2025-01-12 Thread Jamin Lin via
Add Timer model for AST2700 Timer support. The Timer controller include 8 sets of 32-bit decrement counters. The base address of TIMER0 to TIMER7 as following. Base Address of Timer 0 = 0x12C1_ Base Address of Timer 1 = 0x12C1_0040 Base Address of Timer 2 = 0x12C1_0080 Base Address of Timer 3

[PATCH v2 1/3] hw/timer/aspeed: Refactor Timer Callbacks for SoC-Specific Implementations

2025-01-12 Thread Jamin Lin via
The register set have a significant change in AST2700. The TMC00-TMC3C are used for TIMER0 and TMC40-TMC7C are used for TIMER1. In additional, TMC20-TMC3C and TMC60-TMC7C are reserved registers for TIMER0 and TIMER1, respectively. Besides, each TIMER has their own control and interrupt status regi

[PATCH v2 2/3] hw/timer/aspeed: Add AST2700 Support

2025-01-12 Thread Jamin Lin via
The timer controller include 8 sets of 32-bit decrement counters, based on either PCLK or 1MHZ clock and the design of timer controller between AST2600 and AST2700 are almost the same. TIMER0 – TIMER7 has their own individual control and interrupt status register. In other words, users are able to

<    1   2