Re: [PATCH 0/3] Add "num-prio-bits" property for Cortex-M devices

2023-12-16 Thread Samuel Tardieu
Samuel Tardieu (3): hw/intc/armv7m_nvic: add "num-prio-bits" property hw/arm/armv7m: alias the NVIC "num-prio-bits" property hw/arm/socs: configure priority bits for existing SOCs Any idea to why patchew fails to apply thoses patches? The mbox at

[PATCH] target/riscv: Implement optional CSR mcontext of debug Sdtrig extension

2023-12-16 Thread Alvin Chang via
The debug Sdtrig extension defines an optional CSR "mcontext". Since it is optional, this commit adds new CPU configuration "ext_sdtrig_mcontext" and uses property "sdtrig_mcontext" to control whether it is implemented or not. Its predicate and read/write operations are also implemented into CSR ta

Re: [PATCH] vl: Print display options for -display help

2023-12-16 Thread Akihiko Odaki
On 2023/12/15 22:07, BALATON Zoltan wrote: On Fri, 15 Dec 2023, Daniel P. Berrangé wrote: On Fri, Dec 15, 2023 at 01:43:37PM +0100, BALATON Zoltan wrote: On Fri, 15 Dec 2023, Akihiko Odaki wrote: On 2023/12/14 22:00, BALATON Zoltan wrote: So we go from: $ ./qemu-system-aarch64 -display help

[PATCH v7] ui/cocoa: Use NSWindow's ability to resize

2023-12-16 Thread Akihiko Odaki
This change brings two new features: - The window will be resizable if "Zoom To Fit" is eanbled - The window can be made full screen by clicking full screen button provided by the platform. (The left-top green button.) Signed-off-by: Akihiko Odaki Tested-by: Rene Engel --- V5 -> V6: Rebased.

Re: [PATCH v3 1/3] Move dbus-display1 out of ui

2023-12-16 Thread Akihiko Odaki
On 2023/12/17 1:57, Philippe Mathieu-Daudé wrote: On 16/12/23 08:53, Akihiko Odaki wrote: Despite its name, dbus-display1 does not only provide DBus interfaces for the display but also for the audio. Signed-off-by: Akihiko Odaki ---   MAINTAINERS   |  1 +   meson.bu

[PATCH v5 1/2] util: Move dbus_display1 to util

2023-12-16 Thread Akihiko Odaki
Move dbus_display1 from ui to util as it's used not only by ui/dbus but also dbus-display-test. dbus_display1 is now added to util_ss accordingly. It ensures that the source will be linked with audio/dbus, and also avoids recompilation when linking with dbus-display-test. dbus-display.h is also a

[PATCH v5 0/2] meson: Fixes for dbus modules

2023-12-16 Thread Akihiko Odaki
util. - Link to v3: https://lore.kernel.org/r/20231216-dbus-v3-0-b4bcbed73...@daynix.com Changes in v3: - Merged dbus_display1_lib into libqemuutil. - Added patch "audio: Do not include ui/dbus.h". - Link to v2: https://lore.kernel.org/r/20231215-dbus-v2-0-1e2e6aa02...@daynix.com Cha

[PATCH v5 2/2] audio: Do not include ui/dbus.h

2023-12-16 Thread Akihiko Odaki
ui/dbusaudio.c does not depend on ui/dbus.h Signed-off-by: Akihiko Odaki --- audio/dbusaudio.c | 1 - audio/meson.build | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/dbusaudio.c b/audio/dbusaudio.c index 2aacdac6715b..3cd8e294501f 100644 --- a/audio/dbusaudio.c +++

[PATCH v4 1/2] util: Move dbus_display1 to util

2023-12-16 Thread Akihiko Odaki
Move dbus_display1 from ui to util as it's used not only by ui/dbus but also dbus-display-test. dbus_display1 is now added to util_ss accordingly. It ensures that the source will be linked with audio/dbus, and also avoids recompilation when linking with dbus-display-test. dbus-display.h is also a

[PATCH v4 2/2] audio: Do not include ui/dbus.h

2023-12-16 Thread Akihiko Odaki
ui/dbusaudio.c does not depend on ui/dbus.h Signed-off-by: Akihiko Odaki --- audio/dbusaudio.c | 1 - audio/meson.build | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/dbusaudio.c b/audio/dbusaudio.c index 2aacdac6715b..3cd8e294501f 100644 --- a/audio/dbusaudio.c +++

[PATCH v4 0/2] meson: Fixes for dbus modules

