Re: [Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-19 Thread Martin Galvan
On Tue, Aug 19, 2014 at 11:16 AM, Peter Maydell wrote: > On 19 August 2014 14:25, Martin Galvan > wrote: >> On Tue, Aug 19, 2014 at 10:06 AM, Peter Maydell >> wrote: >>> I'm afraid this looks like the wrong fix for the problem you're seeing. >>> The bug you need to fix is that the ROM contents g

Re: [Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-19 Thread Peter Maydell
On 19 August 2014 14:25, Martin Galvan wrote: > On Tue, Aug 19, 2014 at 10:06 AM, Peter Maydell > wrote: >> I'm afraid this looks like the wrong fix for the problem you're seeing. >> The bug you need to fix is that the ROM contents got zeroed. >> The reset code is correct to reload SP and PC from

Re: [Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-19 Thread Martin Galvan
On Tue, Aug 19, 2014 at 10:06 AM, Peter Maydell wrote: > > On 11 August 2014 17:50, Martin Galvan > wrote: > > When calling qemu_system_reset after startup on a Cortex-M CPU, the initial > > values of PC, MSP and the Thumb bit weren't set correctly. In particular, > > since Thumb was 0, an Usage

Re: [Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-19 Thread Peter Maydell
On 11 August 2014 17:50, Martin Galvan wrote: > When calling qemu_system_reset after startup on a Cortex-M CPU, the initial > values of PC, MSP and the Thumb bit weren't set correctly. In particular, > since Thumb was 0, an Usage Fault would arise immediately after trying to > excecute any instruc

Re: [Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-18 Thread Martin Galvan
Ping http://patchwork.ozlabs.org/patch/379134/ On Mon, Aug 11, 2014 at 1:50 PM, Martin Galvan < martin.gal...@tallertechnologies.com> wrote: > When calling qemu_system_reset after startup on a Cortex-M CPU, the > initial values of PC, MSP and the Thumb bit weren't set correctly. In > particular,

[Qemu-devel] [PATCH] target-arm: Fix resetting issues on ARMv7-M CPUs

2014-08-11 Thread Martin Galvan
When calling qemu_system_reset after startup on a Cortex-M CPU, the initial values of PC, MSP and the Thumb bit weren't set correctly. In particular, since Thumb was 0, an Usage Fault would arise immediately after trying to excecute any instruction on a Cortex-M. Signed-off-by: Martin Galvan ---