Re: [PATCH] target/avr: Ignore unimplemented WDR opcode

2021-05-05 Thread Fred Konrad
atchdog peripheral is not implemented, simply log the opcode as unimplemented and keep going. Reported-by: Fred Konrad Signed-off-by: Philippe Mathieu-Daudé --- target/avr/helper.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/target/avr/helper.c b/target/avr/helper.c index 35e101

Re: [PATCH] hw/avr/atmega.c: use the avr51 cpu for atmega1280

2021-05-05 Thread Fred Konrad
Le 4/30/21 à 12:27 PM, Joaquin de Andres a écrit : On 4/28/21 9:17 PM, Philippe Mathieu-Daudé wrote: Cc'ing Joaquín. On 4/28/21 9:15 PM, Frederic Konrad wrote: According to the as documentation: (https://sourceware.org/binutils/docs-2.36/as/AVR-Options.html) "Instruction set avr51 is

Re: [RFC 1/1] Implement AVR watchdog timer

2021-05-03 Thread Fred Konrad
Le 5/2/21 à 10:10 PM, Michael Rolnik a écrit : Signed-off-by: Michael Rolnik --- hw/avr/Kconfig| 1 + hw/avr/atmega.c | 15 ++- hw/avr/atmega.h | 2 + hw/watchdog/Kconfig | 3 + hw/watchdog/avr_wdt.c | 190

Re: [RFC 0/1] Implement AVR WDT (watchdog timer)

2021-05-03 Thread Fred Konrad
Hi Michael, Le 5/2/21 à 10:10 PM, Michael Rolnik a écrit : 1. Initial implementation of AVR WDT Nice! There are two issues with this implementation so I need your help here a. when I configure the WDT to fire an interrupt every 15ms it actually happens every 6 instructions

Re: [RFC] AVR watchdog

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 8:17 PM, Michael Rolnik a écrit : Hi Fred. How can I reproduce it? Thank you. Michael Rolnik Hi Michael, First sorry for the patchew noise, I didn't meant to sent a patch just an inlined diff. For the reproducer, that's pretty straight-forward with v6.0.0-rc5: $ cat > foo.S

Re: [PATCH v2 3/4] hw/sparc64: Fix code style for checkpatch.pl

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 4:16 PM, Philippe Mathieu-Daudé a écrit : We are going to move this code, fix its style first. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: KONRAD Frederic --- hw/sparc64/sparc64.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 2/4] hw/sparc64: Remove unused "hw/char/serial.h" header

2021-04-28 Thread Fred Konrad
Le 4/28/21 à 4:16 PM, Philippe Mathieu-Daudé a écrit : Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: KONRAD Frederic --- hw/sparc64/sparc64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/sparc64/sparc64.c b/hw/sparc64/sparc64.c index e3f9219a101..cc0b9bd30d3 100644 ---

[RFC] AVR watchdog

2021-04-28 Thread Fred Konrad
Hi, I fall on a segfault while running the wdr instruction on AVR: (gdb) bt #0 0xadd0b23a in gdb_get_cpu_pid (cpu=0xaf5a4af0) at ../gdbstub.c:718 #1 0xadd0b2dd in gdb_get_cpu_process (cpu=0xaf5a4af0) at ../gdbstub.c:743 #2

Re: [RFC PATCH 2/2] hw/sparc: Allow building without the leon3 machine

2021-04-28 Thread Fred Konrad
Hi Philippe, Le 4/27/21 à 9:26 PM, Philippe Mathieu-Daudé a écrit : When building without the leon3 machine, we get this link failure: /usr/bin/ld: target_sparc_int32_helper.c.o: in function `leon3_irq_manager': target/sparc/int32_helper.c:172: undefined reference to `leon3_irq_ack'

