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
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 for
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
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
Test
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
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 a/hw/
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
--- a
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 0xadd0e47
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'
This
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 reproduce
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
fu
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 b/include/hw/sparc/grli
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
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
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 t
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 -semihostin
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."
https://www.nxp.c
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
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
---
hw/semihostin
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
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 @@
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 9:0
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
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 devi
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 qtree
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: KONRAD Frederic
---
hw/ssi/xilinx_spips.c | 74 +
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 able to eg: pre-load some co
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
V2 -> V3:
* Rebase against cpu_unaligned access recent change.
---
cputlb.c | 70 +++
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
Reviewed-by: Edgar E. Iglesias
Signed-off-by: KON
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
---
cputlb.c | 18 +-
1 file changed, 9 insertions(+), 9 d
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_log format.
---
hw/misc/Makefile.objs| 1 +
hw/misc/mmio_interf
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 execution helpers: the device must
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 ++
1 file changed, 2 insertions(+)
diff --git a/include/hw/qdev-properties.h b/inc
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 b/hw/ppc/ppc_booke.c
index 60baffa..23bcf1b 100644
--- a/hw/ppc/ppc_
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 | 17 +
2 files changed, 40 i
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-clock.c | 50 +++
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
include/hw/arm/xlnx-zynqmp.h | 6 ++
2 files changed,
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 existing
zynqmp-crf extr
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
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 +++
include/hw/misc/fixed
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 a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index bc4e66b..27d
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 all the driven clock.
Signe
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" 0.0
qemu-clk "vpll_to_lpd
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 -> V3:
* s/qemu_clk/QEMUClock/g
V1 -> V2:
* Rename th
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 +
1 file changed, 278 insertions(+)
creat
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 execution helpers: the device must
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 +
hw/misc/mmio_interface.c | 128
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 deletions(-)
diff --git a/cputlb.c b/cputlb.c
index 6c39927..665
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 a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index
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
---
hw/ssi/xilinx_spips.c | 74 ++---
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
---
cputlb.c | 6 --
1 file changed, 4 insert
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 able to eg: pre-load some co
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 insertions(+), 36 deletions(-)
diff --git a/cputlb.c b/
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 deletions(-)
diff --git a/cputlb.c b/cputlb.c
index 6c39927..665
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 execution helpers: the device must
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 | 128 +++
include/hw/
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 insertions(+), 36 deletions(-)
diff --git a/cputlb.c b/
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 able to eg: pre-load some co
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 a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index
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
---
cputlb.c | 6 --
1 file changed, 4 insert
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
---
hw/ssi/xilinx_spips.c | 74 ++---
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
---
hw/ssi/xilinx_spips.c | 74 ++---
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 able to eg: pre-load some co
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: cleanup get_page_addr_code to use
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 insertions(+), 36 deletions(-)
diff --git a/cputlb.c b/
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
---
cputlb.c | 6 --
1 file changed, 4 insert
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 deletions(-)
diff --git a/cputlb.c b/cputlb.c
index 6c39927..665
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 +++
include/hw/misc/fixed
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 +++
3 files changed,
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
include/hw/arm/xlnx-zynqmp.h | 6 ++
2 files changed,
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 a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index bc4e66b..27d
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" 0.0
qemu-clk "vpll_to_lpd
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 +
1 file changed, 108 insertions(+)
creat
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
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 all the driven clock.
Signe
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 -> V2:
* Rename the function use 'add' instead of 'atta
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 existing
zynqmp-crf ext
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 files changed, 40 insertions(+)
diff --git a/include/qem
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 ++
include/hw/arm/xlnx-zynqmp.h | 6 ++
2 files changed, 48
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
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 +++
include/hw/misc/fixed
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 a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index 0d86ba3..05c
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 all the driven clock.
Signe
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 docs/clock.txt
diff --git a/docs/clock.txt b/docs/clock.txt
ne
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" 0.0
qemu-clk "vpll_to_lpd
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 files changed, 40 insertions(+)
diff --git a/include/qem
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 existing
zynqmp-crf extr
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 +++
3 files changed,
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
---
include/qemu/qemu-clock.h | 24 ++
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 | 28
3 files ch
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 a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c
index 4d504da..a8b7
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 ++
include/hw/arm/xlnx-zynqmp.h | 6 ++
2 files changed, 48
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
---
include/qemu/qemu-clock.h | 24 ++
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
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(+)
diff --git a/hw/misc/xilinx_zynqmp_crf.c b/hw/misc/xili
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 all the driven clock.
Signe
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(+), 177 deletions(-)
diff --git a/hw/misc/xilinx_zynqmp_crf.
ot;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 from what we need so I
think it&
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 +++
3 files chang
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 docs/clock.txt
diff --git a/docs/clock.txt b/docs/clock.txt
ne
1 - 100 of 789 matches
Mail list logo