[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] armv7-m: exit on external reset request
From: |
Peter Crosthwaite |
Subject: |
Re: [Qemu-devel] [PATCH v2] armv7-m: exit on external reset request |
Date: |
Sun, 11 Oct 2015 08:06:29 -0700 |
Looks great. But I think you want to split this into staged patches.
Use git reset HEAD^ to undo the git commit (but keep the file changes)
then git add -p to select hunks to stage. Then commit the logically
sequential groups of changes as indiv. patches. A general rule is you
should try and avoid commiting refactorings along with new features. I
see 3 patches here.
On Sat, Oct 10, 2015 at 11:54 AM, Michael Davidsaver
<address@hidden> wrote:
> Implement the SYSRESETREQ bit of the AIRCR register
> for armv7-m (ie. cortex-m3) to trigger a GPIO out.
>
This is probably the second patch (your new self-contained feature).
> Change armv7m_init to return the DeviceState* for the NVIC.
> This allows access to all GPIO blocks, not just the IRQ inputs.
> Move qdev_get_gpio_in() calls out of armv7m_init() into
> board code for stellaris and stm32f205 boards.
>
This is the first patch (refactorings).
Ideally we do this in a more QOM-correct way like with the A-class
MPCores but this rework actually gets us closer to that, so I see the
value in taking this as the first step. The function that now returns
a DeviceState is easily reworked to be a QOM object construction.
> Add GPIO in for the stellaris board which calls
> qemu_system_reset_request() on reset request.
Third patch (connect it all up).
Regards,
Peter
> ---
> hw/arm/armv7m.c | 9 ++-------
> hw/arm/stellaris.c | 36 +++++++++++++++++++++++++-----------
> hw/arm/stm32f205_soc.c | 13 ++++++-------
> hw/intc/armv7m_nvic.c | 7 ++++++-
> include/hw/arm/arm.h | 2 +-
> 5 files changed, 40 insertions(+), 27 deletions(-)
>
- [Qemu-devel] [PATCH] Exit on reset for armv7-m, Michael Davidsaver, 2015/10/08
- [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Michael Davidsaver, 2015/10/08
- Re: [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Peter Maydell, 2015/10/09
- Re: [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Michael Davidsaver, 2015/10/10
- Re: [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Peter Crosthwaite, 2015/10/09
- Re: [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Michael Davidsaver, 2015/10/09
- Re: [Qemu-devel] [PATCH] armv7-m: exit on external reset request, Michael Davidsaver, 2015/10/10
- [Qemu-devel] [PATCH v2] armv7-m: exit on external reset request, Michael Davidsaver, 2015/10/10
- Re: [Qemu-devel] [PATCH v2] armv7-m: exit on external reset request,
Peter Crosthwaite <=
- [Qemu-devel] [PATCH v3 3/3] stellaris: exit on external reset request, Michael Davidsaver, 2015/10/11
- Re: [Qemu-devel] [PATCH v3 3/3] stellaris: exit on external reset request, Peter Crosthwaite, 2015/10/30
- [Qemu-devel] [PATCH v3 2/3] armv7-m: Implement SYSRESETREQ, Michael Davidsaver, 2015/10/11
- Re: [Qemu-devel] [PATCH v3 2/3] armv7-m: Implement SYSRESETREQ, Peter Crosthwaite, 2015/10/30
- [Qemu-devel] [PATCH v3 1/3] armv7-m: Return DeviceState* from armv7m_init(), Michael Davidsaver, 2015/10/11
- Re: [Qemu-devel] [PATCH v3 1/3] armv7-m: Return DeviceState* from armv7m_init(), Peter Crosthwaite, 2015/10/30
- Re: [Qemu-devel] [PATCH v3 1/3] armv7-m: Return DeviceState* from armv7m_init(), Peter Crosthwaite, 2015/10/30
- Re: [Qemu-devel] [PATCH v3 1/3] armv7-m: Return DeviceState* from armv7m_init(), Peter Maydell, 2015/10/30
Re: [Qemu-devel] [PATCH] Exit on reset for armv7-m, Peter Crosthwaite, 2015/10/08