Re: [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without the leon3 machine

2021-04-28 Thread Fred Konrad
Le 4/27/21 à 9:26 PM, Philippe Mathieu-Daudé a écrit : This series fixes link failure when building either the leon3 machine or the sun4m ones. The problem is we have hardware specific code in the architectural translation code. Move this code to hw/sparc/. The link failures can be

Re: [PATCH 0/2] sparc/leon3: Make grlib-irqmp handle its own inbound IRQ lines

2021-01-05 Thread Fred Konrad
Le 12/12/20 à 3:41 PM, Peter Maydell a écrit : Currently the GRLIB_IRQMP device is used in one place (the leon3 board), but instead of the device providing inbound gpio lines for the board to wire up, the board code itself calls qemu_allocate_irqs() with the handler function being a set_irq

Re: [PATCH 2/2] include/hw/sparc/grlib.h: Remove unused set_pil_in_fn typedef

2021-01-05 Thread Fred Konrad
Le 12/12/20 à 3:41 PM, Peter Maydell a écrit : The grlib.h header defines a set_pil_in_fn typedef which is never used; remove it. Signed-off-by: Peter Maydell --- include/hw/sparc/grlib.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/hw/sparc/grlib.h

Re: [PATCH 1/2] hw/sparc: Make grlib-irqmp device handle its own inbound IRQ lines

2021-01-05 Thread Fred Konrad
Hi Peter, Le 12/12/20 à 3:41 PM, Peter Maydell a écrit : Currently the GRLIB_IRQMP device is used in one place (the leon3 board), but instead of the device providing inbound gpio lines for the board to wire up, the board code itself calls qemu_allocate_irqs() with the handler function being a

Re: [PATCH v1 1/2] semihosting: defer connect_chardevs a little more to use serialx

2020-07-15 Thread Fred Konrad
Le 6/26/20 à 12:06 PM, Fred Konrad a écrit : Le 6/16/20 à 4:52 PM, Alex Bennée a écrit : kon...@adacore.com writes: From: KONRAD Frederic With that we can just use chardev=serial0. I don't quite follow what this means. ./aarch64-softmmu/qemu-system-aarch64 -cpu max -monitor none

Re: [PATCH] i2c: Match parameters of i2c_start_transfer and i2c_send_recv

2020-06-26 Thread Fred Konrad
Hi Corey, Le 6/22/20 à 11:32 PM, Corey Minyard a écrit : On Sun, Jun 21, 2020 at 04:43:38PM +0200, BALATON Zoltan wrote: These functions have a parameter that decides the direction of transfer but totally confusingly they don't match but inverted sense. To avoid frequent mistakes when using

Re: [PATCH v1 1/2] semihosting: defer connect_chardevs a little more to use serialx

2020-06-26 Thread Fred Konrad
Le 6/16/20 à 4:52 PM, Alex Bennée a écrit : kon...@adacore.com writes: From: KONRAD Frederic With that we can just use chardev=serial0. I don't quite follow what this means. ./aarch64-softmmu/qemu-system-aarch64 -cpu max -monitor none -chardev=serial0 -M virt -display none

Re: [PATCH 1/2] softfloat: m68k: infinity is a valid encoding

2020-06-15 Thread Fred Konrad
Missed this one sorry. Le 6/12/20 à 10:31 AM, Laurent Vivier a écrit : Le 28/04/2020 à 19:17, KONRAD Frederic a écrit : The MC68881 say about infinities (3.2.4): "*For the extended precision format, the most significant bit of the mantissa (the integer bit) is a don't care."

Re: [PATCH 1/3] hw/sparc/leon3: Map the UART device unconditionally

2020-06-08 Thread Fred Konrad
Le 6/8/20 à 7:21 PM, Philippe Mathieu-Daudé a écrit : The UART is present on the chipset regardless there is a character device connected to it. Map it unconditionally. Signed-off-by: Philippe Mathieu-Daudé --- hw/sparc/leon3.c | 18 -- 1 file changed, 8 insertions(+), 10

Re: [PATCH] semihosting: remove the pthread include which seems unused

2020-06-01 Thread Fred Konrad
Le 5/18/20 à 3:50 PM, Philippe Mathieu-Daudé a écrit : On 5/18/20 3:02 PM, kon...@adacore.com wrote: From: KONRAD Frederic This have been introduced by:    8de702cb677c8381fb702cae252d6b69aa4c653b It doesn't seem to be used so remove it. Signed-off-by: KONRAD Frederic ---  

Re: [RFC] some semihosting interrogation

2020-05-29 Thread Fred Konrad
Le 5/28/20 à 2:00 PM, Philippe Mathieu-Daudé a écrit : Hi Fred, On 5/28/20 11:44 AM, Fred Konrad wrote: Hi all, Just wonderring if there is any reason not to be able to defer qemu_semihosting_connect_chardevs a little more to be able to specify chardev=serial0? Like: diff --git a/softmmu

[RFC] some semihosting interrogation

2020-05-28 Thread Fred Konrad
Hi all, Just wonderring if there is any reason not to be able to defer qemu_semihosting_connect_chardevs a little more to be able to specify chardev=serial0? Like: diff --git a/softmmu/vl.c b/softmmu/vl.c index 6390cf0..9fa1553 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -4333,8 +4333,6 @@

Re: [PATCH 0/7] hw/sparc/leon3: Few fixes and disable HelenOS test

2020-05-25 Thread Fred Konrad
Sorry Philippe I missed that. Would be happy to do a PR if needed but: * I never did that. * Looking at https://wiki.qemu.org/Contribute/SubmitAPullRequest, I don't have the signed GPG key either. Cheers, Fred Le 5/23/20 à 7:26 PM, Philippe Mathieu-Daudé a écrit : ping? On 5/11/20

Re: [PATCH] .mailmap: Update Fred Konrad email address

2020-05-18 Thread Fred Konrad
I wasn't aware of this mailmap stuff. Le 5/18/20 à 12:39 PM, Philippe Mathieu-Daudé a écrit : Update Fred Konrad email address to avoid emails bouncing. Signed-off-by: Philippe Mathieu-Daudé --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index

Re: [PATCH 02/24] display/xlnx_dp: Fix to realize "i2c-ddc" and "aux-to-i2c-bridge"

2020-05-18 Thread Fred Konrad
Le 5/18/20 à 7:03 AM, Markus Armbruster a écrit : xlnx_dp_init() creates these two devices, but they're never realized. Affects machine xlnx-zcu102. I wonder how this ever worked. If the "device becomes real only on realize" thing actually works, then we've always been missing these two

Re: [PATCH 21/24] sparc/leon3: Fix to put grlib,* devices on sysbus

2020-05-18 Thread Fred Konrad
Le 5/18/20 à 7:04 AM, Markus Armbruster a écrit : leon3_generic_hw_init() creates a "grlib,ahbpnp" and a "grlib,apbpnp" sysbus device in a way that leaves them unplugged. Create them the common way that puts them into the main system bus. Affects machine leon3_generic. Visible in "info

[Qemu-devel] [PATCH V3 7/7] xilinx_spips: allow mmio execution

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Reviewed-by: Edgar E. Iglesias Signed-off-by:

[Qemu-devel] [PATCH V3 6/7] exec: allow to get a pointer for some mmio memory region

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [PATCH V3 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-04-28 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Reviewed-by: Richard Henderson

[Qemu-devel] [PATCH V3 2/7] cputlb: move get_page_addr_code

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Reviewed-by: Richard Henderson Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V3 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Reviewed-by: Richard Henderson Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V3 5/7] introduce mmio_interface

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic V1 -> V2: * Fix the

[Qemu-devel] [PATCH V3 0/7] execute code from mmio area

2017-04-28 Thread fred . konrad
From: KONRAD Frederic This series allows to execute code from mmio areas. The main goal of this is to be able to run code for example from an SPI device. The three first patch fixes the way get_page_addr_code fills the TLB. The sixth patch implements the mmio

[Qemu-devel] [PATCH V3 4/7] qdev: add MemoryRegion property

2017-04-28 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Reviewed-by: Edgar E. Iglesias Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++

[Qemu-devel] [PATCH] ppc_booke: drop useless assignment

2017-03-24 Thread fred . konrad
From: KONRAD Frederic The tb_env variable is set two lines above. So just drop the double assignment. Signed-off-by: KONRAD Frederic --- hw/ppc/ppc_booke.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/ppc/ppc_booke.c

[Qemu-devel] [PATCH v3 04/10] qemu-clk: introduce an init array to help the device construction

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic V2 -> V3: * s/QEMUClock/qemu_clk/g --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c

[Qemu-devel] [PATCH v3 01/10] qemu-clk: introduce qemu-clk qom object

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic V2 -> V3: * s/qemu_clk/QEMUClock/g --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 +

[Qemu-devel] [PATCH v3 10/10] zynqmp: add reference clock

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 49

[Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-02-28 Thread fred . konrad
From: KONRAD Frederic Hi, This is the third version of the clock framework API it contains: * The first 6 patches which introduce the framework. * The 7th patch which introduces a fixed-clock model. * The rest which gives an example how to model a PLL from the

[Qemu-devel] [PATCH v3 08/10] introduce zynqmp_crf

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH v3 07/10] introduce fixed-clock

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH v3 03/10] qemu-clk: allow to bind two clocks together

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH v3 05/10] qdev-monitor: print the device's clock with info qtree

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH v3 02/10] qemu-clk: allow to add a clock to a device

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This allows to add a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic V2 ->

