Re: [Qemu-devel] [PATCH COLO-Frame v6 01/31] configure: Add parameter for configure to enable/disable COLO support

2015-07-05 Thread zhanghailiang
On 2015/7/4 1:51, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: configure --enable-colo/--disable-colo to switch COLO support on/off. COLO support is off by default. Signed-off-by: zhanghailiang Signed-off-by: Yang Hongyang Signed-off-by: Gonglei Signe

Re: [Qemu-devel] [PATCH v7 03/42] Init page sizes in qtest

2015-07-05 Thread Amit Shah
On (Tue) 16 Jun 2015 [11:26:16], Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > One of my patches used a loop that was based on host page size; > it dies in qtest since qtest hadn't bothered init'ing it. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah

[Qemu-devel] [PATCH pic32 v3 01/16] pic32: make the CPU clock frequency configurable per platform

2015-07-05 Thread Serge Vakulenko
Currently the clock rate for all MIPS platforms is fixed at 100MHz. Need to make it 40MHz for pic32mx7. Signed-off-by: Serge Vakulenko --- hw/mips/cputimer.c| 15 +++ hw/mips/mips_fulong2e.c | 2 +- hw/mips/mips_jazz.c | 2 +- hw/mips/mips_malta.c | 4 ++-- hw

[Qemu-devel] [PATCH pic32 v3 03/16] pic32: add support for external interrupt controller mode (EIC)

2015-07-05 Thread Serge Vakulenko
EIC is required for pic32 microcontroller. Signed-off-by: Serge Vakulenko --- hw/mips/cputimer.c | 17 +++-- hw/mips/mips_int.c | 8 +++- target-mips/cpu.h| 8 +++- target-mips/helper.c | 18 -- 4 files changed, 41 insertions(+), 10 deletions(-) dif

[Qemu-devel] [PATCH pic32 v3 02/16] pic32: use LCG algorithm for generated random index of TLBWR instruction

2015-07-05 Thread Serge Vakulenko
The LFSR algorithm, used for generating random TLB indexes for TLBWR instruction, was inclined to produce a degenerate sequence in some cases. For example, for 16-entry TLB size and Wired=1, it gives: 15, 6, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2, 7, 2... When repla

[Qemu-devel] [PATCH pic32 v3 00/16] add support for pic32 microcontrollers

2015-07-05 Thread Serge Vakulenko
Please find below a set of patches, which allow to simulate Microchip PIC32 microcontrollers on QEMU. For examples of real PIC32 applications running on QEMU, see page: https://github.com/sergev/qemu/wiki (1) Make the CPU clock frequency configurable per platform. Currently the clock rate for

[Qemu-devel] [PATCH pic32 v3 04/16] pic32: add two MIPS processor variants: M4K and microAptivUP

2015-07-05 Thread Serge Vakulenko
Needed for pic32mx (M4K) and pic32mz (microAptivUP) simulation. Signed-off-by: Serge Vakulenko --- target-mips/translate_init.c | 46 1 file changed, 46 insertions(+) diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index ddfa

[Qemu-devel] [PATCH pic32 v3 12/16] pic32: add file pic32_gpio.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 generic input/output ports. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_gpio.c | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 hw/mips/pic32_gpio.c diff --git a/hw/mips/pic32_gpio.c b/hw/mips/pic32_gpio.c new file mode 1006

[Qemu-devel] [PATCH pic32 v3 06/16] pic32: add file pic32mx.h

2015-07-05 Thread Serge Vakulenko
Hardware register definitions for PIC32MX microcontroller family. Signed-off-by: Serge Vakulenko --- hw/mips/pic32mx.h | 1290 + 1 file changed, 1290 insertions(+) create mode 100644 hw/mips/pic32mx.h diff --git a/hw/mips/pic32mx.h b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 05/16] pic32: add file pic32_peripherals.h

2015-07-05 Thread Serge Vakulenko
Data definitions and function declarations for simulation of pic32 microcontrollers. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_peripherals.h | 210 1 file changed, 210 insertions(+) create mode 100644 hw/mips/pic32_peripherals.h diff --git a/

[Qemu-devel] [PATCH pic32 v3 09/16] pic32: add file mips_pic32mz.c

2015-07-05 Thread Serge Vakulenko
This file implements a platform for Microchip PIC32MZ microcontroller, with three boards (machine types) supported: pic32mz-explorer16 PIC32MZ microcontroller on Microchip Explorer-16 board pic32mz-meb2 PIC32MZ microcontroller on Microchip MEB-II board pic32mz-wifire PIC32MZ microc

[Qemu-devel] [PATCH pic32 v3 13/16] pic32: add file pic32_spi.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 SPI peripheral interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_spi.c | 121 1 file changed, 121 insertions(+) create mode 100644 hw/mips/pic32_spi.c diff --git a/hw/mips/pic32_spi.c b/hw/mips/pic32_spi.c new file