2023-12-16 Thread Akihiko Odaki
I found it was failing to build dbus modules when --enable-dbus so here are fixes. Signed-off-by: Akihiko Odaki --- Changes in v4: - Moved dbus_display1 to util. - Link to v3: https://lore.kernel.org/r/20231216-dbus-v3-0-b4bcbed73...@daynix.com Changes in v3: - Merged dbus_display1_lib into

Re: [PATCH v6 0/4] Add full zoned storage emulation to qcow2 driver

2023-12-16 Thread Sam Li
Markus Armbruster 于2023年11月30日周四 09:25写道: > > Clang reports > > ../block/qcow2.c:4066:5: error: mutex 'graph_lock' is not held on every path > through here [-Werror,-Wthread-safety-analysis] > blk_co_unref(blk); > ^ > ../block/qcow2.c:3928:5: note: mutex acquired here > bdrv_graph_co_

Re: [PATCH v6 2/4] qcow2: add configurations for zoned format extension

2023-12-16 Thread Sam Li
Markus Armbruster 于2023年11月30日周四 09:40写道: > > Sam Li writes: > > > To configure the zoned format feature on the qcow2 driver, it > > requires settings as: the device size, zone model, zone size, > > zone capacity, number of conventional zones, limits on zone > > resources (max append bytes, max o

[PATCH] ppc/spapr: Fix ubsan warning with unaligned pointer access

2023-12-16 Thread Daniel Hoffman
Found while running QTest with UBsan. Unaligned pointers appear to be valid, so moving the read to an explicit memcpy to an intermediate. --- hw/ppc/vof.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/ppc/vof.c b/hw/ppc/vof.c index e3b430a81f4..609a51c645d 100644 --- a

Re: [PATCH v6] ui/cocoa: Use NSWindow's ability to resize

2023-12-16 Thread Marek Glogowski
Hi I think I may have found a small error > if (opts->u.cocoa.has_zoom_to_fit && opts->u.cocoa.zoom_to_fit) { +[normalWindow setStyleMask:[normalWindow styleMask] & ~NSWindowStyleMaskResizable]; it should probably be so, because the window never goes into a good mode [normalWind

Re: [PATCH 11/12] next-cube.c: replace sysmem with get_system_memory() in next_cube_init()

2023-12-16 Thread BALATON Zoltan
On Sat, 16 Dec 2023, Thomas Huth wrote: Am Fri, 15 Dec 2023 20:00:08 + schrieb Mark Cave-Ayland : Removing the intermediate variable helps simplify the code in next_cube_init(). Signed-off-by: Mark Cave-Ayland --- hw/m68k/next-cube.c | 14 +++--- 1 file changed, 7 insertions(+),

Re: [PATCH] docs/system: Document running Linux on amigaone machine

2023-12-16 Thread BALATON Zoltan
On Sat, 16 Dec 2023, Bernhard Beschow wrote: Am 16. Dezember 2023 12:53:55 UTC schrieb BALATON Zoltan : On Sat, 16 Dec 2023, Bernhard Beschow wrote: Documentation on how to run Linux on the amigaone machine is currently burried in the depths of the qemu-devel mailing list [1] and in the source

Re: [PATCH 12/12] next-cube.c: move machine MemoryRegions into NeXTState

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:09 + schrieb Mark Cave-Ayland : > These static memory regions are contained within the machine and do not need > to > be dynamically allocated. > > Signed-off-by: Mark Cave-Ayland > --- > hw/m68k/next-cube.c | 40 +++- > 1 file

Re: [PATCH 11/12] next-cube.c: replace sysmem with get_system_memory() in next_cube_init()

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:08 + schrieb Mark Cave-Ayland : > Removing the intermediate variable helps simplify the code in > next_cube_init(). > > Signed-off-by: Mark Cave-Ayland > --- > hw/m68k/next-cube.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --g

Re: [PATCH 09/12] next-cube.c: move static old_scr2 variable to NeXTPC

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:06 + schrieb Mark Cave-Ayland : > Move the old_scr2 variable to NeXTPC so that the old SCR2 register state is > stored along with the current SCR2 state. > > Since the SCR2 register is 32-bits wide, convert old_scr2 to uint32_t and > update the SCR2 register access c

Re: [PATCH 08/12] next-cube.c: move LED logic to new next_scr2_led_update() function

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:05 + schrieb Mark Cave-Ayland : > Ensure that the LED status is updated by calling next_scr2_led_update() > whenever > the SC2 register is written. > > Signed-off-by: Mark Cave-Ayland > --- > hw/m68k/next-cube.c | 22 +- > 1 file changed, 13 in

Re: [PATCH 07/12] next-cube.c: move static phase variable to NextRtc

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:04 + schrieb Mark Cave-Ayland : > The phase variable represents part of the state machine used to clock data out > of the NextRtc device. > > Note that this is a migration break for the NeXTRtc struct, but as nothing > will > currently boot then we simply bump the m

Re: [PATCH 06/12] next-cube.c: move static led variable to NeXTPC

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:03 + schrieb Mark Cave-Ayland : > The state of the led is stored in the SCR2 register which is part of the > NeXTPC > device. > > Note that this is a migration break for the NeXTPC device, but as nothing will > currently boot then we simply bump the migration versio

Re: [PATCH 05/12] next-cube.c: update and improve dma_ops

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:02 + schrieb Mark Cave-Ayland : > Rename dma_ops to next_dma_ops and the read/write functions to next_dma_read() > and next_dma_write() respectively, mark next_dma_ops as DEVICE_BIG_ENDIAN and > also improve the consistency of the val variable in next_dma_read() and >

Re: [PATCH 04/12] next-cube.c: update scr_ops to properly use modern memory API

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:01 + schrieb Mark Cave-Ayland : > The old QEMU memory accessors used in the original NextCube patch series had > separate functions for 1, 2 and 4 byte accessors. When the series was finally > merged a simple wrapper function was written to dispatch the memory accesse

Re: [PATCH] docs/system: Document running Linux on amigaone machine

2023-12-16 Thread Bernhard Beschow
Am 16. Dezember 2023 12:53:55 UTC schrieb BALATON Zoltan : >On Sat, 16 Dec 2023, Bernhard Beschow wrote: >> Documentation on how to run Linux on the amigaone machine is currently >> burried >> in the depths of the qemu-devel mailing list [1] and in the source code. >> Let's >> collect the info

Re: [PATCH 03/12] next-cube.c: update mmio_ops to properly use modern memory API

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 20:00:00 + schrieb Mark Cave-Ayland : > The old QEMU memory accessors used in the original NextCube patch series had > separate functions for 1, 2 and 4 byte accessors. When the series was finally > merged a simple wrapper function was written to dispatch the memory accesse

[PATCH 3/3] hw/arm/socs: configure priority bits for existing SOCs

2023-12-16 Thread Samuel Tardieu
Update the number of priority bits for a number of existing SOCsaccording to their technical documentation: - STM32F100/F205/F405: 4 bits - Stellaris (Sandstorm/Fury): 3 bits Signed-off-by: Samuel Tardieu --- hw/arm/stellaris.c | 2 ++ hw/arm/stm32f100_soc.c | 1 + hw/arm/stm32f205_soc.c |

[PATCH 0/3] Add "num-prio-bits" property for Cortex-M devices

2023-12-16 Thread Samuel Tardieu
This patch series builds on a discussion initiated by Anton Kochkov on this list in 2022. It allows setting the appropriate number of priority bits for Cortex-M devices. For example, FreeRTOS checks at startup that the right number of priority bits is available in order to guarantee its runtime str

[PATCH 1/3] hw/intc/armv7m_nvic: add "num-prio-bits" property

2023-12-16 Thread Samuel Tardieu
Cortex-M NVIC can have a different number of priority bits. Cortex-M0/M0+/M1 devices must use 2 or more bits, while devices based on ARMv7m and up must use 3 or more bits. This adds a "num-prio-bits" property which will get sensible default values if unset (2 or 8 depending on the device). Unless

[PATCH 2/3] hw/arm/armv7m: alias the NVIC "num-prio-bits" property

2023-12-16 Thread Samuel Tardieu
Signed-off-by: Samuel Tardieu --- hw/arm/armv7m.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index d10abb36a8..4fda2d1d47 100644 --- a/hw/arm/armv7m.c +++ b/hw/arm/armv7m.c @@ -256,6 +256,8 @@ static void armv7m_instance_init(Object *obj) object_i

Re: [PATCH v3 1/3] Move dbus-display1 out of ui

2023-12-16 Thread Philippe Mathieu-Daudé
On 16/12/23 08:53, Akihiko Odaki wrote: Despite its name, dbus-display1 does not only provide DBus interfaces for the display but also for the audio. Signed-off-by: Akihiko Odaki --- MAINTAINERS | 1 + meson.build | 21

[RFC PATCH v2 4/6] target/riscv: Add functions to calculate current number of masked bits for pointer masking

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 2 ++ target/riscv/cpu_helper.c | 49 +++ 2 files changed, 51 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 2099168950..9a8e5bc022 100644 --- a/targe

[RFC PATCH v2 5/6] target/riscv: Update address modify functions to take into account pointer masking

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/translate.c | 21 +++-- target/riscv/vector_helper.c | 7 +++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/target/riscv/translate.c b/target/riscv/translate.c index 4c0d526b58..70bbead7

[RFC PATCH v2 1/6] target/riscv: Remove obsolete pointer masking extension code.

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Zjpm v0.8 is almost frozen and it's much simplier compared to the existing one: The newer version doesn't allow to specify custom mask or base for masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo --- target/riscv/cpu.c

[RFC PATCH v2 2/6] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v0.8

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 3 +++ target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 11 +++ target/riscv/machine.c | 6 -- target/riscv/pmp.c | 13 ++--- target/riscv

[RFC PATCH v2 0/6] Pointer Masking update to Zjpm v0.6.1

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Hi all, It looks like Zjpm v0.8 is almost frozen and we don't expect it change drastically anymore. Compared to the original implementation with explicit base and mask CSRs, we now only have several fixed options for number of masked bits which are set using existing CSRs.

[RFC PATCH v2 6/6] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.c| 9 + target/riscv/cpu_helper.c | 1 + target/riscv/csr.c| 4 target/riscv/machine.c| 1 + target/riscv/pmp.c| 1 + 5 files changed, 16 insertions(+) diff --git a/target/riscv/cpu.c

[RFC PATCH v2 3/6] target/riscv: Add pointer masking tb flags

2023-12-16 Thread Alexey Baturo
From: Alexey Baturo Signed-off-by: Alexey Baturo --- target/riscv/cpu.h| 19 +-- target/riscv/cpu_helper.c | 4 target/riscv/translate.c | 10 ++ 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index

[PATCH v5] fsl-imx: add simple RTC emulation for i.MX6 and i.MX7 boards

2023-12-16 Thread Nikita Ostrenkov
Signed-off-by: Nikita Ostrenkov --- hw/misc/imx7_snvs.c | 93 ++--- hw/misc/trace-events| 4 +- include/hw/misc/imx7_snvs.h | 7 ++- 3 files changed, 94 insertions(+), 10 deletions(-) diff --git a/hw/misc/imx7_snvs.c b/hw/misc/imx7_snvs.c index a

Re: [PATCH] docs/system: Document running Linux on amigaone machine

2023-12-16 Thread BALATON Zoltan
On Sat, 16 Dec 2023, Bernhard Beschow wrote: Documentation on how to run Linux on the amigaone machine is currently burried in the depths of the qemu-devel mailing list [1] and in the source code. Let's collect the information in the QEMU handbook for a one stop solution. Thanks for collecting

[PATCH] docs/system: Document running Linux on amigaone machine

2023-12-16 Thread Bernhard Beschow
Documentation on how to run Linux on the amigaone machine is currently burried in the depths of the qemu-devel mailing list [1] and in the source code. Let's collect the information in the QEMU handbook for a one stop solution. [1] https://lore.kernel.org/qemu-devel/dafc407d-3749-e6f4-3a66-750fde

Re: [PATCH 02/12] next-cube.c: don't pulse SCSI DMA IRQ upon reception of FLUSH command

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 19:59:59 + schrieb Mark Cave-Ayland : > Normally a DMA FLUSH command is used to ensure that data is completely written > to the device and/or memory, so remove the pulse of the SCSI DMA IRQ if a DMA > FLUSH command is received. This enables the NeXT ROM monitor to start to

Re: [PATCH 01/12] next-cube.c: add dummy Ethernet register to allow diagnostic to timeout

2023-12-16 Thread Thomas Huth
Am Fri, 15 Dec 2023 19:59:58 + schrieb Mark Cave-Ayland : > Add a dummy register at address 0x6000 in the MMIO memory region to allow the > initial diagnostic test to timeout rather than getting stuck in a loop > continuously writing "en_write: tx not ready" to the console. > > Signed-off-by:

[PATCH v3] vl: Print display options for -display help

2023-12-16 Thread Akihiko Odaki
-display lists display backends, but does not tell their options. Use the help messages from qemu-options.def, which include the list of options. Note that this change also has an unfortunate side effect that it will no longer tell what UI modules are actually available. Signed-off-by: Akihiko Od