[Qemu-devel] [PATCH v3 06/10] docs: add qemu-clock documentation

2017-02-28 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic V1 -> V2: * Fixed in accordance with the changes in the previous patches. --- docs/clock.txt | 278

[Qemu-devel] [PATCH V2 0/7] execute code from mmio area

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This series allows to execute code from mmio areas. The main goal of this is to be able to run code for example from an SPI device. The three first patch fixes the way get_page_addr_code fills the TLB. The fourth patch implements the mmio

[Qemu-devel] [PATCH V2 6/7] introduce mmio_interface

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Signed-off-by: KONRAD Frederic V1 -> V2: * Fix the qemu_log format. --- hw/misc/Makefile.objs| 1

[Qemu-devel] [PATCH V2 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V2 5/7] qdev: add MemoryRegion property

2017-02-17 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] [PATCH V2 7/7] xilinx_spips: allow mmio execution

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [PATCH V2 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-17 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V2 4/7] exec: allow to get a pointer for some mmio memory region

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [PATCH V2 2/7] cputlb: move get_page_addr_code

2017-02-17 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Signed-off-by: KONRAD Frederic --- cputlb.c | 72 1 file changed, 36

[Qemu-devel] [PATCH V1 1/7] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V1 0/7] execute code from mmio area

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This series allows to execute code from mmio areas. The main goal of this is to be able to run code for example from an SPI device. The three first patch fixes the way get_page_addr_code fills the TLB. The fourth patch implements the mmio

