Re: [PATCH 1/2] hw/arm: Add support for stm32g000 SoC family

2024-03-20 Thread Samuel Tardieu
Felipe Balbi writes: > +qdev_prop_set_uint8(armv7m, "num-prio-bits", 4); Hi Felipe. This should be 2, not 4. From RM0454 section 11.1 on page 250: "4 programmable priority levels (2 bits of interrupt priority are used)". Sam -- Samuel Tardieu

Re: [PATCH] docs/style: allow C99 mixed declarations

2024-02-05 Thread Samuel Tardieu
:3: warning: ‘foo’ may be used uninitialized [-Wmaybe-uninitialized] 11 | free(foo); | ^ jump.c:8:9: note: ‘foo’ was declared here 8 | char *foo = malloc(30); | ^~~ Best. Sam -- Samuel Tardieu

Re: [PATCH 1/2] docs: introduce dedicated page about code provenance / sign-off

2024-01-29 Thread Samuel Tardieu
riginal positions. I even opened an issue on b4 a few weeks ago because of this <https://github.com/mricon/b4/issues/16>, and I reverted to using git-publish. But if this is ok to use an arbitrary order for non-S-o-b headers, I can get back to b4. Sam -- Samuel Tardieu

Re: [PATCH 7/7] Add tests for the STM32L4x5_RCC

2024-01-13 Thread Samuel Tardieu
Arnaud Minier writes: + * The procedure is taken from a program by Samuel Tardieu. You may drop this line as I used the same procedure which is used in other tests, this does not deserve a mention here. Sam -- Samuel Tardieu

[PATCH] hw/timer: fix systick trace message

2024-01-09 Thread Samuel Tardieu
Signed-off-by: Samuel Tardieu Fixes: ff68dacbc786 ("armv7m: Split systick out from NVIC") --- hw/timer/trace-events | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/timer/trace-events b/hw/timer/trace-events index 3eccef83858..8145e18e3da 100644 --- a/hw/timer/tr

Re: [PATCH v2 0/2] Deprecate the shix machine and the TC58128 flash device

2024-01-09 Thread Samuel Tardieu
Samuel Tardieu writes: The shix machine was a research project started around 2003 at Télécom Paris. Preliminary support in QEMU was added in 2005 back when the QEMU architecture was less structured than it is now. Unfortunately, the support for the shix machine and its peripherals

[PATCH v2 2/2] hw/block: Deprecate the TC58128 block device

2024-01-09 Thread Samuel Tardieu
The 16MiB flash device is only used by the deprecated shix machine. Its code it old and unmaintained, and has never been adapted to the QOM architecture. It still contains debug statements and uses global variables. It is time to deprecate it. Signed-off-by: Samuel Tardieu Reviewed-by: Cédric Le

[PATCH v2 1/2] target/sh4: Deprecate the shix machine

2024-01-09 Thread Samuel Tardieu
The shix machine has been designed and used at Télécom Paris from 2003 to 2010. It had been added to QEMU in 2005 and has not been maintained since. Since nobody is using the physical board anymore nor interested in maintaining the QEMU port, it is time to deprecate it. Signed-off-by: Samuel

[PATCH v2 0/2] Deprecate the shix machine and the TC58128 flash device

2024-01-09 Thread Samuel Tardieu
the QOM model and still contains debug fprintf statements. Samuel Tardieu (2): target/sh4: Deprecate the shix machine hw/block: Deprecate the TC58128 block device docs/about/deprecated.rst | 5 + hw/block/tc58128.c| 1 + hw/sh4/shix.c | 1 + 3 files changed, 7 insertions

Re: [PATCH 1/2] target/sh4: Deprecate the shix machine

2024-01-09 Thread Samuel Tardieu
ned"? You're right. I removed the extra part in both the shix and the tc58128 deprecation messages. Sam -- Samuel Tardieu

[PATCH 2/2] hw/block: Deprecate the TC58128 block device

