Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-30 Thread Peter Crosthwaite
On Sat, May 30, 2015 at 1:54 PM, Peter Maydell wrote: > On 30 May 2015 at 21:10, Peter Crosthwaite > wrote: >> I think the risu tool is able to do something. A quick look at the >> readme shows it should have thumb support: >> >> https://git.linaro.org/people/peter.maydell/risu.git/blob/HEAD:/RE

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-30 Thread Peter Maydell
On 30 May 2015 at 21:10, Peter Crosthwaite wrote: > I think the risu tool is able to do something. A quick look at the > readme shows it should have thumb support: > > https://git.linaro.org/people/peter.maydell/risu.git/blob/HEAD:/README It does rely on the remote end running Linux though, which

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-30 Thread Peter Crosthwaite
On Sat, May 30, 2015 at 12:27 PM, Liviu Ionescu wrote: > > I could not follow the details of this patch, but since it touches the core > of qemu, are there any tests available to check if these instructions are > emulated correctly? > > I think the risu tool is able to do something. A quick loo

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-30 Thread Liviu Ionescu
I could not follow the details of this patch, but since it touches the core of qemu, are there any tests available to check if these instructions are emulated correctly? regards, Liviu

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-28 Thread Liviu Ionescu
> On 28 May 2015, at 18:28, aurelio remonda wrote: > > ... I'd like to point out that i did not implement any board that's ok, I started from the other end, I'm working on implementing various boards and MCUs (for the list see http://gnuarmeclipse.livius.net/blog/qemu/#Supported_boards), but

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-28 Thread aurelio remonda
At first sight VFP4 is sufficient, im focusing on DSP instructions because FPU is optional on Cortex-M4 (there is Cortex-M4 and Cortex-M4F) so on cortex_m4_initfn im not adding ARM_FEATURE_VFP4 (right now I dont have the time to fully check this). I'd like to point out that i did not implement any

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-26 Thread Peter Maydell
On 26 May 2015 at 18:13, aurelio remonda wrote: > There are 85 instructions labeled as DSP (all of them thumb2), im just > testing on disas_thumb2_insn if the feature is enabled before the > instruction is generated.i.e. > if (!arm_dc_feature(s, ARM_FEATURE_DSP)) goto illegal_op; > Im using DDI043

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-26 Thread aurelio remonda
There are 85 instructions labeled as DSP (all of them thumb2), im just testing on disas_thumb2_insn if the feature is enabled before the instruction is generated.i.e. if (!arm_dc_feature(s, ARM_FEATURE_DSP)) goto illegal_op; Im using DDI0439B_cortex_m4_r0p0_trm - Cortex-M4 Technical Reference Manua

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-26 Thread Peter Maydell
On 26 May 2015 at 16:29, aurelio remonda wrote: > Im working on the ARM_FEATURE_DSP. I could use some help to add it to the > other CPUs that use it, maybe if someone can > provide me with a list of them i could add the feature. Can you explain what behaviour you're turning on and off with this f

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-26 Thread aurelio remonda
Im working on the ARM_FEATURE_DSP. I could use some help to add it to the other CPUs that use it, maybe if someone can provide me with a list of them i could add the feature.

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-12 Thread Peter Maydell
On 12 May 2015 at 13:46, aurelio remonda wrote: > Im using lm3s6965evb stellaris board, trying to make it "work as an M4", i > would like to separate them, adding an dsp feature (i.e ARM_FEATURE_DSP) > could work? the problem is if this feature is added it has to be set on all > the cpus that use

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-12 Thread aurelio remonda
Im using lm3s6965evb stellaris board, trying to make it "work as an M4", i would like to separate them, adding an dsp feature (i.e ARM_FEATURE_DSP) could work? the problem is if this feature is added it has to be set on all the cpus that use dsp instructions.

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-07 Thread aurelio remonda
Im replying this cause i made a mistake asking to someones private mail, sorry: > OK, another question. How come if Cortex-M3 doesnt support DSP instructions > qemu understand them? I tried some of them with an stellaris lm3s6965evb. I > do understand that they were implemented for the A profile co

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-05 Thread Liviu Ionescu
> On 05 May 2015, at 15:52, aurelio remonda wrote: > > Hi, i would like to to add support for cortex-m4 on qemu. ... For your information, I'm also planning to improve support for the Cortex-M family in my GNU ARM Eclipse QEMU fork. My first priority is fully supporting the Cortex-M system pe

Re: [Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-05 Thread Peter Maydell
On 5 May 2015 at 13:52, aurelio remonda wrote: > Hi, i would like to to add support for cortex-m4 on qemu. Most features of > the Cortex-M3 and M4 are the same with the significant difference that > Cortex-M4 has DSP extensions and optional FPU. Even so, i really need some > pointers for this (im

[Qemu-devel] [ARM]: Adding support for Cortex-M4

2015-05-05 Thread aurelio remonda
Hi, i would like to to add support for cortex-m4 on qemu. Most features of the Cortex-M3 and M4 are the same with the significant difference that Cortex-M4 has DSP extensions and optional FPU. Even so, i really need some pointers for this (im a newbie on qemu devel). I found out that qemu can manag