[Qemu-devel] [PATCH V1 6/7] introduce mmio_interface

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This introduces mmio_interface object which contains a MemoryRegion and can be hotplugged/hotunplugged. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs| 1 + hw/misc/mmio_interface.c |

[Qemu-devel] [PATCH V1 5/7] qdev: add MemoryRegion property

2017-02-16 Thread fred . konrad
From: KONRAD Frederic We need to pass a pointer to a MemoryRegion for mmio_interface. So this just adds that. Signed-off-by: KONRAD Frederic --- include/hw/qdev-properties.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Qemu-devel] [PATCH V1 3/7] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-16 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH V1 7/7] xilinx_spips: allow mmio execution

2017-02-16 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC 5/5] xilinx_spips: allow mmio execution

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This allows to execute from the lqspi area. When the request_ptr is called the device loads 1024bytes from the SPI device. Then this code can be executed by the guest. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC 4/5] exec: allow to get a pointer for some mmio memory region

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This introduces a special callback which allows to run code from some MMIO devices. SysBusDevice with a MemoryRegion which implements the request_ptr callback will be notified when the guest try to execute code from their offset. Then it will be

[Qemu-devel] [RFC 0/5] execute code from mmio area

2017-02-03 Thread fred . konrad
e mmio execution helpers: the device must implement the request_ptr callback of the MemoryRegion and will be notified when the guest wants to execute code from it. The fifth patch implements the execution from the SPI memories in the xilinx_spips model. Thanks, Fred KONRAD Frederic (5): cputlb: c

[Qemu-devel] [RFC 2/5] cputlb: move get_page_addr_code

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This just moves the code before VICTIM_TLB_HIT macro definition so we can use it. Signed-off-by: KONRAD Frederic --- cputlb.c | 72 1 file changed, 36

