[Qemu-devel] [PATCH v7 5/5] arm: kinetis_mk64fn1m0 machine

2017-10-27 Thread Gabriel Costa
100644 index 000..618791c --- /dev/null +++ b/hw/arm/mk64fn1m0.c @@ -0,0 +1,136 @@ +/* + * Kinetis K64 MK64FN1M0 microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can redistribute it and/or modify

[Qemu-devel] [PATCH v7 2/5] arm: kinetis_k64_mcg

2017-10-27 Thread Gabriel Costa
--- /dev/null +++ b/hw/misc/kinetis_k64_mcg.c @@ -0,0 +1,208 @@ +/* + * Kinetis K64 peripheral microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of

[Qemu-devel] [PATCH v7 4/5] arm: kinetis_k64_system

2017-10-27 Thread Gabriel Costa
@@ +/* + * Kinetis K64 peripheral microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 or + * (at your

[Qemu-devel] [PATCH v7 0/5] arm: kinetis_mk64fn1m0 machine

2017-10-27 Thread Gabriel Costa
u_log_mask and added .valid.min_access_size and .valid.max_access_size PATCH v6: misunderstood the process to add a new model, next patch will include the changes in the Makefile in the same patch version. regards, Gabriel Costa (5): arm: kinetis_k64_uart arm: kinetis_k64_mcg arm: ki

[Qemu-devel] [PATCH v7 1/5] arm: kinetis_k64_uart

2017-10-27 Thread Gabriel Costa
) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 or + * (at your option) any later version. + */ + +#include "qemu/osdep.h" +#include &q

Re: [Qemu-devel] [PATCH v5 4/5]arm: kinetis_k64_uart

2017-10-27 Thread Gabriel Costa
Hi Fred, I have added the .valid field like the bcm2835_aux.c file inside /hw/char. Gabriel On Fri, Oct 27, 2017 at 9:26 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > > > On 10/26/2017 12:34 PM, Gabriel Costa wrote: > >> From: Gabriel Augusto Costa

Re: [Qemu-devel] [PATCH v5 3/5]arm: kinetis_k64_system

2017-10-27 Thread Gabriel Costa
Hi Fred, Here, I prefer keep the variables names to easy check the Reset default values. Gabriel On Fri, Oct 27, 2017 at 9:20 AM, KONRAD Frederic < frederic.kon...@adacore.com> wrote: > > > On 10/26/2017 12:34 PM, Gabriel Costa wrote: > >> From: Gabriel Augusto Costa

Re: [Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform

2017-10-27 Thread Gabriel Costa
ust be modified in 4/5 kinetis_k64_uart. > > Fred > > > On 10/26/2017 12:34 PM, Gabriel Costa wrote: > >> From: Gabriel Augusto Costa >> >> This file change the Makefiles to compile the mk64fn1m0 machine. >> >> Signed-off-by: Gabriel Augusto Costa >

[Qemu-devel] [PATCH v5 5/5]arm: mk64fn1m0

2017-10-26 Thread Gabriel Costa
hw/arm/mk64fn1m0.c diff --git a/hw/arm/mk64fn1m0.c b/hw/arm/mk64fn1m0.c new file mode 100644 index 000..618791c --- /dev/null +++ b/hw/arm/mk64fn1m0.c @@ -0,0 +1,136 @@ +/* + * Kinetis K64 MK64FN1M0 microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel

[Qemu-devel] [PATCH v6]arm: Makefiles to kinetis k64 platform

2017-10-26 Thread Gabriel Costa
From: Gabriel Augusto Costa This file change the Makefiles to compile the mk64fn1m0 machine. Signed-off-by: Gabriel Augusto Costa --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 1 + hw/char/Makefile.objs | 1 + hw/misc/Makefile.objs | 3 +++ 4

[Qemu-devel] [PATCH v5 3/5]arm: kinetis_k64_system

2017-10-26 Thread Gabriel Costa
new file mode 100644 index 000..6421153 --- /dev/null +++ b/hw/misc/kinetis_k64_system.c @@ -0,0 +1,274 @@ +/* + * Kinetis K64 peripheral microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can

[Qemu-devel] [PATCH v5 1/5]arm: kinetis_k64_mcg

2017-10-26 Thread Gabriel Costa
100644 index 000..654f96b --- /dev/null +++ b/hw/misc/kinetis_k64_mcg.c @@ -0,0 +1,208 @@ +/* + * Kinetis K64 peripheral microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can redistribute it and/or

[Qemu-devel] [PATCH v5 4/5]arm: kinetis_k64_uart

2017-10-26 Thread Gabriel Costa
/kinetis_k64_uart.c new file mode 100644 index 000..fc9327d --- /dev/null +++ b/hw/char/kinetis_k64_uart.c @@ -0,0 +1,342 @@ +/* + * Kinetis K64 peripheral microcontroller emulation. + * + * Copyright (c) 2017 Advantech Wireless + * Written by Gabriel Costa + * + * This program is free software; you can

[Qemu-devel] [PATCH v5 0/5]arm: kinetis_k64

2017-10-26 Thread Gabriel Costa
From: Gabriel Augusto Costa Hi everyone, I made a new arm machine with some peripherals. The machine is mk64fn1m0, a cortex-m4 microcontroller from NXP Kinetis family. I have prepared a series of patchs to include this machine: PATCH v5 n/5: It adds the machine and peripherals devices; PATCH v6

Re: [Qemu-devel] [PATCH v1] arm: Adding new arm machine, Kinetis K64 MK64FN1M0

2017-10-23 Thread Gabriel Costa
Hi Philippe, Thanks for all your comments! I will put all this corrections for the next patch, also I removed the FlexTimer, it is not necessary to do this basic emulation. Thanks, Gabriel On Fri, Oct 20, 2017 at 6:25 PM, Philippe Mathieu-Daudé wrote: > > +/*dev = sysbus_create_simple(TY

Re: [Qemu-devel] [PATCH v3 04/11] kinetis_k64_sim.h has been added

2017-10-23 Thread Gabriel Costa
mode 100644 > > index 000..2eb1f5c > > --- /dev/null > > +++ b/include/hw/misc/kinetis_k64_sim.h > > I'd rather name it kinetis_k64_system.h or kinetis_k64_sysctl.h > > > @@ -0,0 +1,56 @@ > > +/* > > + * Kinetis K64 peripheral microcontrol

Re: [Qemu-devel] [PATCH v3 01/11] kinetis_k64_uart.h has been added

2017-10-20 Thread Gabriel Costa
Thanks, I found an example in [Qemu-devel] and in the next time I will include it. also, I note now that I did not put [Qemu-devel] and arm: in the messages. Should I resend everything corrected? On Fri, Oct 20, 2017 at 4:18 PM, Eric Blake wrote: > On 10/20/2017 10:37 AM, Gabriel Augusto Costa

Re: [Qemu-devel] [PATCH v1] arm: Adding new arm machine, Kinetis K64 MK64FN1M0

2017-10-20 Thread Gabriel Costa
, I received an error about a build fail (among others, of course), I believe that this happened because the first patch was not applied. Regards to all, Gabriel Costa On Thu, Oct 19, 2017 at 1:02 PM, Peter Maydell wrote: > On 19 October 2017 at 13:50, wrote: > > From: Gabriel Augu