2024-01-08 Thread Samuel Tardieu
The 16MiB flash device is only used by the deprecated shix machine. Its code it old and unmaintained, and has never been adapted to the QOM architecture. It still contains debug statements and uses global variables. It is time to deprecate it. Signed-off-by: Samuel Tardieu --- docs/about

[PATCH 1/2] target/sh4: Deprecate the shix machine

2024-01-08 Thread Samuel Tardieu
The shix machine has been designed and used at Télécom Paris from 2003 to 2010. It had been added to QEMU in 2005 and has not been maintained since. Since nobody is using the physical board anymore nor interested in maintaining the QEMU port, it is time to deprecate it. Signed-off-by: Samuel

[PATCH 0/2] Deprecate the shix machine and the TC58128 flash device

2024-01-08 Thread Samuel Tardieu
the QOM model and still contains debug fprintf statements. Samuel Tardieu (2): target/sh4: Deprecate the shix machine hw/block: Deprecate the TC58128 block device docs/about/deprecated.rst | 5 + hw/block/tc58128.c| 1 + hw/sh4/shix.c | 1 + 3 files changed, 7 insertions

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

2024-01-06 Thread Samuel Tardieu
A SoC will not have a direct access to the NVIC embedded in its ARM core. By aliasing the "num-prio-bits" property similarly to what is done for the "num-irq" one, a SoC can easily configure it on its armv7m instance. Signed-off-by: Samuel Tardieu Reviewed-by: Peter Maydell

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

2024-01-06 Thread Samuel Tardieu
e). Unless a SOC specifies the number of bits to use, the previous behavior is maintained for backward compatibility. Signed-off-by: Samuel Tardieu Suggested-by: Anton Kochkov Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1122 Reviewed-by: Peter Maydell --- hw/intc/armv7m_n

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

2024-01-06 Thread Samuel Tardieu
the Based-on: trailer in the cover letter. - Fix a typo in one of the commit messages ("compatibility") Based-on: <20240106163905.42027-1-ines.var...@telecom-paris.fr> ([PATCH v5 0/2] Add minimal support for the B-L475E-IOT01A board) Samuel Tardieu (3): hw/intc/armv7m_nvic: ad

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

2024-01-06 Thread Samuel Tardieu
Update the number of priority bits for a number of existing SoCs according to their technical documentation: - STM32F100/F205/F405/L4x5: 4 bits - Stellaris (Sandstorm/Fury): 3 bits Signed-off-by: Samuel Tardieu Reviewed-by: Peter Maydell --- hw/arm/stellaris.c | 2 ++ hw/arm

[PATCH] tests/qtest/virtio-ccw: Fix device presence checking

2024-01-06 Thread Samuel Tardieu
An apparent copy-paste error tests for the presence of the virtio-rng-ccw device in order to perform tests on the virtio-scsi-ccw device. Signed-off-by: Samuel Tardieu --- tests/qtest/virtio-ccw-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/virtio-ccw

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

2024-01-05 Thread Samuel Tardieu
Inès has submitted an updated version of her "Add minimal support for the B-L475E-IOT01A board" serie on which this one is based. Best. Sam -- Samuel Tardieu

Re: [PATCH v5 1/3] hw/misc: Implement STM32L4x5 EXTI

2024-01-04 Thread Samuel Tardieu
On 04/01/2024 14:40, Philippe Mathieu-Daudé wrote: On 4/1/24 14:23, Samuel Tardieu wrote: Philippe Mathieu-Daudé writes: This doesn't build: ../../hw/misc/stm32l4x5_exti.c:172:9: error: expected expression     const uint32_t set1 = value & ~DIRECT_LINE_MASK1; […] I could build u

Re: [PATCH v5 1/3] hw/misc: Implement STM32L4x5 EXTI

2024-01-04 Thread Samuel Tardieu
iler or option do you use for checking? I have no problem building this using "./configure --target-list=arm-softmmu" with GCC 12.3.0. Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris

[PATCH] docs: use "buses" rather than "busses"

