[Qemu-devel] [PATCH] pflash_cfi02.c: fix debug macro

2013-08-28 Thread Antony Pavlov
. Signed-off-by: Antony Pavlov --- hw/block/pflash_cfi02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 99445b0..8d4b828 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -47,7 +47,7 @@ #ifdef

[Qemu-devel] [RFC 0/5] add initial support for Canon DIGIC SoC

2013-08-29 Thread Antony Pavlov
[RFC 1/5] target-arm: add ARM946E-S CPU [RFC 2/5] hw/arm: add very initial support for Canon DIGIC SoC [RFC 3/5] hw/arm/digic: add timer support [RFC 4/5] hw/arm/digic: add UART support [RFC 5/5] hw/arm/digic: add NOR ROM support DIGIC is Canon Inc.'s name for a family of SoC for digital cameras a

[Qemu-devel] [RFC 1/5] target-arm: add ARM946E-S CPU

2013-08-29 Thread Antony Pavlov
This is slightly altered version of ARM946E-S CPU code from EOS QEMU (Magic Lantern project) so nearly all credits go to @a1ex. ARM946E-S Technical Reference Manual can be found here: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0201d/index.html Signed-off-by: Antony Pavlov

[Qemu-devel] [RFC 3/5] hw/arm/digic: add timer support

2013-08-29 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 8 +++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 140 + 3 files changed, 149 insertions(+) create mode 100644 hw/timer/digic-timer.c diff --git a/hw/arm/digic.c b/hw/arm