[Qemu-devel] [PATCH pic32 v3 10/16] pic32: add file pic32_load_hex.c

2015-07-05 Thread Serge Vakulenko
It allows to load executables in Intel .hex or Motorola .srec format. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_load_hex.c | 238 +++ 1 file changed, 238 insertions(+) create mode 100644 hw/mips/pic32_load_hex.c diff --git a/hw/mips/pic32_load

[Qemu-devel] [PATCH pic32 v3 14/16] pic32: add file pic32_sdcard.c

2015-07-05 Thread Serge Vakulenko
Implement access to SD card, attached to pic32 SPI port. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_sdcard.c | 428 + 1 file changed, 428 insertions(+) create mode 100644 hw/mips/pic32_sdcard.c diff --git a/hw/mips/pic32_sdcard.c b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 11/16] pic32: add file pic32_uart.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 UART peripheral interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_uart.c | 228 +++ 1 file changed, 228 insertions(+) create mode 100644 hw/mips/pic32_uart.c diff --git a/hw/mips/pic32_uart.c b/hw/mips/pic32_uart.c new f

[Qemu-devel] [PATCH pic32 v3 16/16] pic32: update makefiles to cover pic32 support

2015-07-05 Thread Serge Vakulenko
Signed-off-by: Serge Vakulenko --- default-configs/mipsel-softmmu.mak | 1 + hw/mips/Makefile.objs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/default-configs/mipsel-softmmu.mak b/default-configs/mipsel-softmmu.mak index 0162ef0..b300eff 100644 --- a/default-configs/mips

[Qemu-devel] [PATCH pic32 v3 08/16] pic32: add file mips_pic32mx7.c

2015-07-05 Thread Serge Vakulenko
This file implements a platform for Microchip PIC32MX7 microcontroller, with three boards (machine types) supported: pic32mx7-explorer16 PIC32MX7 microcontroller on Microchip Explorer-16 board pic32mx7-max32 PIC32MX7 microcontroller on chipKIT Max32 board pic32mx7-maximitePIC32MX7 micro

[Qemu-devel] [PATCH pic32 v3 07/16] pic32: add file pic32mz.h

2015-07-05 Thread Serge Vakulenko
Hardware register definitions for PIC32MZ microcontroller family. Signed-off-by: Serge Vakulenko --- hw/mips/pic32mz.h | 2093 + 1 file changed, 2093 insertions(+) create mode 100644 hw/mips/pic32mz.h diff --git a/hw/mips/pic32mz.h b/hw/mips/

[Qemu-devel] [PATCH pic32 v3 15/16] pic32: add file pic32_ethernet.c

2015-07-05 Thread Serge Vakulenko
Implement pic32 Ethernet interface. Signed-off-by: Serge Vakulenko --- hw/mips/pic32_ethernet.c | 557 +++ 1 file changed, 557 insertions(+) create mode 100644 hw/mips/pic32_ethernet.c diff --git a/hw/mips/pic32_ethernet.c b/hw/mips/pic32_ethernet.c

Re: [Qemu-devel] [PATCH v10 02/21] i.MX: Move serial initialization to init/realize of DeviceClass.

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:04 PM, Jean-Christophe Dubois wrote: > Move constructor to DeviceClass methods > * imx_serial_init > * imx_serial_realize > > imx32_serial_properties is renamed to imx_serial_properties. > > The Qdev construction helper is moved to an include file as an > inline function

Re: [Qemu-devel] [PATCH v10 08/21] i.MX: Split EPIT emulator in a header file and a source file

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:04 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not present on v2 > > Changes since v3: > * not present on v3 > > Changes since v4: > * not present on

Re: [Qemu-devel] [PATCH v10 09/21] i.MX: Move Qdev EPIT construction helper as inline function.

2015-07-05 Thread Peter Crosthwaite
Also wondering what this prepares for, can it be deleted later from its current form? Regards, Peter On Sun, Jul 5, 2015 at 5:05 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not pres

Re: [Qemu-devel] [PATCH v10 11/21] i.MX: Split GPT emulator in a header file and a source file

2015-07-05 Thread Peter Crosthwaite
On Sun, Jul 5, 2015 at 5:05 PM, Jean-Christophe Dubois wrote: > Signed-off-by: Jean-Christophe Dubois > --- > > Changes since v1: > * not present on v1 > > Changes since v2: > * not present on v2 > > Changes since v3: > * not present on v3 > > Changes since v4: > * not present on

[Qemu-devel] [PATCH v3] qxl: allow to specify head limit to qxl driver

2015-07-05 Thread Frediano Ziglio
This patch allow to limit number of heads using qxl driver. By default qxl driver is not limited on any kind on head use so can decide to use as much heads. libvirt has this as a video card parameter (actually set to 1 but not used). This parameter will allow to limit setting a use can do (which c

<    1   2