[Qemu-devel] [RFC 3/5] cputlb: fix the way get_page_addr_code fills the tlb

2017-02-03 Thread fred . konrad
From: KONRAD Frederic get_page_addr_code(..) does a cpu_ldub_code to fill the tlb: This can lead to some side effects if a device is mapped at this address. So this patch replaces the cpu_memory_ld by a tlb_fill. Signed-off-by: KONRAD Frederic

[Qemu-devel] [RFC 1/5] cputlb: cleanup get_page_addr_code to use VICTIM_TLB_HIT

2017-02-03 Thread fred . konrad
From: KONRAD Frederic This replaces env1 and page_index variables by env and index so we can use VICTIM_TLB_HIT macro later. Signed-off-by: KONRAD Frederic --- cputlb.c | 18 +- 1 file changed, 9 insertions(+), 9

[Qemu-devel] [PATCH V2 07/10] introduce fixed-clock

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH V2 01/10] qemu-clk: introduce qemu-clk qom object

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 + qemu-clock.c | 50

[Qemu-devel] [PATCH V2 10/10] zynqmp: add reference clock

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 49

[Qemu-devel] [PATCH V2 09/10] zynqmp: add the zynqmp_crf to the platform

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH V2 05/10] qdev-monitor: print the device's clock with info qtree

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH V2 06/10] docs: add qemu-clock documentation

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic V1 -> V2: * Fixed in accordance with the changes in the previous patches. --- docs/clock.txt | 108

[Qemu-devel] [PATCH V2 08/10] introduce zynqmp_crf

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH V2 03/10] qemu-clk: allow to bind two clocks together

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH V2 02/10] qemu-clk: allow to add a clock to a device

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This allows to add a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic V1 ->

[Qemu-devel] [PATCH V2 00/10] Clock framework API.

2017-01-26 Thread fred . konrad
From: KONRAD Frederic Hi, This is the second version of the clock framework API it contains: * The first 6 patches which introduce the framework. * The 7th patch which introduces a fixed-clock model. * The rest which gives an example how to model a PLL from the

[Qemu-devel] [PATCH V2 04/10] qemu-clk: introduce an init array to help the device construction

2017-01-26 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c | 17 + 2

[Qemu-devel] [PATCH V1 10/10] zynqmp: add reference clock

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 42 ++

[Qemu-devel] [PATCH V1 08/10] introduce zynqmp_crf

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 968

[Qemu-devel] [PATCH V1 07/10] introduce fixed-clock

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/fixed-clock.c | 88

[Qemu-devel] [PATCH V1 09/10] zynqmp: add the zynqmp_crf to the platform

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 2 ++ 2 files changed, 9 insertions(+) diff --git

[Qemu-devel] [PATCH V1 03/10] qemu-clk: allow to bind two clocks together

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [PATCH V1 06/10] docs: add qemu-clock documentation

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic --- docs/clock.txt | 109 + 1 file changed, 109 insertions(+) create mode 100644

[Qemu-devel] [PATCH V1 05/10] qdev-monitor: print the device's clock with info qtree

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. For example: bus: main-system-bus type System dev: xlnx.zynqmp_crf, id "" gpio-out "sysbus-irq" 1 gpio-out "RST_A9" 4 qemu-clk "dbg_trace"

[Qemu-devel] [PATCH V1 04/10] qemu-clk: introduce an init array to help the device construction

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces a clock init array to ease the clock tree construction. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 23 +++ qemu-clock.c | 17 + 2

[Qemu-devel] [PATCH V1 00/10] Clock framework API.

2016-10-05 Thread fred . konrad
From: KONRAD Frederic Hi, This is the first version of the clock framework API it contains: * The first 6 patches which introduce the framework. * The 7th patch which introduces a fixed-clock model. * The rest which gives an example how to model a PLL from the

[Qemu-devel] [PATCH V1 01/10] qemu-clk: introduce qemu-clk qom object

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 + qemu-clock.c | 50

[Qemu-devel] [PATCH V1 02/10] qemu-clk: allow to attach a clock to a device

