[PATCH qemu 0/1] Implement the STM32L4x5 EXTI device

~aminier posted 1 patch 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/170057856467.12935.6421900912319796560-0@git.sr.ht
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Alistair Francis <alistair@alistair23.me>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>
hw/arm/Kconfig                    |   1 +
hw/arm/stm32l4x5_soc.c            |  65 +++++-
hw/misc/Kconfig                   |   3 +
hw/misc/meson.build               |   1 +
hw/misc/stm32l4x5_exti.c          | 329 ++++++++++++++++++++++++++++++
hw/misc/trace-events              |   5 +
include/hw/arm/stm32l4x5_soc.h    |   3 +
include/hw/misc/stm32l4x5_exti.h  |  64 ++++++
tests/qtest/meson.build           |   5 +
tests/qtest/stm32l4x5_exti-test.c | 102 +++++++++
10 files changed, 576 insertions(+), 2 deletions(-)
create mode 100644 hw/misc/stm32l4x5_exti.c
create mode 100644 include/hw/misc/stm32l4x5_exti.h
create mode 100644 tests/qtest/stm32l4x5_exti-test.c
[PATCH qemu 0/1] Implement the STM32L4x5 EXTI device
Posted by ~aminier 1 year ago
This patch allows to emulate the STM32L4x5 EXTI device.
It implements register access and software interruptions.

This is RFC since we had troubles to make all tests pass.
More precisely, the line `g_assert_true(get_irq(GPIO_0_IRQ));` fails in
the software interrupts test. No irq seems to be fired.
(We also tested the stm32f4_exti (on which this implementation is based
upon) on but it also fails so don't really know if the test or the
implementation is incorrect)

Based-on: <170049810484.22920.612074576971878323-0@git.sr.ht>
([RFC v3 2/2] hw/arm: Add minimal support for the B-L475E-IOT01A board)

(We got the message id from
https://patchew.org/QEMU/170047309499.17129.4986209009679789101-0@git.sr.ht/
but don't really the standard procedure to get it. Sorry if this is
incorrect.)

Arnaud Minier (1):
  Implement STM32L4x5 EXTI

 hw/arm/Kconfig                    |   1 +
 hw/arm/stm32l4x5_soc.c            |  65 +++++-
 hw/misc/Kconfig                   |   3 +
 hw/misc/meson.build               |   1 +
 hw/misc/stm32l4x5_exti.c          | 329 ++++++++++++++++++++++++++++++
 hw/misc/trace-events              |   5 +
 include/hw/arm/stm32l4x5_soc.h    |   3 +
 include/hw/misc/stm32l4x5_exti.h  |  64 ++++++
 tests/qtest/meson.build           |   5 +
 tests/qtest/stm32l4x5_exti-test.c | 102 +++++++++
 10 files changed, 576 insertions(+), 2 deletions(-)
 create mode 100644 hw/misc/stm32l4x5_exti.c
 create mode 100644 include/hw/misc/stm32l4x5_exti.h
 create mode 100644 tests/qtest/stm32l4x5_exti-test.c

-- 
2.38.5
Re: [PATCH qemu 0/1] Implement the STM32L4x5 EXTI device
Posted by Philippe Mathieu-Daudé 1 year ago
Hi Arnaud,

On 21/11/23 15:56, ~aminier wrote:
> This patch allows to emulate the STM32L4x5 EXTI device.
> It implements register access and software interruptions.


> Based-on: <170049810484.22920.612074576971878323-0@git.sr.ht>
> ([RFC v3 2/2] hw/arm: Add minimal support for the B-L475E-IOT01A board)
> 
> (We got the message id from
> https://patchew.org/QEMU/170047309499.17129.4986209009679789101-0@git.sr.ht/
> but don't really the standard procedure to get it. Sorry if this is
> incorrect.)

This is the correct tag and msg-id :)

> Arnaud Minier (1):
>    Implement STM32L4x5 EXTI