2024-01-03 Thread Samuel Tardieu
If "busses" might be encountered as a plural of "bus" (5 instances), the correct spelling is "buses" (26 instances). Fixing those 5 instances makes the doc more consistent. Signed-off-by: Samuel Tardieu --- docs/system/arm/palm.rst| 2 +- docs/system/arm/x

[PATCH] tests/unit/test-qga: do not qualify executable paths

2024-01-03 Thread Samuel Tardieu
guest-exec invocation does not need the full path of the executable to execute. Using only the command names ensures correct execution of the test on systems not adhering to the FHS. Signed-off-by: Samuel Tardieu --- tests/unit/test-qga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

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

2024-01-03 Thread Samuel Tardieu
e). Unless a SOC specifies the number of bits to use, the previous behavior is maintained for backward compatibility. Signed-off-by: Samuel Tardieu Suggested-by: Anton Kochkov Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1122 --- hw/intc/armv7m_nvic.c | 23 +

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

2024-01-03 Thread Samuel Tardieu
A SoC will not have a direct access to the NVIC embedded in its ARM core. By aliasing the "num-prio-bits" property similarly to what is done for the "num-irq" one, a SoC can easily configure it on its armv7m instance. Signed-off-by: Samuel Tardieu --- hw/arm/armv7m.c | 2 +

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

2024-01-03 Thread Samuel Tardieu
Update the number of priority bits for a number of existing SoCs according to their technical documentation: - STM32F100/F205/F405/L4x5: 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

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

2024-01-03 Thread Samuel Tardieu
("compatibility") Based-on: <20231221213838.54944-1-ines.var...@telecom-paris.fr> ([PATCH v4 0/2] Add minimal support for the B-L475E-IOT01A board) Samuel Tardieu (3): hw/intc/armv7m_nvic: add "num-prio-bits" property hw/arm/armv7m: alias the NVIC "num-prio-bits&quo

Re: [PATCH v2] scripts/checkpatch: Support codespell checking

2024-01-03 Thread Samuel Tardieu
directory: /data/dictionary.txt This works correctly on my NixOS system using a non-FHS layout and properly locates the codespell file. This patch made me find a typo in one of my commit messages. Tested-by: Samuel Tardieu Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris

Re: [PATCH] target/hexagon/idef-parser/prepare: use env to invoke bash

2023-12-25 Thread Samuel Tardieu
quot;env", such as "/usr/bin/env application" works. This is the case for example on NixOS, which is more and more used in research environments for their easily reproducible build environments. Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris

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

2023-12-19 Thread Samuel Tardieu
ed-on:" tag so that patchew gets it right? Anyway, I just wanted to say that this patchset is on my todo list to review but I'm not going to be able to get to it before I break for Christmas, so I'll get back to it in January. Thanks for the contribution! Noted! Best. Sam -- Samuel Tardieu

[PATCH v2 2/2] tcg: Make the cleanup-on-error path unique

2023-12-19 Thread Samuel Tardieu
By calling `error_setg_errno()` before jumping to the cleanup-on-error path at the `fail` label, the cleanup path is clearer. Signed-off-by: Samuel Tardieu --- tcg/region.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/region.c b/tcg/region.c index 467e51cf6f

[PATCH v2 0/2] tcg: Jump after always false condition

2023-12-19 Thread Samuel Tardieu
preserves the fall-through case while avoiding testing an always false condition. Changes from v1: - Add a comment explaining that `buf_rx` does not require cleanup - Use a unique cleanup path for the function by setting `errno` before jumping to the cleanup block. Samuel Tardieu (2): tcg: Remove

[PATCH v2 1/2] tcg: Remove unreachable code

2023-12-19 Thread Samuel Tardieu
The `fail_rx`/`fail` block is only entered while `buf_rx` is equal to its initial value `MAP_FAILED`. The `munmap(buf_rx, size);` was never executed. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2030 Signed-off-by: Samuel Tardieu Reviewed-by: Peter Maydell --- tcg/region.c | 4

