[PATCH rc4 29/29] .travis.yml: Run the AVR acceptance tests

2020-01-30 Thread Aleksandar Markovic
| CANCEL 0 JOB TIME : 2.30 s Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ae645e..71390e2 100644 --- a/.travis.yml

[PATCH rc4 27/29] tests/boot-serial-test: Test some Arduino boards (AVR based)

2020-01-30 Thread Aleksandar Markovic
: Philippe Mathieu-Daudé [rth: Squash Arduino adjustments from f4bug] Tested-by: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- tests/qtest/Makefile.include | 2 ++ tests/qtest/boot-serial-test.c | 11 +++ 2 files changed, 13 insertions(+)

[PATCH rc4 20/29] target/avr: Register AVR support with the rest of QEMU

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Add AVR related definitions into QEMU. [AM: Remove word 'Atmel' from filenames and all elements of code] Suggested-by: Aleksandar Markovic Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-by: Richard

[PATCH rc4 22/29] target/avr: Update MAINTAINERS file

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Include AVR maintaners in MAINTAINERS file Signed-off-by: Michael Rolnik Signed-off-by: Philippe Mathieu-Daudé [rth: Squash ordering fixes from f4bug] Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 24 1

Re: [PATCH rc4 00/29] target/avr merger

2020-01-30 Thread Aleksandar Markovic
Michael, Philippe, Can you guys do a quick checkup of this rc4? rc4, rc3,and rc2 should be functionally 100% equivalent. Thank you, Aleksandar On Fri, Jan 31, 2020 at 1:06 AM Aleksandar Markovic wrote: > > From: Aleksandar Markovic > > This is the AVR port from Michael, re

[PATCH rc4 23/29] hw/avr: Add helper to load raw/ELF firmware binaries

2020-01-30 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé Add avr_load_firmware() function to load firmware in ELF or raw binary format. [AM: Corrected the type of the variable containing e_flags] Suggested-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- hw/avr

[PATCH rc4 15/29] target/avr: Add instruction disassembly function