[Qemu-devel] [RFC 2/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-08-29 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 2 +- hw/arm/digic.c

[Qemu-devel] [RFC 4/5] hw/arm/digic: add UART support

2013-08-29 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c| 3 + hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 207 ++ 3 files changed, 211 insertions(+) create mode 100644 hw/char/digic-uart.c diff --git a/hw/arm/digic.c b/hw/arm/digic.c

Re: [Qemu-devel] [RFC 1/5] target-arm: add ARM946E-S CPU

2013-08-29 Thread Antony Pavlov
On Thu, 29 Aug 2013 11:44:38 +0100 Peter Maydell wrote: > On 29 August 2013 10:33, Antony Pavlov wrote: > > This is slightly altered version of ARM946E-S CPU code > > from EOS QEMU (Magic Lantern project) so nearly all > > credits go to @a1ex. > > > > ARM946E-S

Re: [Qemu-devel] [RFC 2/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-08-29 Thread Antony Pavlov
On Thu, 29 Aug 2013 16:29:30 +0200 Condello wrote: > On Thu, Aug 29, 2013 at 11:33 AM, Antony Pavlov > wrote: > > diff --git a/default-configs/arm-softmmu.mak > > b/default-configs/arm-softmmu.mak > > index ac0815d..0d1d783 100644 > > --- a/default-configs/arm

Re: [Qemu-devel] [RFC 1/5] target-arm: add ARM946E-S CPU

2013-08-29 Thread Antony Pavlov
On Thu, 29 Aug 2013 11:44:38 +0100 Peter Maydell wrote: > On 29 August 2013 10:33, Antony Pavlov wrote: > > This is slightly altered version of ARM946E-S CPU code > > from EOS QEMU (Magic Lantern project) so nearly all > > credits go to @a1ex. > > > > ARM946E-S

Re: [Qemu-devel] [RFC 2/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-08-29 Thread Antony Pavlov
On Thu, 29 Aug 2013 14:15:40 +0200 Andreas Färber wrote: > Am 29.08.2013 11:33, schrieb Antony Pavlov: > > DIGIC is Canon Inc.'s name for a family of SoC > > for digital cameras and camcorders. > > > > There is no publicly available specification for > > DI

Re: [Qemu-devel] [RFC 1/5] target-arm: add ARM946E-S CPU

2013-08-30 Thread Antony Pavlov
On Fri, 30 Aug 2013 08:29:09 +0100 Peter Maydell wrote: > On 30 August 2013 06:09, Peter Crosthwaite > wrote: > > On Fri, Aug 30, 2013 at 4:17 AM, Antony Pavlov > > wrote: > >> If Magic Lantern or CHDK need some specific initial CPU CP15 register state > >>

Re: [Qemu-devel] [RFC 2/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-08-30 Thread Antony Pavlov
On Fri, 30 Aug 2013 15:07:49 +1000 Peter Crosthwaite wrote: > Hi, > > > On Fri, Aug 30, 2013 at 6:16 AM, Peter Maydell > wrote: > > > > On 29 August 2013 20:36, Antony Pavlov wrote: > > > On Thu, 29 Aug 2013 14:15:40 +0200 > > > Andreas Färber

Re: [Qemu-devel] [RFC 4/5] hw/arm/digic: add UART support

2013-08-30 Thread Antony Pavlov
On Fri, 30 Aug 2013 15:16:42 +1000 Peter Crosthwaite wrote: > Hi Antony, > > On Thu, Aug 29, 2013 at 7:33 PM, Antony Pavlov > wrote: > > Signed-off-by: Antony Pavlov > > --- > > hw/arm/digic.c| 3 + > > hw/char/Makefile.objs |

[Qemu-devel] [PATCH 0/2] milkymist-uart fixes

2013-08-30 Thread Antony Pavlov
[PATCH 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of [PATCH 2/2] milkymist-uart: use Device::realize instead of This patch series based on DIGIC support adding comments: http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg04748.html

[Qemu-devel] [PATCH 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

2013-08-30 Thread Antony Pavlov
Signed-off-by: Antony Pavlov CC: Peter Crosthwaite CC: Michael Walle --- hw/char/milkymist-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c index 2e4b5c5..6e4bc20 100644 --- a/hw/char/milkymist-uart.c +++ b/hw/char/mil

[Qemu-devel] [PATCH 2/2] milkymist-uart: use Device::realize instead of SysBusDevice::init

2013-08-30 Thread Antony Pavlov
http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg04748.html";> Use of SysBusDevice::init is deprecated. Please use Device::realize instead of SysBusDevice::init. Check dma/pl330.c for an example of the pattern. Signed-off-by: Antony Pavlov CC: Peter Crosthwaite CC:

[Qemu-devel] [PATCH v2 0/2] milkymist-uart fixes

2013-08-31 Thread Antony Pavlov
This patch series based on DIGIC support adding comments: http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg04748.html [PATCH v2 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write() [PATCH v2 2/2] milkymist-uart: use Device::realize instead of SysBusDevice::i

[Qemu-devel] [PATCH v2 1/2] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

2013-08-31 Thread Antony Pavlov
qemu_chr_fe_write() is capable of returning 0 to indicate EAGAIN (and friends) and we don't handle this. Just change it to qemu_chr_fe_write_all() to fix. Reported-by: Peter Crosthwaite Signed-off-by: Antony Pavlov CC: Peter Crosthwaite CC: Michael Walle CC: Andreas Färber --- hw

[Qemu-devel] [PATCH v2 2/2] milkymist-uart: use Device::realize instead of SysBusDevice::init

2013-08-31 Thread Antony Pavlov
Use of SysBusDevice::init is deprecated. Use Device::realize instead of SysBusDevice::init. Check dma/pl330.c for an example of the pattern. Also introduce TypeInfo::instance_init milkymist_uart_init() as char/pl011.c does. Reported-by: Peter Crosthwaite Signed-off-by: Antony Pavlov CC: Peter

Re: [Qemu-devel] [PATCH v2 2/2] milkymist-uart: use Device::realize instead of SysBusDevice::init

2013-09-01 Thread Antony Pavlov
On Sat, 31 Aug 2013 21:09:20 +0200 Andreas Färber wrote: > Am 31.08.2013 19:22, schrieb Antony Pavlov: > > Use of SysBusDevice::init is deprecated. > > Use Device::realize instead of SysBusDevice::init. > > Check dma/pl330.c for an example of the pattern. > >

[Qemu-devel] [RFC v2 1/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-09-01 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 2 +- hw/arm/digic.c | 70 + include/hw/arm/digic.h | 23 ++ 4

[Qemu-devel] [RFC v2 0/5] hw/arm: add initial support for Canon DIGIC SoC

2013-09-01 Thread Antony Pavlov
[RFC v2 1/5] hw/arm: add very initial support for Canon DIGIC SoC [RFC v2 2/5] hw/arm/digic: prepare DIGIC-based boards support [RFC v2 3/5] hw/arm/digic: add timer support [RFC v2 4/5] hw/arm/digic: add UART support [RFC v2 5/5] hw/arm/digic: add NOR ROM support Changes since v1: 0. drop the "ad

[Qemu-devel] [RFC v2 3/5] hw/arm/digic: add timer support

2013-09-01 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 25 ++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 122 + hw/timer/digic-timer.h | 19 include/hw/arm/digic.h | 7 +++ 5 files changed, 174 insertions

[Qemu-devel] [RFC v2 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-09-01 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 2 +- hw/arm/digic_boards.c | 63 +++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [RFC v2 4/5] hw/arm/digic: add UART support

2013-09-01 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 14 hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 197 + hw/char/digic-uart.h | 27 +++ include/hw/arm/digic.h | 4 + 5 files changed, 243 insertions(+) create

[Qemu-devel] [RFC v2 5/5] hw/arm/digic: add NOR ROM support

2013-09-01 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 0b99227..7b7dc1c 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

[Qemu-devel] [RFC v3 0/5] hw/arm: add initial support for Canon DIGIC SoC

2013-09-03 Thread Antony Pavlov
[RFC v3 1/5] hw/arm: add very initial support for Canon DIGIC SoC [RFC v3 2/5] hw/arm/digic: prepare DIGIC-based boards support [RFC v3 3/5] hw/arm/digic: add timer support [RFC v3 4/5] hw/arm/digic: add UART support [RFC v3 5/5] hw/arm/digic: add NOR ROM support Changes since v2: 1. rebase ove

[Qemu-devel] [RFC v3 1/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-09-03 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 2 +- hw/arm/digic.c | 70 + include/hw/arm/digic.h | 23 ++ 4

[Qemu-devel] [RFC v3 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-09-03 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 2 +- hw/arm/digic_boards.c | 63 +++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [RFC v3 3/5] hw/arm/digic: add timer support

2013-09-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 25 ++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 122 + hw/timer/digic-timer.h | 19 include/hw/arm/digic.h | 7 +++ 5 files changed, 174 insertions

[Qemu-devel] [RFC v3 4/5] hw/arm/digic: add UART support

2013-09-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 14 hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 197 + hw/char/digic-uart.h | 27 +++ include/hw/arm/digic.h | 4 + 5 files changed, 243 insertions(+) create

[Qemu-devel] [RFC v3 5/5] hw/arm/digic: add NOR ROM support

2013-09-03 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 0b99227..b5a9e1a 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

[Qemu-devel] [RFC 2/2] hw/mips: use sizes.h macros

2013-09-04 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/mips/mips_malta.c | 3 ++- include/hw/mips/bios.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index ae0921c..7e8978b 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -51,6

[Qemu-devel] [RFC 1/2] include/: import sizes.h from barebox

2013-09-04 Thread Antony Pavlov
http://git.pengutronix.de/?p=barebox.git;a=blob;f=include/sizes.h) but not his twin from linux as the barebox header file is more neutral and has neither barebox mention nor linux mention. Signed-off-by: Antony Pavlov --- include/sizes.h | 48 1

[Qemu-devel] [RFC 0/2] use sizes.h macros for power-of-two sizes

2013-09-04 Thread Antony Pavlov
[RFC 1/2] include/: import sizes.h from barebox [RFC 2/2] hw/mips: use sizes.h macros The sizes.h macros is a easy-to-read method of power-of-two memory sizes representation. The sizes.h macros are actively used in linux kernel and other projects, so let's use them in QEMU too.

Re: [Qemu-devel] [RFC v3 3/5] hw/arm/digic: add timer support

2013-09-04 Thread Antony Pavlov
On Wed, 4 Sep 2013 16:18:37 +1000 Peter Crosthwaite wrote: > On Wed, Sep 4, 2013 at 3:21 PM, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov > > --- > > hw/arm/digic.c | 25 ++ > > hw/timer/Makefile.objs | 1 + > &

[Qemu-devel] [RFC v4 1/5] hw/arm: add very initial support for Canon DIGIC SoC

2013-09-05 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 2 +- hw/arm/digic.c | 70 + include/hw/arm/digic.h | 23 ++ 4

[Qemu-devel] [RFC v4 0/5] hw/arm: add initial support for Canon DIGIC SoC

2013-09-05 Thread Antony Pavlov
[RFC v4 1/5] hw/arm: add very initial support for Canon DIGIC SoC [RFC v4 2/5] hw/arm/digic: prepare DIGIC-based boards support [RFC v4 3/5] hw/arm/digic: add timer support [RFC v4 4/5] hw/arm/digic: add UART support [RFC v4 5/5] hw/arm/digic: add NOR ROM support Changes since v3: 1. fix typos

[Qemu-devel] [RFC v4 3/5] hw/arm/digic: add timer support

2013-09-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 26 +++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 117 + hw/timer/digic-timer.h | 19 include/hw/arm/digic.h | 7 +++ 5 files changed, 170 insertions

[Qemu-devel] [RFC v4 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-09-05 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 2 +- hw/arm/digic_boards.c | 63 +++ 2 files changed, 64 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [RFC v4 4/5] hw/arm/digic: add UART support

2013-09-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 14 hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 197 + hw/char/digic-uart.h | 27 +++ include/hw/arm/digic.h | 4 + 5 files changed, 243 insertions(+) create

[Qemu-devel] [RFC v4 5/5] hw/arm/digic: add NOR ROM support

2013-09-05 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 0b99227..850e320 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

[Qemu-devel] [PATCH] qemu-log: add log category for MIPS MMU fault info

2014-09-23 Thread Antony Pavlov
ng fixes the problem. Signed-off-by: Antony Pavlov --- include/qemu/log.h | 1 + qemu-log.c | 2 ++ target-mips/helper.c | 6 -- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/qemu/log.h b/include/qemu/log.h index d515424..195f665 100644 --- a/include/qemu

[Qemu-devel] [PATCH v2] qemu-log: add log category for MMU info

2014-10-10 Thread Antony Pavlov
ng fixes the problem. Signed-off-by: Antony Pavlov --- Changes since v1: * add cris, i386, microblaze, ppc, s390x, sparc and unicore32 support. --- cputlb.c | 3 ++- include/qemu/log.h | 1 + qemu-log.c | 2 ++ target-cris/helper.c | 12 +

[Qemu-devel] [PATCH v3] qemu-log: add log category for MMU info

2014-10-28 Thread Antony Pavlov
ng fixes the problem. Signed-off-by: Antony Pavlov --- Changes since v2: * fix target-ppc/mmu-hash64.c and target-ppc/mmu_helper.c too; * drop LOG_MMU wrapping macros: compile-in qemu_log_mask() always; * use VADDR_PRIx for fixing this microblaze warning: CCmicroblazeel-softm

[Qemu-devel] [PATCH RESEND 1/2] include/qemu: introduce sizes.h

2014-01-13 Thread Antony Pavlov
The header file sizes.h is used in linux kernel, barebox bootloader and u-boot bootloader. It provides short and easy-to-read names for power-of-two numbers. The numbers like this are othen used for memory range sizes. Signed-off-by: Antony Pavlov Reviewed-by: Richard Henderson Reviewed-by

[Qemu-devel] [PATCH RESEND 0/2] use sizes.h macros for power-of-two sizes

2014-01-13 Thread Antony Pavlov
The sizes.h macros is an easy-to-read method of power-of-two memory sizes representation. The sizes.h macros are actively used in the linux kernel and other projects, so let's use them in QEMU too. Antony Pavlov (2): include/qemu: introduce sizes.h hw/mips: use sizes.h macros hw

[Qemu-devel] [PATCH RESEND 2/2] hw/mips: use sizes.h macros

2014-01-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Richard Henderson Reviewed-by: Andreas Färber --- hw/mips/mips_malta.c | 25 + include/hw/mips/bios.h | 3 ++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index

Re: [Qemu-devel] multiple chip simulation

2014-01-14 Thread Antony Pavlov
http://lists.nongnu.org/archive/html/qemu-devel/2014-01/msg00923.html --  Best regards,   Antony Pavlov

Re: [Qemu-devel] QEMU ARM946 emulation, DIGIC, and MPU fault handling

2014-01-24 Thread Antony Pavlov
n or CHDK; * barebox. I know nothing about MPU fault handling in barebox. I'm planning to merge current qemu DIGIC support with patches from MagicLantern qemu patches. May be during this work I'll be capable to answer your question, but just now I have no answer, sorry. May be Magic Lantern people (especiall g3gg0) can help? I have added them to Cc. --  Best regards,   Antony Pavlov

Re: [Qemu-devel] [RFC v5 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-12-04 Thread Antony Pavlov
27;jump-to-beginning-of-ROM' instruction to 0x. (We can't put barebox to 0x as barebox image is bigger that 64K.) There is at least two possibilities to do so: * we can use specially prepared ROM image; * qemu board code can insert by itself a 'jump-to-beginning-of-ROM' instruction after loading ROM image (as qemu MIPS Malta board code does). 3. CPU starts as usual. Branching to barebox code in ROM happends in a natural way! Please comment my proposition. --  Best regards,   Antony Pavlov

Re: [Qemu-devel] [RFC v5 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-12-04 Thread Antony Pavlov
On Wed, 4 Dec 2013 20:29:05 + Peter Maydell wrote: > On 4 December 2013 20:22, Antony Pavlov wrote: > > Here is my proposition: > > > > 1. qemu board code setup CPU to start from 0x. (0x is a ROM > > address > > on DIGIC chips) > >

[Qemu-devel] [RFC 1/2] ARM: cpu: add "hivecs" property (high vectors on reset)

2013-12-06 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- target-arm/cpu-qom.h | 1 + target-arm/cpu.c | 13 + 2 files changed, 14 insertions(+) diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index b55306a..116320c 100644 --- a/target-arm/cpu-qom.h +++ b/target-arm/cpu-qom.h @@ -128,6 +128,7

[Qemu-devel] [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc

2013-12-06 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- target-arm/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index f838499..6f548c7 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -126,6 +126,10 @@ static void arm_cpu_reset(CPUState *s) env

[Qemu-devel] [RFC 0/2] ARM: make possible to use high vectors for reset exception

2013-12-06 Thread Antony Pavlov
[RFC 1/2] ARM: cpu: add "hivecs" property (high vectors on reset) [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for

Re: [Qemu-devel] [Qemu-trivial] [PATCH] eeprom93xx: fix coding style

2013-12-06 Thread Antony Pavlov
On Fri, 06 Dec 2013 22:59:29 +0400 Michael Tokarev wrote: > 04.12.2013 10:27, Antony Pavlov wrote: > > scripts/checkpatch.pl reports about some style problems, > > this commit fixes some of them: > > Thanks, applied to trivial-patches queue. > > I'm a bit afraid

Re: [Qemu-devel] [RFC 1/2] ARM: cpu: add "hivecs" property (high vectors on reset)

2013-12-07 Thread Antony Pavlov
On Sat, 7 Dec 2013 11:00:05 +1000 Peter Crosthwaite wrote: > On Sat, Dec 7, 2013 at 10:55 AM, Antony Pavlov > wrote: > > Signed-off-by: Antony Pavlov > > --- > > target-arm/cpu-qom.h | 1 + > > target-arm/cpu.c | 13 + > > 2 files changed,

Re: [Qemu-devel] [RFC 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc

2013-12-07 Thread Antony Pavlov
On Sat, 7 Dec 2013 11:08:40 +1000 Peter Crosthwaite wrote: > On Sat, Dec 7, 2013 at 10:55 AM, Antony Pavlov > wrote: > > Signed-off-by: Antony Pavlov > > --- > > target-arm/cpu.c | 4 > > 1 file changed, 4 insertions(+) > > > > diff --git a/tar

[Qemu-devel] [RFC v2 1/2] ARM: cpu: add "reset_hivecs" property (high vectors on reset)

2013-12-10 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- target-arm/cpu-qom.h | 1 + target-arm/cpu.c | 24 2 files changed, 25 insertions(+) diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index b55306a..116320c 100644 --- a/target-arm/cpu-qom.h +++ b/target-arm/cpu-qom.h

[Qemu-devel] [RFC v2 0/2] ARM: make possible to use high vectors for reset exception

2013-12-10 Thread Antony Pavlov
[RFC v2 1/2] ARM: cpu: add "reset_hivecs" property (high vectors on [RFC v2 2/2] ARM: arm_cpu_reset: make possible to use high vectors Changes since v1: * rebase over Peter Crosthwaite's "Fix Support for ARM A9 CBAR" v3 series; * rewrite according to Peter Crosthwaite's and Peter Maydell's comme

[Qemu-devel] [RFC v2 2/2] ARM: arm_cpu_reset: make possible to use high vectors for reset_exc

2013-12-10 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- target-arm/cpu.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-arm/cpu.c b/target-arm/cpu.c index b60e3fc..b6199c5 100644 --- a/target-arm/cpu.c +++ b/target-arm/cpu.c @@ -120,6 +120,11 @@ static void arm_cpu_reset(CPUState *s) env

[Qemu-devel] [PATCH v7 0/6] add initial support for Canon DIGIC SoC

2013-12-12 Thread Antony Pavlov
[PATCH v7 1/6] hw/arm: add very initial support for Canon DIGIC SoC [PATCH v7 2/6] hw/arm/digic: prepare DIGIC-based boards support [PATCH v7 3/6] hw/arm/digic: add timer support [PATCH v7 4/6] hw/arm/digic: add UART support [PATCH v7 5/6] hw/arm/digic: add NOR ROM support [PATCH v7 6/6] MAINTAINER

[Qemu-devel] [PATCH v7 2/6] hw/arm/digic: prepare DIGIC-based boards support

2013-12-12 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 1 + hw/arm/digic_boards.c | 83 +++ 2 files changed, 84 insertions(+) create mode 100644 hw/arm

[Qemu-devel] [PATCH v7 3/6] hw/arm/digic: add timer support

2013-12-12 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Peter Maydell --- hw/arm/digic.c | 28 ++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 140 + hw/timer/digic-timer.h | 36 + include/hw/arm/digic.h | 6 +++ 5

[Qemu-devel] [PATCH v7 1/6] hw/arm: add very initial support for Canon DIGIC SoC

2013-12-12 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov Reviewed-by: Andreas Färber Reviewed-by: Peter Maydell --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 1 + hw/arm/digic.c | 71 + in

[Qemu-devel] [PATCH v7 4/6] hw/arm/digic: add UART support

2013-12-12 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Peter Maydell --- hw/arm/digic.c | 16 hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 195 + hw/char/digic-uart.h | 45 include/hw/arm/digic.h | 2 + 5 files

[Qemu-devel] [PATCH v7 5/6] hw/arm/digic: add NOR ROM support

2013-12-12 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 20c8054..ad62c7e 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

[Qemu-devel] [PATCH v7 6/6] MAINTAINERS: Document 'Canon DIGIC' machine

2013-12-12 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7eed206..02ad9fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -233,6 +233,12 @@ S: Supported F: hw/arm/highbank.c F: hw/net/xgmac.c +Canon DIGIC +M: Antony

Re: [Qemu-devel] [PATCH v7 3/6] hw/arm/digic: add timer support

2013-12-12 Thread Antony Pavlov
On Fri, 13 Dec 2013 09:20:27 +1000 Peter Crosthwaite wrote: > On Fri, Dec 13, 2013 at 8:23 AM, Antony Pavlov > wrote: > > Signed-off-by: Antony Pavlov > > Reviewed-by: Peter Maydell > > --- > > hw/arm/digic.c | 28 ++ > > hw/timer/Makef

Re: [Qemu-devel] [PATCH v12 2/5] hw/timer: add allwinner a10 timer

2013-12-13 Thread Antony Pavlov
> +#define AW_A10_PIT_TIMER_RELOAD0x2 > +#define AW_A10_PIT_TIMER_MODE 0x80 > + > +#define AW_A10_PIT_TIMER_INTERVAL 0x4 > +#define AW_A10_PIT_TIMER_COUNT 0x8 > +#define AW_A10_PIT_WDOG_CONTROL0x90 > +#define AW_A10_PIT_WDOG_MODE 0x94 > + > +#define AW_A10_PIT_COUNT_CTL 0xa0 > +#define AW_A10_PIT_COUNT_RL_EN 0x2 > +#define AW_A10_PIT_COUNT_CLR_EN0x1 > +#define AW_A10_PIT_COUNT_LO0xa4 > +#define AW_A10_PIT_COUNT_HI0xa8 > + > +#define AW_A10_PIT_TIMER_BASE 0x10 > +#define AW_A10_PIT_TIMER_BASE_END \ > +(AW_A10_PIT_TIMER_BASE * 6 + AW_A10_PIT_TIMER_COUNT) > + > +#define AW_A10_PIT_DEFAULT_CLOCK 0x4 > + > +typedef struct AwA10PITState { > +/*< private >*/ > +SysBusDevice parent_obj; > +/*< public >*/ > +qemu_irq irq[AW_A10_PIT_TIMER_NR]; > +ptimer_state * timer[AW_A10_PIT_TIMER_NR]; > +MemoryRegion iomem; > + > +uint32_t irq_enable; please fix extra whitespaces here. > +uint32_t irq_status; > +uint32_t control[AW_A10_PIT_TIMER_NR]; > +uint32_t interval[AW_A10_PIT_TIMER_NR]; > +uint32_t count[AW_A10_PIT_TIMER_NR]; > +uint32_t watch_dog_mode; > +uint32_t watch_dog_control; > +uint32_t count_lo; > +uint32_t count_hi; > +uint32_t count_ctl; > +} AwA10PITState; > + > +#endif > + And here. > -- > 1.7.2.5 > > --  Best regards,   Antony Pavlov

[Qemu-devel] a QOM Coding Conventions question

2013-12-13 Thread Antony Pavlov
t; public >*/ > > [any fields you need] > } FooClass; What do the "< private >" and "< public >" comments exactly mean here? --  Best regards,   Antony Pavlov

[Qemu-devel] [PATCH v8 6/6] MAINTAINERS: Document 'Canon DIGIC' machine

2013-12-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f45d1d..1fce9a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -233,6 +233,12 @@ S: Supported F: hw/arm/highbank.c F: hw/net/xgmac.c +Canon DIGIC +M: Antony

[Qemu-devel] [PATCH v8 2/6] hw/arm/digic: prepare DIGIC-based boards support

2013-12-13 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 1 + hw/arm/digic_boards.c | 84 +++ 2 files changed, 85 insertions(+) create mode 100644 hw/arm

[Qemu-devel] [PATCH v8 1/6] hw/arm: add very initial support for Canon DIGIC SoC

2013-12-13 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov Reviewed-by: Andreas Färber Reviewed-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 1 + hw/arm/digic.c

[Qemu-devel] [PATCH v8 3/6] hw/arm/digic: add timer support

2013-12-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic.c | 28 + hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 168 + hw/timer/digic-timer.h | 38 +++ include/hw/arm/digic.h | 6 ++ 5 files changed, 241 insertions

[Qemu-devel] [PATCH v8 4/6] hw/arm/digic: add UART support

2013-12-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- hw/arm/digic.c | 16 hw/char/Makefile.objs | 1 + hw/char/digic-uart.c | 195 + hw/char/digic-uart.h | 45 include/hw

[Qemu-devel] [PATCH v8 5/6] hw/arm/digic: add NOR ROM support

2013-12-13 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 87a9c4b..217c506 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

[Qemu-devel] [PATCH v8 0/6] hw/arm: add initial support for Canon DIGIC SoC

2013-12-13 Thread Antony Pavlov
[PATCH v8 1/6] hw/arm: add very initial support for Canon DIGIC SoC [PATCH v8 2/6] hw/arm/digic: prepare DIGIC-based boards support [PATCH v8 3/6] hw/arm/digic: add timer support [PATCH v8 4/6] hw/arm/digic: add UART support [PATCH v8 5/6] hw/arm/digic: add NOR ROM support [PATCH v8 6/6] MAINTAINER

Re: [Qemu-devel] a QOM Coding Conventions question

2013-12-15 Thread Antony Pavlov
On Sun, 15 Dec 2013 09:06:30 +1000 Peter Crosthwaite wrote: > On Sat, Dec 14, 2013 at 6:26 AM, Antony Pavlov > wrote: > > Hi, Andreas! > > > > Here is a quote from http://wiki.qemu.org/QOMConventions > > > >> a FooClass structure definition containin

[Qemu-devel] [PATCH v9 0/6] hw/arm: add initial support for Canon DIGIC SoC

2013-12-15 Thread Antony Pavlov
[PATCH v9 1/6] hw/arm: add very initial support for Canon DIGIC SoC [PATCH v9 2/6] hw/arm/digic: prepare DIGIC-based boards support [PATCH v9 3/6] hw/arm/digic: add timer support [PATCH v9 4/6] hw/arm/digic: add UART support [PATCH v9 5/6] hw/arm/digic: add NOR ROM support [PATCH v9 6/6] MAINTAINER

[Qemu-devel] [PATCH v9 6/6] MAINTAINERS: Document 'Canon DIGIC' machine

2013-12-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f45d1d..1fce9a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -233,6 +233,12 @@ S: Supported F: hw/arm/highbank.c F: hw/net/xgmac.c +Canon DIGIC +M: Antony

[Qemu-devel] [PATCH v9 2/6] hw/arm/digic: prepare DIGIC-based boards support

2013-12-15 Thread Antony Pavlov
Also this patch adds initial support for Canon PowerShot A1100 IS compact camera. Signed-off-by: Antony Pavlov --- hw/arm/Makefile.objs | 1 + hw/arm/digic_boards.c | 84 +++ 2 files changed, 85 insertions(+) create mode 100644 hw/arm

[Qemu-devel] [PATCH v9 1/6] hw/arm: add very initial support for Canon DIGIC SoC

2013-12-15 Thread Antony Pavlov
(http://www.magiclantern.fm) projects contributors. Signed-off-by: Antony Pavlov Reviewed-by: Andreas Färber Reviewed-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 1 + hw/arm/digic.c

[Qemu-devel] [PATCH v9 3/6] hw/arm/digic: add timer support

2013-12-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Peter Crosthwaite --- hw/arm/digic.c | 28 +++ hw/timer/Makefile.objs | 1 + hw/timer/digic-timer.c | 163 + include/hw/arm/digic.h | 6 ++ include/hw/timer/digic

[Qemu-devel] [PATCH v9 4/6] hw/arm/digic: add UART support

2013-12-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Peter Maydell Reviewed-by: Peter Crosthwaite --- hw/arm/digic.c | 16 hw/char/Makefile.objs| 1 + hw/char/digic-uart.c | 195 +++ include/hw/arm/digic.h | 2

[Qemu-devel] [PATCH v9 5/6] hw/arm/digic: add NOR ROM support

2013-12-15 Thread Antony Pavlov
Signed-off-by: Antony Pavlov --- hw/arm/digic_boards.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/hw/arm/digic_boards.c b/hw/arm/digic_boards.c index 87a9c4b..217c506 100644 --- a/hw/arm/digic_boards.c +++ b/hw/arm/digic_boards.c

Re: [Qemu-devel] [PATCH v8 3/6] hw/arm/digic: add timer support

2013-12-15 Thread Antony Pavlov
On Sat, 14 Dec 2013 16:41:44 +1000 Peter Crosthwaite wrote: > On Sat, Dec 14, 2013 at 7:42 AM, Antony Pavlov > wrote: > > Signed-off-by: Antony Pavlov > > --- > > hw/arm/digic.c | 28 + > > hw/timer/Makefile.objs | 1 + >

Re: [Qemu-devel] [PATCH v8 2/6] hw/arm/digic: prepare DIGIC-based boards support

2013-12-15 Thread Antony Pavlov
On Mon, 16 Dec 2013 00:04:18 +0100 Andreas Färber wrote: > Hi, > > Am 13.12.2013 22:42, schrieb Antony Pavlov: > > Also this patch adds initial support for Canon > > PowerShot A1100 IS compact camera. > > > > Signed-off-by: Antony Pavlov > > --- > &

Re: [Qemu-devel] [Bug 1248168] [NEW] MIPS, self-modifying code and uncached memory

2013-11-05 Thread Antony Pavlov
a0: 0a004a21addit2,t2,10 >3a4: 0010b 0x3a4 >3a8: nop >3ac: nop > > I expect that swr instruction in line 384 would change `addi > t2,t2,1`0 to `nop` > This should work because no cache is used for this memory region. > > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1248168/+subscriptions > -- --  Best regards,   Antony Pavlov

[Qemu-devel] [PATCH 0/2] use sizes.h macros for power-of-two sizes

2013-11-27 Thread Antony Pavlov
[PATCH 1/2] include/qemu: introduce sizes.h [PATCH 2/2] hw/mips: use sizes.h macros The sizes.h macros is a easy-to-read method of power-of-two memory sizes representation. The sizes.h macros are actively used in linux kernel and other projects, so let's use them in QEMU too.

[Qemu-devel] [PATCH 1/2] include/qemu: introduce sizes.h

2013-11-27 Thread Antony Pavlov
The header file sizes.h is used in linux kernel, barebox bootloader and u-boot bootloader. It provides the short and easy-to-read names for power-of-two numbers. The numbers like this are othen used for memory range sizes. Signed-off-by: Antony Pavlov Reviewed-by: Richard Henderson --- include

[Qemu-devel] [PATCH 2/2] hw/mips: use sizes.h macros

2013-11-27 Thread Antony Pavlov
Signed-off-by: Antony Pavlov Reviewed-by: Richard Henderson --- hw/mips/mips_malta.c | 25 + include/hw/mips/bios.h | 3 ++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 05c8771..604832f 100644

Re: [Qemu-devel] [PULL v2 00/11] target-lm32 updates

2013-11-27 Thread Antony Pavlov
o > >comments, include it here. > > Hi Anthony, Hi Blue, > > please discard this pull request. There was some feedback, i wasn't getting > before. I try to make the suggested changes, sending update patches for > reviews and after that i'll make a new pull request. Hi! Are you planning on pull request renewing? --  Best regards,   Antony Pavlov

Re: [Qemu-devel] [PATCH 2/2] hw/mips: use sizes.h macros

2013-11-28 Thread Antony Pavlov
On Thu, 28 Nov 2013 15:27:18 +0100 Andreas Färber wrote: > Am 28.11.2013 07:29, schrieb Antony Pavlov: > > Signed-off-by: Antony Pavlov > > Reviewed-by: Richard Henderson > > Are the int -> long changes caused by the BIT() macro usage? Otherwise I > would'

Re: [Qemu-devel] [PATCH 2/2] hw/mips: use sizes.h macros

2013-11-28 Thread Antony Pavlov
On Thu, 28 Nov 2013 18:08:32 +0100 Stefan Weil wrote: > Am 28.11.2013 07:29, schrieb Antony Pavlov: > > Signed-off-by: Antony Pavlov > > Reviewed-by: Richard Henderson > > --- > > hw/mips/mips_malta.c | 25 + > > include/hw/mips/bio

Re: [Qemu-devel] Networking in QEMU

2013-10-11 Thread Antony Pavlov
/malta-linux-gnu/default Also you can use VDE2 with qemu. See this file: https://github.com/frantony/clab/blob/master/qemu-configs/malta-linux-gnu/vde-network --  Best regards,   Antony Pavlov

Re: [Qemu-devel] [RFC v5 4/5] hw/arm/digic: add UART support

2013-10-22 Thread Antony Pavlov
On Thu, 17 Oct 2013 18:54:28 +0100 Peter Maydell wrote: > On 7 September 2013 08:04, Antony Pavlov wrote: > > Signed-off-by: Antony Pavlov > > --- a/hw/arm/digic_boards.c > > +++ b/hw/arm/digic_boards.c > > @@ -26,6 +26,13 @@ > > #include "hw/boards.h

Re: [Qemu-devel] [RFC v5 2/5] hw/arm/digic: prepare DIGIC-based boards support

2013-10-22 Thread Antony Pavlov
10 00 84 5e 01 00barebox..^.. f8400030: 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 canon> / md -b 0xf900+0x40 f900: 12 00 00 ea fe ff ff ea fe ff ff ea fe ff ff ea........ f910: fe ff ff ea fe ff ff ea fe ff ff ea fe ff ff ea f920: 62 61 72 65 62 6f 78 00 00 00 10 00 84 5e 01 00barebox..^.. f930: 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 canon> / --  Best regards,   Antony Pavlov

Re: [Qemu-devel] [RFC v3 0/2] use sizes.h macros for power-of-two sizes

2013-10-23 Thread Antony Pavlov
On Tue, 24 Sep 2013 08:32:10 +0400 Antony Pavlov wrote: ping-ping > On Fri, 13 Sep 2013 11:33:24 +0400 > Antony Pavlov wrote: > > ping > > > Changes since v2: > > * commit messages: drop ALL 'Reviewed-by' tags. > > Drop Aurelien Jarno's

[Qemu-devel] [PATCH v6 0/5] add initial support for Canon DIGIC SoC

2013-10-23 Thread Antony Pavlov
[PATCH v6 1/5] hw/arm: add very initial support for Canon DIGIC SoC [PATCH v6 2/5] hw/arm/digic: prepare DIGIC-based boards support [PATCH v6 3/5] hw/arm/digic: add timer support [PATCH v6 4/5] hw/arm/digic: add UART support [PATCH v6 5/5] hw/arm/digic: add NOR ROM support Changes since v5: 1. re

  1   2   >