Re: [PATCH 2/2] tcg: Jump after always false condition

2023-12-19 Thread Samuel Tardieu
l` - calling `error_setg_errno()` at the right place before jumping to `fail` I will produce a v2 to make this proposal clearer. Sam -- Samuel Tardieu

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 <h

[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
to preserve backward compatibility. Based-on: <20220813112559.1974427-1-anton.koch...@proton.me> ([PATCH] hw/arm/nvic: implement "num-prio-bits" property) Samuel Tardieu (3): hw/intc/armv7m_nvic: add "num-prio-bits" property hw/arm/armv7m: alias the NVIC "num-pr

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

2023-12-16 Thread Samuel Tardieu
e). Unless a SOC specifies the number of bits to use, the previous behavior is maintained for backward compatibiltiy. Signed-off-by: Samuel Tardieu Suggested-by: Anton Kochkov Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1122 --- hw/intc/armv7m_nvic.c | 23 +

[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

[PATCH 2/2] tcg: Jump after always false condition

2023-12-14 Thread Samuel Tardieu
`buf_rw` is always `NULL` when jumping to the `fail` label. Move the label `down` after the `if (buf_rw) { ... }` statement. Signed-off-by: Samuel Tardieu --- tcg/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/region.c b/tcg/region.c index 6d657e8c33

[PATCH 1/2] tcg: Remove unreachable code

2023-12-14 Thread Samuel Tardieu
The `fail_rx`/`fail` block is only entered while `buf_rx` is equal to its initial value `MAP_FAILED`. The `munmap(buf_rx, size);` was never executed. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2030 Signed-off-by: Samuel Tardieu --- tcg/region.c | 3 --- 1 file changed, 3 deletions

[PATCH 0/2] Remove unreachable code and move label after unreachable condition

2023-12-14 Thread Samuel Tardieu
preserves the fall-through case while avoiding testing an always false condition. Samuel Tardieu (2): tcg: Remove unreachable code tcg: Jump after always false condition tcg/region.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.42.0

[PATCH] docs: fix typo

2023-12-14 Thread Samuel Tardieu
Signed-off-by: Samuel Tardieu --- docs/tools/qemu-img.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tools/qemu-img.rst b/docs/tools/qemu-img.rst index 4459c065f1..3653adb963 100644 --- a/docs/tools/qemu-img.rst +++ b/docs/tools/qemu-img.rst @@ -406,7 +406,7

Re: [PATCH] qemu/timer: Don't use RDTSC on i486

2023-11-26 Thread Samuel Tardieu
be the same as today without the patch. Other problem is the __tune_i386__ is also set when -mtune=i386 (but with -march=i686). Indeed, this is the case for GCC (not clang). Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris

Re: [PATCH] qemu/timer: Don't use RDTSC on i486

2023-11-26 Thread Samuel Tardieu
and LLVM when using -march=i386. Sam -- Samuel Tardieu Télécom Paris - Institut Polytechnique de Paris

[PATCH] target/hexagon/idef-parser/prepare: use env to invoke bash

2023-11-23 Thread Samuel Tardieu
This file is the only one involved in the compilation process which still uses the /bin/bash path. Signed-off-by: Samuel Tardieu --- target/hexagon/idef-parser/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/hexagon/idef-parser/prepare b/target/hexagon/idef

[Qemu-devel] Re: Interesting QEMU + OpenVPN

2006-09-10 Thread Samuel Tardieu
network, DHCP server, IPv6 routers, etc. Sam -- Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/ ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel

[Qemu-devel] qemu port for sh4 target in progress

2005-12-05 Thread Samuel Tardieu
on it while I am away, drop me a mail in the next 48 hours so that I can send you the patch. I plan to end this port when I come back in January 2006. Sam -- Samuel Tardieu -- [EMAIL PROTECTED] -- http://www.rfc1149.net/ ___ Qemu-devel mailing list Qemu