2020-01-30 Thread Aleksandar Markovic
0x04c0: OUT $2, r24 0x04c2: RET ... ``` Signed-off-by: Michael Rolnik Suggested-by: Richard Henderson Suggested-by: Philippe Mathieu-Daudé Suggested-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [rth: Fix spacing and const

[PATCH rc4 21/29] target/avr: Add machine none test

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Add a single code line that will automatically provide 'machine none' test. Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Reviewed-by: Thomas Huth Signed-off-by: Richard Henderson Signed-off-by: Aleksanda

[PATCH rc4 26/29] target/avr: Update build system

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Make AVR support buildable. [AM: Remove word 'Atmel' from filenames and all elements of code] Suggested-by: Aleksandar Markovic Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-by: Richard Henderson

[PATCH rc4 13/29] target/avr: Add instruction translation - MCU Control Instructions

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - BREAK - NOP - SLEEP - WDR Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 8 ++ target/avr/translate.c | 68

[PATCH rc4 18/29] hw/misc: Add limited support for AVR power device

2020-01-30 Thread Aleksandar Markovic
ggested-by: Aleksandar Markovic Signed-off-by: Michael Rolnik Signed-off-by: Philippe Mathieu-Daudé [rth: Squash include fix and file rename from f4bug] Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- hw/misc/Kconfig | 3 ++ hw/misc/Makefile.objs | 2

[PATCH rc4 03/29] target/avr: Add migration support

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Add migration functions for AVR cores. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-off-by: Michael Rolnik Signed-off-by: Sarah Harris Signed-off

[PATCH rc4 09/29] target/avr: Add instruction translation - Arithmetic and Logic Instructions

2020-01-30 Thread Aleksandar Markovic
: Aleksandar Markovic --- target/avr/insn.decode | 93 ++ target/avr/translate.c | 752 + 2 files changed, 845 insertions(+) create mode 100644 target/avr/insn.decode diff --git a/target/avr/insn.decode b/target/avr/insn.decode new file mode

[PATCH rc4 02/29] target/avr: Introduce AVR CPU class object

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces AVR CPU class object and its basic elements and functions. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-off-by: Michael Rolnik

[PATCH rc4 14/29] target/avr: Add instruction translation - CPU main translation function

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Co-developed-by: Richard Henderson Co-developed-by: Michael Rolnik Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/translate.c | 234

[PATCH rc4 10/29] target/avr: Add instruction translation - Branch Instructions

2020-01-30 Thread Aleksandar Markovic
-by: Aleksandar Markovic --- target/avr/insn.decode | 24 +++ target/avr/translate.c | 532 + 2 files changed, 556 insertions(+) diff --git a/target/avr/insn.decode b/target/avr/insn.decode index 9c71ed6..32034c1 100644 --- a/target/avr/insn.decode

[PATCH rc4 08/29] target/avr: Add instruction translation - Register definitions

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik Start implementation of instructions by adding register definitions. Signed-off-by: Michael Rolnik Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/translate.c

[PATCH rc4 04/29] target/avr: Add GDB support

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This includes GDB hooks for reading from wnd wrtiting to AVR registers, and xml register definition file as well. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah

[PATCH rc4 00/29] target/avr merger

2020-01-30 Thread Aleksandar Markovic
From: Aleksandar Markovic This is the AVR port from Michael, release (merge) candidate 4. The series can be found also in this repository: https://github.com/AMarkovic/qemu-avr-merger-rc4 History: Since v3: - Removed a patch on load_elf() modification, since it has been merged - Removed

[PATCH rc4 11/29] target/avr: Add instruction translation - Data Transfer Instructions

2020-01-30 Thread Aleksandar Markovic
Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 43 +++ target/avr/translate.c | 987 + 2 files changed, 1030 insertions(+) diff --git a/target/avr/insn.decode b/target/avr

[PATCH rc4 06/29] target/avr: Add defintions of AVR core types

2020-01-30 Thread Aleksandar Markovic
definition of particular AVR core type (part of this patch). AVR core type defines shared features that are valid for all AVR MCUs belonging in that type. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by

[PATCH rc4 12/29] target/avr: Add instruction translation - Bit and Bit-test Instructions

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - LSR, ROR - ASR - SWAP - SBI, CBI - BST, BLD - BSET, BCLR Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 14

[PATCH rc4 05/29] target/avr: Introduce enumeration AVRFeature

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces enumeration "AVRFeature" that will be used for defining various AVR core types. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harr

[PATCH rc4 07/29] target/avr: Add instruction helpers

2020-01-30 Thread Aleksandar Markovic
the lack of peripherals to generate wake interrupts. Memory access instructions are implemented here because some address ranges actually refer to CPU registers. Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic

[PATCH rc4 01/29] target/avr: Add basic parameters for new AVR platform

2020-01-30 Thread Aleksandar Markovic
From: Michael Rolnik This includes definitions of various basic parameters needed for integration of a new platform into QEMU. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris

Re: [PATCH rc2 12/25] hw/timer: Add limited support for Atmel 16 bit timer peripheral

2020-01-30 Thread Aleksandar Markovic
ed-off-by: Philippe Mathieu-Daudé > > [rth: Squash info mtree fixes and a file rename from f4bug, which was:] > > Suggested-by: Aleksandar Markovic > > Signed-off-by: Richard Henderson > > [PMD: Use qemu_log_mask(LOG_UNIMP), replace goto by return] > > Signed-off-by

Re: [PATCH rc2 12/25] hw/timer: Add limited support for Atmel 16 bit timer peripheral

2020-01-30 Thread Aleksandar Markovic
On Fri, Jan 24, 2020 at 1:07 PM Sarah Harris wrote: > > Hi, > > Do I understand correctly that you need Ed to email a "Signed-off-by: Ed > Robbins " himself? > Ed's cc'ed already, but I'll email him directly to make sure he's seen this > discussion. > > Sarah > All authors should have their "Si

Re: [PATCH 0/4] target/ppc: Use probe_access

2020-01-30 Thread Aleksandar Markovic
On Thu, Jan 30, 2020 at 5:09 PM Richard Henderson wrote: > > On 1/29/20 5:35 PM, Aleksandar Markovic wrote: > > My additional concern, of course, is: Are other targets exposed to > > performance > > degradation, and why? > > Potentially, yes. However: > >

Re: [PATCH 0/4] target/ppc: Use probe_access

2020-01-30 Thread Aleksandar Markovic
On Thu, Jan 30, 2020 at 4:09 PM Howard Spoelstra wrote: > > As this patch set solved the performance issue and even led to the highest > scores I ever saw on the benchmark tool I used, let me add a: > This makes my question to Richard more important: Are other targets exposed to performance deg

Re: [GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-30 Thread Aleksandar Markovic
14:34 Čet, 23.01.2020. Aleksandar Markovic је написао/ла: > > Extend support for ioctls in QEMU linux-user mode > > > PLANNED ACTIVITIES > > BACKGROUND > > There is currently 2500+ ioctls defined in Linux kernel. QEMU linux-user currently supports only several hundre

Re: [PATCH 0/4] target/ppc: Use probe_access

2020-01-29 Thread Aleksandar Markovic
00:51 Čet, 30.01.2020. Richard Henderson је написао/ла: > > The first two address the performance regression noticed > by Howard Spoelstra. The last two are just something I > noticed at the same time. > But, performance regression, according to Howard bisect analysis, happened because of the ch

Re: [PATCH] qemu-deprecated: Remove text about Python 2

2020-01-29 Thread Aleksandar Markovic
23:14 Sre, 29.01.2020. Philippe Mathieu-Daudé је написао/ла: > > Hi Aleksandar, > > On 1/9/20 1:49 PM, Aleksandar Markovic wrote: > > > > > > On Thursday, January 9, 2020, Thomas Huth > <mailto:th...@redhat.com>> wrote: > > > > Python 2

[PULL 3/6] target/mips: semihosting: Remove 'uhi_done' label in helper_do_semihosting()

2020-01-29 Thread Aleksandar Markovic
From: Daniel Henrique Barboza The label 'uhi_done' is a simple 'return' call and can be removed for a bit more clarity in the code. CC: Aurelien Jarno CC: Aleksandar Markovic CC: Aleksandar Rikalo Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic S

[PULL 4/6] hw/core/loader: Let load_elf() populate a field with CPU-specific flags

2020-01-29 Thread Aleksandar Markovic
From: Aleksandar Markovic While loading the executable, some platforms (like AVR) need to detect CPU type that executable is built for - and, with this patch, this is enabled by reading the field 'e_flags' of the ELF header of the executable in question. The change expands functional

[PULL 2/6] disas: Add a field for target-dependant data to disassemble_info

2020-01-29 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Reviewed-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic

[PULL 5/6] target/mips: Amend CP0 WatchHi register implementation

2020-01-29 Thread Aleksandar Markovic
From: Yongbok Kim WatchHi is extended by the field MemoryMapID with the GINVT instruction. The field is accessible by MTHC0/MFHC0 in 32-bit architectures and DMTC0/ DMFC0 in 64-bit architectures. Reviewed-by: Aleksandar Rikalo Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic

[PULL 1/6] target/mips: Rectify documentation on deprecating MIPS r4k machine

2020-01-29 Thread Aleksandar Markovic
From: Aleksandar Markovic Correct file qemu-deprecated.texi with respect to the release since MIPS r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-2-git-send-em

[PULL 6/6] target/mips: Add implementation of GINVT instruction

2020-01-29 Thread Aleksandar Markovic
k Kim Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-5-git-send-email-aleksandar.marko...@rt-rk.com> --- disas/mips.c| 10 target/mips/cpu.h | 2 +- target/mips/helper.c| 20 ++-- target/mips/helper.h| 2 + target/mips/internal.h |

[PULL 0/6] MIPS queue for January 29th, 2020

2020-01-29 Thread Aleksandar Markovic
From: Aleksandar Markovic The following changes since commit 4c60e3289875ae6c516a37523bcecb87f68ce67c: Merge remote-tracking branch 'remotes/rth/tags/pull-pa-20200127' into staging (2020-01-28 15:11:04 +) are available in the git repository at: https://github.com/AMarkovic

Re: [PULL 0/6] MIPS queue for January 28th, 2020

2020-01-29 Thread Aleksandar Markovic
On Tue, Jan 28, 2020 at 9:19 PM Aleksandar Markovic wrote: > > From: Aleksandar Markovic > > The following changes since commit 4c60e3289875ae6c516a37523bcecb87f68ce67c: > > Merge remote-tracking branch 'remotes/rth/tags/pull-pa-20200127' into > staging (202

Re: [PATCH rc3 02/30] target/avr: Introduce AVR CPU class object

2020-01-29 Thread Aleksandar Markovic
ion 4.6.1) > [4] > http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2486-8-bit-AVR-microcontroller-ATmega8_L_datasheet.pdf > (page 13) > [5] http://ww1.microchip.com/downloads/en/DeviceDoc/doc2502.pdf (page 12) > [6] > http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2543-AV

Re: [PATCH 119/142] Aaaaallelujah!

2020-01-29 Thread Aleksandar Markovic
On Wed, Jan 29, 2020 at 1:26 PM Thomas Huth wrote: > > On 28/01/2020 18.53, Paolo Bonzini wrote: > > From: Marc-André Lureau > > > > Signed-off-by: Marc-André Lureau > > --- > > Well, even for an RFC series, you could choose a better patch subject. > And please add a short description what this

Re: [PATCH rc3 01/30] target/avr: Add basic parameters for new AVR platform

2020-01-29 Thread Aleksandar Markovic
08:38 Sre, 29.01.2020. Philippe Mathieu-Daudé је написао/ла: > > On 1/28/20 7:01 PM, Aleksandar Markovic wrote: > > Works for me too. > > > > > > 16:10 Uto, 28.01.2020. Michael Rolnik > <mailto:mrol...@gmail.com>> је написао/ла: > > > >

Re: [PATCH rc3 23/30] hw/core/loader: Let load_elf populate the processor-specific flags

2020-01-29 Thread Aleksandar Markovic
08:32 Sre, 29.01.2020. Philippe Mathieu-Daudé је написао/ла: > > Hi Aleksandar, > > On 1/28/20 8:25 PM, Aleksandar Markovic wrote: > > On Tue, Jan 28, 2020 at 2:27 PM Aleksandar Markovic > > mailto:aleksandar.m.m...@gmail.com>> wrote: > > > > > &g

Re: [PULL 4/6] hw/core/loader: Let load_elf() populate the processor-specific flags

2020-01-28 Thread Aleksandar Markovic
21:10 Uto, 28.01.2020. Aleksandar Markovic је написао/ла: > > From: Philippe Mathieu-Daudé > Unfortunately, some spelling errors of mine slipped through the cracks: > While loading the executable, some platforms (like AVR) need to > determine CPU type that executable is built

Re: [GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-28 Thread Aleksandar Markovic
On Tue, Jan 28, 2020 at 7:00 PM Peter Maydell wrote: > On Tue, 28 Jan 2020 at 17:51, Aleksandar Markovic > wrote: > > > > I am personally interested in both. However, learning about syscalls and > implementation of support for them in QEMU would require more ramp-up time

[PULL 4/6] hw/core/loader: Let load_elf() populate the processor-specific flags

2020-01-28 Thread Aleksandar Markovic
ael Walle CC: Thomas Huth CC: Laurent Vivier CC: Philippe Mathieu-Daudé CC: Aleksandar Rikalo CC: Aurelien Jarno CC: Jia Liu CC: David Gibson CC: Mark Cave-Ayland CC: BALATON Zoltan CC: Christian Borntraeger CC: Thomas Huth CC: Artyom Tarasenko CC: Fabien Chouteau CC: KONRAD Frederic CC:

[PULL 2/6] disas: Add a field for target-dependant data

2020-01-28 Thread Aleksandar Markovic
From: Aleksandar Markovic This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Reviewed-by: Aleksandar Rikalo Signed-off-by: Aleksandar Markovic

[PULL 3/6] mips-semi.c: remove 'uhi_done' label in helper_do_semihosting()

2020-01-28 Thread Aleksandar Markovic
From: Daniel Henrique Barboza The label 'uhi_done' is a simple 'return' call and can be removed for a bit more clarity in the code. CC: Aurelien Jarno CC: Aleksandar Markovic CC: Aleksandar Rikalo Reviewed-by: Aleksandar Markovic Signed-off-by: Aleksandar Markovic S

[PULL 5/6] target/mips: Amend CP0 WatchHi register implementation

2020-01-28 Thread Aleksandar Markovic
From: Yongbok Kim WatchHi is extended by the field MemoryMapID with the GINVT instruction. The field is accessible by MTHC0/MFHC0 in 32-bit architectures and DMTC0/ DMFC0 in 64-bit architectures. Reviewed-by: Aleksandar Rikalo Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic

[PULL 6/6] target/mips: Add implementation of GINVT instruction

2020-01-28 Thread Aleksandar Markovic
k Kim Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-5-git-send-email-aleksandar.marko...@rt-rk.com> --- disas/mips.c| 10 target/mips/cpu.h | 2 +- target/mips/helper.c| 20 ++-- target/mips/helper.h| 2 + target/mips/internal.h |

[PULL 0/6] MIPS queue for January 28th, 2020

2020-01-28 Thread Aleksandar Markovic
From: Aleksandar Markovic The following changes since commit 4c60e3289875ae6c516a37523bcecb87f68ce67c: Merge remote-tracking branch 'remotes/rth/tags/pull-pa-20200127' into staging (2020-01-28 15:11:04 +) are available in the git repository at: https://github.com/AMarkovic

[PULL 1/6] target/mips: Rectify documentation on deprecating r4k machine

2020-01-28 Thread Aleksandar Markovic
From: Aleksandar Markovic Change the documented (in file qemu-deprecated.texi) release since r4k machine is deprecated from 4.2 to 5.0. Fixes: d32dc61421b Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-Id: <1579883929-1517-2-git-send-email-aleksandar.ma

Re: [PATCH rc3 23/30] hw/core/loader: Let load_elf populate the processor-specific flags

2020-01-28 Thread Aleksandar Markovic
On Tue, Jan 28, 2020 at 2:27 PM Aleksandar Markovic < aleksandar.m.m...@gmail.com> wrote: > > > On Tuesday, January 28, 2020, BALATON Zoltan wrote: > >> On Tue, 28 Jan 2020, Aleksandar Markovic wrote: >> >>> On Sunday, January 26, 2020, Aleksandar Marko

Re: [PATCH rc3 01/30] target/avr: Add basic parameters for new AVR platform

2020-01-28 Thread Aleksandar Markovic
Works for me too. 16:10 Uto, 28.01.2020. Michael Rolnik је написао/ла: > Sounds good to me. > > On Tue, Jan 28, 2020 at 3:49 PM Aleksandar Markovic < > aleksandar.m.m...@gmail.com> wrote: > >> >> >> On Tuesday, January 28, 2020, Michael Rolnik wrote: >

Re: [GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-28 Thread Aleksandar Markovic
15:38 Uto, 28.01.2020. Peter Maydell је написао/ла: > > On Thu, 23 Jan 2020 at 15:33, Aleksandar Markovic > wrote: > > PART III: > > > > a) Develop unit tests for selected ioctls that are already supported in QEMU. > > These should probably just be part o

Re: [GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-28 Thread Aleksandar Markovic
15:28 Uto, 28.01.2020. Laurent Vivier је написао/ла: > > Le 27/01/2020 à 17:30, Aleksandar Markovic a écrit : > > > > > > On Mon, Jan 27, 2020 at 10:30 AM Stefan Hajnoczi > <mailto:stefa...@redhat.com>> wrote: > >> > >> On Thu, Jan 2

Re: [PATCH rc3 01/30] target/avr: Add basic parameters for new AVR platform

2020-01-28 Thread Aleksandar Markovic
care. I propose that Philippe do rc4. Sincerely, Aleksandar > > On Mon, Jan 27, 2020 at 10:54 AM Michael Rolnik wrote: > >> Thanks for you help guys. >> >> On Mon, Jan 27, 2020 at 12:55 AM Aleksandar Markovic < >> aleksandar.marko...@rt-rk.com> wrote: >

Re: [PATCH rc3 23/30] hw/core/loader: Let load_elf populate the processor-specific flags

2020-01-28 Thread Aleksandar Markovic
On Tuesday, January 28, 2020, BALATON Zoltan wrote: > On Tue, 28 Jan 2020, Aleksandar Markovic wrote: > >> On Sunday, January 26, 2020, Aleksandar Markovic < >> aleksandar.marko...@rt-rk.com> wrote: >> >> From: Philippe Mathieu-Daudé >>> >>>

Re: [PATCH rc3 23/30] hw/core/loader: Let load_elf populate the processor-specific flags

2020-01-28 Thread Aleksandar Markovic
On Sunday, January 26, 2020, Aleksandar Markovic < aleksandar.marko...@rt-rk.com> wrote: > From: Philippe Mathieu-Daudé > > Some platforms (like AVR) need to determine cpu type by reading > the ELF flags (field e_flags oin ELF header). > > This patch enables discovery of

Re: [GSoC/Outreachy QEMU proposal] Extend support for ioctls in QEMU linux-user mode

2020-01-27 Thread Aleksandar Markovic
On Mon, Jan 27, 2020 at 10:30 AM Stefan Hajnoczi wrote: > > On Thu, Jan 23, 2020 at 02:34:01PM +0100, Aleksandar Markovic wrote: > > *Extend support for ioctls in QEMU linux-user mode* > > > > > > > > *PLANNED ACTIVITIES* > > > > BACKGROUND > >

Re: [PATCH rc3 02/30] target/avr: Introduce AVR CPU class object

2020-01-27 Thread Aleksandar Markovic
09:03 Pon, 27.01.2020. Philippe Mathieu-Daudé је написао/ла: > > On 1/27/20 3:39 AM, Aleksandar Markovic wrote: > >> +static void avr_cpu_initfn(Object *obj) > >> +{ > >> +AVRCPU *cpu = AVR_CPU(obj); > >> + > >> +cpu_set_cpustate_p

Re: [PATCH rc2 20/25] hw/avr: Add some ATmega microcontrollers

2020-01-27 Thread Aleksandar Markovic
08:59 Pon, 27.01.2020. Philippe Mathieu-Daudé је написао/ла: > > On 1/26/20 3:46 PM, Aleksandar Markovic wrote: > > On Friday, January 24, 2020, Philippe Mathieu-Daudé > <mailto:f4...@amsat.org>> wrote: > > > > Add some microcontrollers fr

Re: [PATCH rc3 24/30] hw/avr: Add helper to load raw/ELF firmware binaries

2020-01-26 Thread Aleksandar Markovic
23:56 Ned, 26.01.2020. Aleksandar Markovic је написао/ла: > > From: Philippe Mathieu-Daudé > > Add avr_load_firmware() function to load firmware in ELF or > raw binary format. > > [AM: Corrected the type of the variable containing e_flags] > > Suggested-by: Aleksanda

Re: [PATCH rc3 02/30] target/avr: Introduce AVR CPU class object

2020-01-26 Thread Aleksandar Markovic
> +static void avr_cpu_initfn(Object *obj) > +{ > +AVRCPU *cpu = AVR_CPU(obj); > + > +cpu_set_cpustate_pointers(cpu); > + > +#ifndef CONFIG_USER_ONLY > +/* Set the number of interrupts supported by the CPU. */ > +qdev_init_gpio_in(DEVICE(cpu), avr_cpu_set_int, > +sizeof(

Re: [PATCH rc2 01/25] target/avr: Add outward facing interfaces and core CPU logic

2020-01-26 Thread Aleksandar Markovic
On Sun, Jan 26, 2020 at 1:15 PM Joaquin de Andres wrote: > > +struct CPUAVRState { > > +uint32_t pc_w; /* 0x003f up to 22 bits */ > > + > > +uint32_t sregC; /* 0x0001 1 bit */ > > +uint32_t sregZ; /* 0x0001 1 bit */ > > +uint32_t sregN; /* 0x0001 1 bit */ > > +

[PATCH rc3 27/30] target/avr: Update build system

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Make AVR support buildable Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- configure | 7 +++ default-configs/avr

[PATCH rc3 23/30] hw/core/loader: Let load_elf populate the processor-specific flags

2020-01-26 Thread Aleksandar Markovic
: KONRAD Frederic CC: Max Filippov Signed-off-by: Michael Rolnik Reviewed-by: Aleksandar Markovic [PMD: Extracted from bigger patch, Replaced 'uint32_t *pe_flags' by 'int proc_flags'] [AM: Replaced 'int proc_flags' with 'uint32_t *pflags', replaced

[PATCH rc3 30/30] .travis.yml: Run the AVR acceptance tests

2020-01-26 Thread Aleksandar Markovic
| CANCEL 0 JOB TIME : 2.30 s Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6c1038a..2301c92 100644 --- a/.travis.yml

[PATCH rc3 24/30] hw/avr: Add helper to load raw/ELF firmware binaries

2020-01-26 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé Add avr_load_firmware() function to load firmware in ELF or raw binary format. [AM: Corrected the type of the variable containing e_flags] Suggested-by: Aleksandar Markovic Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- hw/avr

[PATCH rc3 25/30] hw/avr: Add some ATmega microcontrollers

2020-01-26 Thread Aleksandar Markovic
-2561_datasheet.pdf Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- hw/avr/Kconfig| 5 + hw/avr/Makefile.objs | 1 + hw/avr/atmel_atmega.c | 470 ++ hw/avr/atmel_atmega.h | 48

[PATCH rc3 29/30] tests/acceptance: Test the Arduino MEGA2560 board

2020-01-26 Thread Aleksandar Markovic
eviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Acked-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé [rth: Squash multiple avocado fixups from f4bug] Tested-by: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- tests/acceptance/

[PATCH rc3 20/30] target/avr: Register AVR support with the rest of QEMU

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Add AVR related definitions into QEMU Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- arch_init.c| 2 ++ include/disas/dis-asm.h

[PATCH rc3 16/30] hw/char: Add limited support for Atmel USART peripheral

2020-01-26 Thread Aleksandar Markovic
-off-by: Sarah Harris Signed-off-by: Philippe Mathieu-Daudé [rth: Squash I/O size fix and file rename from f4bug, which was:] Suggested-by: Aleksandar Markovic Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- hw/char/Kconfig | 3 + hw/char/Makefile.objs

[PATCH rc3 21/30] target/avr: Add machine none test

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Reviewed-by: Thomas Huth Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- tests/qtest/machine-none-test.c | 1 + 1 file changed, 1 insertion

[PATCH rc3 19/30] target/avr: Add section about AVR into QEMU documentation

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Explains basic ways of using AVR target in QEMU. Signed-off-by: Michael Rolnik Message-Id: <20200118191416.19934-16-mrol...@gmail.com> Signed-off-by: Richard Henderson [PMD: Fixed typos] Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic ---

[PATCH rc3 02/30] target/avr: Introduce AVR CPU class object

2020-01-26 Thread Aleksandar Markovic
Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/cpu-qom.h | 54 + target/avr/cpu.c | 220 +++ target/avr/cpu.h | 134 +++ 3 files changed, 408

[PATCH rc3 26/30] hw/avr: Add some Arduino boards

2020-01-26 Thread Aleksandar Markovic
Mammedov Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Joaquin de Andres Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 6 ++ hw/avr/Kconfig | 4 ++ hw/avr/Makefile.objs | 1 + hw/avr/arduino.c | 151

[PATCH rc3 18/30] hw/misc: Add Atmel power device

2020-01-26 Thread Aleksandar Markovic
and file rename from f4bug, which was:] Suggested-by: Aleksandar Markovic Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- hw/misc/Kconfig | 3 ++ hw/misc/Makefile.objs | 2 + hw/misc/atmel_power.c | 112

[PATCH rc3 11/30] target/avr: Add instruction translation - Data Transfer Instructions

2020-01-26 Thread Aleksandar Markovic
Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 43 +++ target/avr/translate.c | 987 + 2 files changed, 1030 insertions(+) diff --git a/target/avr/insn.decode b/target/avr

[PATCH rc3 09/30] target/avr: Add instruction translation - Arithmetic and Logic Instructions

2020-01-26 Thread Aleksandar Markovic
: Aleksandar Markovic --- target/avr/insn.decode | 93 ++ target/avr/translate.c | 752 + 2 files changed, 845 insertions(+) create mode 100644 target/avr/insn.decode diff --git a/target/avr/insn.decode b/target/avr/insn.decode new file mode

[PATCH rc3 17/30] hw/timer: Add limited support for Atmel 16 bit timer peripheral

2020-01-26 Thread Aleksandar Markovic
-off-by: Sarah Harris Signed-off-by: Philippe Mathieu-Daudé [rth: Squash info mtree fixes and a file rename from f4bug, which was:] Suggested-by: Aleksandar Markovic Signed-off-by: Richard Henderson [PMD: Use qemu_log_mask(LOG_UNIMP), replace goto by return] Signed-off-by: Philippe Mathieu-Daudé

[PATCH rc3 03/30] target/avr: Add migration support

2020-01-26 Thread Aleksandar Markovic
: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/cpu.c | 1 + target/avr/cpu.h | 4 ++ target/avr/machine.c | 121 +++ 3 files changed, 126 insertions(+) create mode 100644 target/avr/machine.c diff --git a/target/avr

[PATCH rc3 04/30] target/avr: Add GDB support

2020-01-26 Thread Aleksandar Markovic
-by: Igor Mammedov Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- gdb-xml/avr-cpu.xml | 49 ++ target/avr/cpu.c | 4 +++ target/avr/cpu.h | 2 ++ target/avr/gdbstub.c | 84

[PATCH rc3 22/30] target/avr: Update MAINTAINERS file

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Include AVR maintaners in MAINTAINERS file Signed-off-by: Michael Rolnik Signed-off-by: Philippe Mathieu-Daudé [rth: Squash ordering fixes from f4bug] Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 24 1

[PATCH rc3 28/30] tests/boot-serial-test: Test some Arduino boards (AVR based)

2020-01-26 Thread Aleksandar Markovic
: Philippe Mathieu-Daudé [rth: Squash Arduino adjustments from f4bug] Tested-by: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- tests/qtest/Makefile.include | 2 ++ tests/qtest/boot-serial-test.c | 11 +++ 2 files changed, 13 insertions(+)

[PATCH rc3 10/30] target/avr: Add instruction translation - Branch Instructions

2020-01-26 Thread Aleksandar Markovic
-by: Aleksandar Markovic --- target/avr/insn.decode | 24 +++ target/avr/translate.c | 532 + 2 files changed, 556 insertions(+) diff --git a/target/avr/insn.decode b/target/avr/insn.decode index 9c71ed6..32034c1 100644 --- a/target/avr/insn.decode

[PATCH rc3 13/30] target/avr: Add instruction translation - MCU Control Instructions

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - BREAK - NOP - SLEEP - WDR Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 8 ++ target/avr/translate.c | 68

[PATCH rc3 14/30] target/avr: Add instruction translation - CPU main translation function

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Co-developed-by: Richard Henderson Co-developed-by: Michael Rolnik Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/translate.c | 234

[PATCH rc3 15/30] target/avr: Add instruction disassembly function

2020-01-26 Thread Aleksandar Markovic
0x04c0: OUT $2, r24 0x04c2: RET ... ``` Signed-off-by: Michael Rolnik Suggested-by: Richard Henderson Suggested-by: Philippe Mathieu-Daudé Suggested-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [rth: Fix spacing and const

[PATCH rc3 12/30] target/avr: Add instruction translation - Bit and Bit-test Instructions

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - LSR, ROR - ASR - SWAP - SBI, CBI - BST, BLD - BSET, BCLR Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/insn.decode | 14

[PATCH rc3 01/30] target/avr: Add basic parameters for new AVR platform

2020-01-26 Thread Aleksandar Markovic
: Igor Mammedov Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/cpu-param.h | 37 ++ target/avr/cpu.h | 72 ++ 2 files changed, 109 insertions(+) create

[PATCH rc3 06/30] target/avr: Add defintions of AVR core types

2020-01-26 Thread Aleksandar Markovic
Rolnik Acked-by: Igor Mammedov Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/cpu.c | 601 +++ 1 file changed, 601 insertions(+) diff --git a/target/avr/cpu.c b/target/avr

[PATCH rc3 00/30] target/avr merger

2020-01-26 Thread Aleksandar Markovic
From: Aleksandar Markovic This is the AVR port from Michael release (merge) candidate 3. The series can be found also in this repository: https://github.com/AMarkovic/qemu-avr-merger-rc3 History: Since v2: - First patch is split into six smaller logical units (net result remains the same

[PATCH rc3 08/30] target/avr: Add instruction translation - Registers definition

2020-01-26 Thread Aleksandar Markovic
From: Michael Rolnik Signed-off-by: Michael Rolnik Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/translate.c | 171 + 1 file changed

[PATCH rc3 05/30] target/avr: Introduce AVR features

2020-01-26 Thread Aleksandar Markovic
r Mammedov Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/cpu.h | 46 ++ 1 file changed, 46 insertions(+) diff --git a/target/avr/cpu.h b/target/avr/cpu.h index b358e94..b74bcf0 10

[PATCH rc3 07/30] target/avr: Add instruction helpers

2020-01-26 Thread Aleksandar Markovic
wake interrupts. Memory access instructions are implemented here because some address ranges actually refer to CPU registers. Signed-off-by: Michael Rolnik Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic --- target/avr/helper.c | 347

Re: [GSoC/Outreachy QEMU project proposal] Measure and Analyze QEMU Performance

2020-01-26 Thread Aleksandar Markovic
On Wed, Jan 22, 2020 at 12:28 PM Stefan Hajnoczi wrote: > > On Tue, Jan 21, 2020 at 03:07:53PM +0100, Aleksandar Markovic wrote: > > On Mon, Jan 20, 2020 at 3:51 PM Stefan Hajnoczi wrote: > > > > > > On Sat, Jan 18, 2020 at 03:08:37PM +0100, Aleksandar Markovic w

Re: [PATCH rc2 20/25] hw/avr: Add some ATmega microcontrollers

2020-01-26 Thread Aleksandar Markovic
On Friday, January 24, 2020, Philippe Mathieu-Daudé wrote: > Add some microcontrollers from the megaAVR family (ATmega series): > > - middle range: ATmega168 and ATmega328 > - high range: ATmega1280 and ATmega2560 > > For product comparison: > https://www.microchip.com/wwwproducts/ProductCompar

Re: [PATCH rc2 01/25] target/avr: Add outward facing interfaces and core CPU logic

2020-01-25 Thread Aleksandar Markovic
On Friday, January 24, 2020, Philippe Mathieu-Daudé wrote: > From: Michael Rolnik > > This includes: > - CPU data structures > - object model classes and functions > - migration functions > - GDB hooks > > I have an objection over this patch. It contains many diverse logical units squashed into

<    4   5   6   7   8   9   10   11   12   13   >