2016-10-05 Thread fred . konrad
From: KONRAD Frederic This allows to attach a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC PATCH 04/11] qdev-monitor: print the device's clock with info qtree

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This prints the clock attached to a DeviceState when using "info qtree" monitor command. Signed-off-by: KONRAD Frederic --- include/qemu/qemu-clock.h | 9 + qdev-monitor.c| 2 ++ qemu-clock.c

[Qemu-devel] [RFC PATCH 10/11] zynqmp: add the zynqmp_crf to the platform

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds the zynqmp_crf to the zynqmp platform. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 7 +++ include/hw/arm/xlnx-zynqmp.h | 1 + 2 files changed, 8 insertions(+) diff --git

[Qemu-devel] [RFC PATCH 11/11] zynqmp: add reference clock

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds some fixed reference clock to the zynqmp platform. They will feed the zynqmp_crf block. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 42 ++

[Qemu-devel] [RFC PATCH 02/11] qemu-clk: allow to attach a clock to a device

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This allows to attach a clock to a DeviceState. Contrary to gpios, the clock pins are not contained in the DeviceState but with the child property so they can appears in the qom-tree. Signed-off-by: KONRAD Frederic ---

[Qemu-devel] [RFC PATCH 07/11] introduce zynqmp_crf

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This introduce Xilinx zynqmp-crf. It is extracted from the qemu xilinx tree (02d2f0203dd489ed30d9c8d90c14a52c57332b25) and is used as an example for the clock framework. --- hw/misc/Makefile.objs | 1 + hw/misc/xilinx_zynqmp_crf.c | 532

[Qemu-devel] [RFC PATCH 09/11] zynqmp_crf: add the clock mechanism

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds the pll to the zynqmp_crf and the dp_video clock output. Signed-off-by: KONRAD Frederic --- hw/misc/xilinx_zynqmp_crf.c | 440 1 file changed, 440 insertions(+)

[Qemu-devel] [RFC PATCH 03/11] qemu-clk: allow to bound two clocks together

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This introduces the clock binding and the update part. When the qemu_clk_rate_update(qemu_clk, int) function is called: * The clock callback is called on the qemu_clk so it can change the rate. * The qemu_clk_rate_update function is called on

[Qemu-devel] [RFC PATCH 08/11] zynqmp_crf: fix against AF_EX32 changes

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This seems to be due to a difference between the AF_EX32 define. Signed-off-by: KONRAD Frederic --- hw/misc/xilinx_zynqmp_crf.c | 354 ++-- 1 file changed, 177 insertions(+),

[Qemu-devel] [RFC PATCH 00/11] Clock framework API.

2016-06-13 Thread fred . konrad
ref" 0.0 qemu-clk "dbg_tstmp" 0.0 mmio fd1a/010c This series is based on the current master (d6550e9ed2e1a60d889dfb721de00d9a4e3bafbe) with the data-driven register patch-set from Alistair. Note that the omap clock infrastructure is really far fro

[Qemu-devel] [RFC PATCH 01/11] qemu-clk: introduce qemu-clk qom object

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This introduces qemu-clk qom object. Signed-off-by: KONRAD Frederic --- Makefile.objs | 1 + include/qemu/qemu-clock.h | 40 qemu-clock.c | 47

[Qemu-devel] [RFC PATCH 05/11] docs: add qemu-clock documentation

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This adds the qemu-clock documentation. Signed-off-by: KONRAD Frederic --- docs/clock.txt | 112 + 1 file changed, 112 insertions(+) create mode 100644

[Qemu-devel] [RFC PATCH 06/11] introduce fixed-clock

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This is a fixed clock device. It justs behave as an empty device with a parametrable output rate. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 2 + hw/misc/fixed-clock.c | 87

[Qemu-devel] [PATCH V10 7/9] introduce xlnx-dpdma

2016-06-13 Thread fred . konrad
From: KONRAD Frederic This is the implementation of the DPDMA. Signed-off-by: KONRAD Frederic Reviewed-by: Alistair Francis Tested-By: Hyun Kwon --- hw/dma/Makefile.objs| 1 +

  1   2   3   4   5   6   7   8   >