[Qemu-devel] [PATCH 1/3] mainstone: fix name of the allocated memory for roms

2011-01-13 Thread Dmitry Eremin-Solenikov
Mainstone board has two flash chips (emulated by two ram regions), however currently code tries to allocate them with the same name, which fails. Fix that to make mainstone emulation work again. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c |2 +- 1 files

[Qemu-devel] [PATCH 2/3] Scoop: fix access to registers from second instance

2011-01-13 Thread Dmitry Eremin-Solenikov
Second instance of scoop contains registers shifted to 0x40 from the start of the page. Instead of messing with register mapping, just limit register address to 0x00..0x3f. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/zaurus.c |4 ++-- 1 files changed, 2 insertions

[Qemu-devel] [PATCH 3/3] pxa2xx: fix vmstate_pxa2xx_i2c

2011-01-13 Thread Dmitry Eremin-Solenikov
vmstate_pxa2xx_i2c incorrectly recursed to itself instead of going to store slave device. Fix that stop stop qemu from segfaulting during savevm for pxa2xx-based devices. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx.c |2 +- 1 files changed, 1 insertions(+), 1

[Qemu-devel] Re: [PATCH 1/3] mainstone: fix name of the allocated memory for roms

2011-01-17 Thread Dmitry Eremin-Solenikov
Hi, Sorry, what about these patches? On 1/13/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Mainstone board has two flash chips (emulated by two ram regions), however currently code tries to allocate them with the same name, which fails. Fix that to make mainstone emulation work

[Qemu-devel] [PATCH] pxa2xx_lcd: restore updating of display

2011-01-18 Thread Dmitry Eremin-Solenikov
Recently PXA2xx lcd have stopped to be updated incrementally (picture frozen). This patch fixes that by passing non min/max x/y, but rather (correctly) x/y and w/h. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx_lcd.c |4 ++-- 1 files changed, 2 insertions(+), 2

[Qemu-devel] [PATCH 1/5] SharpSL scoop device - convert to qdev

2011-01-20 Thread Dmitry Eremin-Solenikov
Convert SharpSL scoop device to qdev, remove lots of supporting code, as lot of init and gpio related things can now be done automagically. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/sharpsl.h |7 hw/spitz.c | 23 ++-- hw/tosa.c| 23

[Qemu-devel] [PATCH 2/5] Use vmstate to save/load spitz-lcdtg and corgi-ssp state

2011-01-20 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/spitz.c | 74 ++- 1 files changed, 28 insertions(+), 46 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index 3667618..87731d3 100644 --- a/hw/spitz.c +++ b/hw/spitz.c

[Qemu-devel] [PATCH 3/5] spitz: make sl-nand emulation use qdev infrastructure

2011-01-21 Thread Dmitry Eremin-Solenikov
Switch sl-nand emulation to use qdev and vmstate. Also drop ecc_get/_put functions as sl-nand was the only user of that code. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/ecc.c | 27 +++- hw/flash.h |3 +- hw/onenand.c |1 + hw/spitz.c | 97

[Qemu-devel] [PATCH 5/5] pxa2xx_gpio: switch to using qdev

2011-01-21 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/gumstix.c |4 +- hw/pxa.h | 10 +--- hw/pxa2xx.c |4 +- hw/pxa2xx_gpio.c | 151 ++ hw/spitz.c | 34 ++-- hw/tosa.c| 12

[Qemu-devel] [PATCH 4/5] spitz: make spitz-keyboard to use qdev infrastructure

2011-01-21 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/spitz.c | 127 ++-- 1 files changed, 72 insertions(+), 55 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index c69a121..5f95bab 100644 --- a/hw/spitz.c +++ b/hw/spitz.c

[Qemu-devel] [PATCH 4/5] spitz: make spitz-keyboard to use qdev infrastructure

2011-01-21 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/spitz.c | 127 ++-- 1 files changed, 72 insertions(+), 55 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index c69a121..e3ece05 100644 --- a/hw/spitz.c +++ b/hw/spitz.c

[Qemu-devel] [PATCH 5/5] pxa2xx_gpio: switch to using qdev

2011-01-21 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/gumstix.c |4 +- hw/pxa.h | 10 +--- hw/pxa2xx.c |4 +- hw/pxa2xx_gpio.c | 150 ++ hw/spitz.c | 34 ++-- hw/tosa.c| 12

[Qemu-devel] [PATCH/RFC] vmstate: add VMSTATE_ macro for pointer to array of structures

2011-01-21 Thread Dmitry Eremin-Solenikov
While working on cleaning up pxa2xx_timer, I stumbled upon storing array of structures, which is referenced via a pointer. Thus I had to add this macro. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/hw.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions

[Qemu-devel] Re: [PATCH 1/5] SharpSL scoop device - convert to qdev

2011-01-26 Thread Dmitry Eremin-Solenikov
Hi, So what about theese patches? On 1/20/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Convert SharpSL scoop device to qdev, remove lots of supporting code, as lot of init and gpio related things can now be done automagically. Signed-off-by: Dmitry Eremin-Solenikov dbarysh

[Qemu-devel] [PATCH 01/11] .gitignore: ignore vi swap files and ctags files

2011-01-31 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 3efb4ec..26703e1 100644 --- a/.gitignore +++ b/.gitignore @@ -51,6 +51,8 @@ QMP/qmp-commands.txt *.vr *.d *.o

[Qemu-devel] [PATCH 02/11] sysbus: print amount of irqs in dev_print

2011-01-31 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/sysbus.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/sysbus.c b/hw/sysbus.c index 1583bd8..1928b51 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -178,6 +178,7 @@ static void sysbus_dev_print(Monitor

[Qemu-devel] [PATCH 03/11] arm: drop unused irq-related part of CPUARMState

2011-01-31 Thread Dmitry Eremin-Solenikov
These two fields were added as a part of ARMv7 support patch (back in 2007), were never used by any code, so can be dropped. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-arm

[Qemu-devel] [PATCH 04/11] arm-pic: add one extra interrupt to support EXITTB interrupts

2011-01-31 Thread Dmitry Eremin-Solenikov
Some ARM processors (consider PXA2xx, Omap1, etc.) want to be able to send CPU_INTERRUPT_EXITTB to the cpu. Support doing that through common arm_pic. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/arm-misc.h |1 + hw/arm_pic.c |6 +- 2 files changed, 6

[Qemu-devel] [PATCH 09/11] Drop unnecessary inclusions of pxa.h header

2011-01-31 Thread Dmitry Eremin-Solenikov
Seceral files contained onnecessary dependencies on hw/pxa.h header. Drop unused references. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c |2 +- hw/mainstone.h |2 +- hw/mst_fpga.c |9 - hw/tc6393xb.c |1 - hw/zaurus.c|1 - 5

[Qemu-devel] [PATCH 06/11] pxa2xx_pic: fully encapsulate pic into DeviceState

2011-01-31 Thread Dmitry Eremin-Solenikov
Currently pxa2xx_pic exposes it's internal gpio_in array. Replace all references to the array with calls to qdev_get_gpio_in(). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mst_fpga.c |7 --- hw/pxa.h | 10 +- hw/pxa2xx.c | 53

[Qemu-devel] [PATCH 07/11] tc6393xb: correct NAND isr assertion

2011-01-31 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tc6393xb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/tc6393xb.c b/hw/tc6393xb.c index c3fbe4e..0cadcde 100644 --- a/hw/tc6393xb.c +++ b/hw/tc6393xb.c @@ -381,7 +381,7 @@ static void

[Qemu-devel] [PATCH 10/11] mainstone: convert FPGA emulation code to use QDev/SysBus

2011-01-31 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c | 10 +++-- hw/mainstone.h |3 -- hw/mst_fpga.c | 103 +-- 3 files changed, 53 insertions(+), 63 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c

[Qemu-devel] Re: [PATCH 01/11] .gitignore: ignore vi swap files and ctags files

2011-02-04 Thread Dmitry Eremin-Solenikov
Hi, What about these patches? -- With best wishes Dmitry

[Qemu-devel] [PATCH 2/2] tc6393xb: add support for invalidate display callback

2011-02-04 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tc6393xb.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/hw/tc6393xb.c b/hw/tc6393xb.c index ed49e94..14847a9 100644 --- a/hw/tc6393xb.c +++ b/hw/tc6393xb.c @@ -126,7 +126,8 @@ struct

[Qemu-devel] [PATCH 1/2] vl: initialize all displaystates

2011-02-04 Thread Dmitry Eremin-Solenikov
Init not only first displaystate, but all. Otherwise machines with multiple display devices (e.g. tosa, as it exists now) will just segfault on ds switch. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- vl.c | 104

[Qemu-devel] [PATCH] i386: fix MCE compilation

2011-02-05 Thread Dmitry Eremin-Solenikov
This fixes the following error/warning in the target-i386/helper.c compilation: target-i386/helper.c: In function ‘cpu_inject_x86_mce’: target-i386/helper.c:1151: error: integer constant is too large for ‘long’ type Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-i386

Re: [Qemu-devel] [PATCH 05/11] pxa2xx_pic: update to use qdev and arm-pic

2011-02-11 Thread Dmitry Eremin-Solenikov
On 2/11/11, andrzej zaborowski balr...@gmail.com wrote: On 31 January 2011 16:20, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: pxa2xx_pic duplicated some code from arm-pic. Drop it, replacing with references to arm-pic. Also use qdev/sysbus framework to handle pxa2xx-pic

Re: [Qemu-devel] [PATCH 05/11] pxa2xx_pic: update to use qdev and arm-pic

2011-02-11 Thread Dmitry Eremin-Solenikov
Hello, On 2/11/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: On 2/11/11, andrzej zaborowski balr...@gmail.com wrote: On 31 January 2011 16:20, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: pxa2xx_pic duplicated some code from arm-pic. Drop it, replacing with references to arm

[Qemu-devel] [PATCH 2/7] Drop unnecessary inclusions of pxa.h header

2011-02-11 Thread Dmitry Eremin-Solenikov
Seceral files contained onnecessary dependencies on hw/pxa.h header. Drop unused references. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tc6393xb.c |1 - hw/zaurus.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/tc6393xb.c b/hw

[Qemu-devel] [PATCH 5/7] tosa: we aren't connected to VBus, pass this info to Linux kernel

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tosa.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/tosa.c b/hw/tosa.c index 0bfab16..b8b6c4f 100644 --- a/hw/tosa.c +++ b/hw/tosa.c @@ -25,6 +25,7 @@ #define TOSA_RAM0x0400 #define

[Qemu-devel] [PATCH 3/7] mainstone: pass one irq to the mst_fpga instead of the whole PIC

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c |2 +- hw/mainstone.h |2 +- hw/mst_fpga.c | 12 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c index 58e3f86..18d1415 100644 --- a/hw/mainstone.c

[Qemu-devel] [PATCH 1/7] Add scoop post_load callback that sets IRQs to loaded levels

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/zaurus.c | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/hw/zaurus.c b/hw/zaurus.c index fca11a5..fb5e228 100644 --- a/hw/zaurus.c +++ b/hw/zaurus.c @@ -181,17 +181,34 @@ static int

[Qemu-devel] [PATCH 7/7] pxa2xx: convert i2c master to use qdev/vmsd

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx.c | 53 ++--- 1 files changed, 42 insertions(+), 11 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index d966846..9ebbce6 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c

[Qemu-devel] [PATCH 6/7] max7310: finish qdev'ication

2011-02-11 Thread Dmitry Eremin-Solenikov
1) Move GPIO-related functionality to qdev. Now one can use directly qdev_get_gpio_in()/qdev_connect_gpio_out() on max7310 devices. 2) Make reset to be called through qdev.reset callback. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/i2c.h |5 - hw/max7310.c

[Qemu-devel] [PATCH 4/7] tc6393xb: correct NAND isr assertion

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tc6393xb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/tc6393xb.c b/hw/tc6393xb.c index 2104d4e..ed49e94 100644 --- a/hw/tc6393xb.c +++ b/hw/tc6393xb.c @@ -380,7 +380,7 @@ static void

Re: [Qemu-devel] [PATCH 08/11] Add scoop post_load callback that sets IRQs to loaded levels

2011-02-11 Thread Dmitry Eremin-Solenikov
On 2/11/11, andrzej zaborowski balr...@gmail.com wrote: Hi Dmitry, On 31 January 2011 16:20, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/zaurus.c | 19 ++- 1 files changed, 18 insertions(+), 1

[Qemu-devel] [PATCH 1/3] mainstone: correct and simplify irq handling

2011-02-11 Thread Dmitry Eremin-Solenikov
Simplify IRQ handling to stop setting an input irq pin. As a win, also get correct IRQ status after save/load cycle. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mst_fpga.c | 29 ++--- 1 files changed, 10 insertions(+), 19 deletions(-) diff --git

[Qemu-devel] [PATCH 3/3] Merge mainstone.h header into mainstone.c

2011-02-11 Thread Dmitry Eremin-Solenikov
Now the only user of mainstone.h is mainstone.c file. Merge header into board file. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c | 23 ++- hw/mainstone.h | 35 --- 2 files changed, 22 insertions(+), 36

[Qemu-devel] [PATCH 2/3] mainstone: convert FPGA emulation code to use QDev/SysBus

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c | 10 +++-- hw/mainstone.h |3 -- hw/mst_fpga.c | 96 3 files changed, 54 insertions(+), 55 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c

[Qemu-devel] Re: [PATCH 1/2] vl: initialize all displaystates

2011-02-12 Thread Dmitry Eremin-Solenikov
On 2/4/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Init not only first displaystate, but all. Otherwise machines with multiple display devices (e.g. tosa, as it exists now) will just segfault on ds switch. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com What about

Re: [Qemu-devel] [PATCH 1/3] mainstone: correct and simplify irq handling

2011-02-16 Thread Dmitry Eremin-Solenikov
Hello, On Wed, Feb 16, 2011 at 4:13 AM, andrzej zaborowski balr...@gmail.com wrote: On 12 February 2011 01:15, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Simplify IRQ handling to stop setting an input irq pin. As a win, also get correct IRQ status after save/load cycle. Thanks, I

[Qemu-devel] [PATCH] mst_fpga: correct irq level settings

2011-02-16 Thread Dmitry Eremin-Solenikov
Final corrections for IRQ levels that are set by mst_fpga: * Don't retranslate IRQ if previously IRQ was masked. * After setting or clearing IRQs through register, apply mask before setting parent IRQ level. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mst_fpga.c |4

[Qemu-devel] [PATCH 0/10] pxa2xx: work on switching to qdev/vmstate

2011-02-20 Thread Dmitry Eremin-Solenikov
This series introduces another partial rework of pxa2xx to use qdev/vmstate to handle subdevices. Dmitry Eremin-Solenikov (10): arm-pic: add one extra interrupt to support EXITTB interrupts pxa2xx_pic: update to use qdev and arm-pic pxa2xx_gpio: simplify by reusing wake irq from

[Qemu-devel] [PATCH 02/10] pxa2xx_pic: update to use qdev and arm-pic

2011-02-20 Thread Dmitry Eremin-Solenikov
Use qdev/sysbus framework to handle pxa2xx-pic. Instead of exposing IRQs via array, reference them via qdev_get_gpio_in(). Also pxa2xx_pic duplicated some code from arm-pic. Drop it, replacing with references to arm-pic, as all other ARM SoCs do for their PIC code. Signed-off-by: Dmitry Eremin

[Qemu-devel] [PATCH 01/10] arm-pic: add one extra interrupt to support EXITTB interrupts

2011-02-20 Thread Dmitry Eremin-Solenikov
Some ARM processors (consider PXA2xx, Omap1, etc.) want to be able to send CPU_INTERRUPT_EXITTB to the cpu. Support doing that through common arm_pic. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/arm-misc.h |1 + hw/arm_pic.c |6 +- 2 files changed, 6

[Qemu-devel] [PATCH 04/10] vmstate: add VMSTATE_STRUCT_ARRAY_TEST

2011-02-20 Thread Dmitry Eremin-Solenikov
This is a _TEST variant of VMSTATE_STRUCT_ARRAY, necessary e.g. for future patch changing pxa2xx_timer to use vmstate. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/hw.h |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index

[Qemu-devel] [PATCH 06/10] pxa2xx_timer: switch to using qdev/vmstate

2011-02-20 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa.h |4 - hw/pxa2xx.c | 15 +++- hw/pxa2xx_timer.c | 248 ++--- 3 files changed, 155 insertions(+), 112 deletions(-) diff --git a/hw/pxa.h b/hw/pxa.h index

[Qemu-devel] [PATCH 03/10] pxa2xx_gpio: simplify by reusing wake irq from arm_pic

2011-02-20 Thread Dmitry Eremin-Solenikov
We can stop messing with CPUState directly, as we have special irq in arm_pic Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa.h |2 +- hw/pxa2xx.c |6 -- hw/pxa2xx_gpio.c | 14 +- 3 files changed, 10 insertions(+), 12 deletions

[Qemu-devel] [PATCH 08/10] pxa2xx_dma: drop unused pxa2xx_dma_handler_t/handler field

2011-02-20 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx_dma.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/hw/pxa2xx_dma.c b/hw/pxa2xx_dma.c index b512d34..92c3e1e 100644 --- a/hw/pxa2xx_dma.c +++ b/hw/pxa2xx_dma.c @@ -20,11 +20,7 @@ typedef

[Qemu-devel] [PATCH 07/10] vmstate: move VMSTATE_PCIE_AER_ERRS to hw/hw.h

2011-02-20 Thread Dmitry Eremin-Solenikov
-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/hw.h | 21 + hw/pcie_aer.c | 12 +--- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index b47a7c8..eec9c6b 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -499,6 +499,27 @@ extern

[Qemu-devel] [PATCH 05/10] pxa2xx_timer: change info struct name to comply with guidelines

2011-02-20 Thread Dmitry Eremin-Solenikov
It should be PXA2xxTimerInfo, not pxa2xx_timer_info. Replace all occurencies of old name with the new one. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx_timer.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH 09/10] pxa2xx_dma: port to qdev/vmstate

2011-02-20 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa.h | 14 ++-- hw/pxa2xx.c | 43 - hw/pxa2xx_dma.c | 184 +++--- hw/pxa2xx_mmci.c | 16 +++-- 4 files changed, 150 insertions(+), 107 deletions

[Qemu-devel] [PATCH 10/10] pxa2xx: port pxa2xx_rtc to using qdev/vmstate

2011-02-20 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa.h| 27 - hw/pxa2xx.c | 173 ++- 2 files changed, 100 insertions(+), 100 deletions(-) diff --git a/hw/pxa.h b/hw/pxa.h index bad0556..6e2509a 100644

[Qemu-devel] [PATCH] Register only one qbus_reset_all_fn() for system bus

2011-02-20 Thread Dmitry Eremin-Solenikov
created, it cannot be set), so the check is just wrong. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/qdev.c |2 +- vl.c |3 --- 2 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 1aa1ea0..0a3c8ce 100644 --- a/hw/qdev.c

Re: [Qemu-devel] [PATCH 02/10] pxa2xx_pic: update to use qdev and arm-pic

2011-02-25 Thread Dmitry Eremin-Solenikov
On 2/25/11, andrzej zaborowski balr...@gmail.com wrote: Hi Dmitry, On 20 February 2011 14:50, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Use qdev/sysbus framework to handle pxa2xx-pic. Instead of exposing IRQs via array, reference them via qdev_get_gpio_in(). Also pxa2xx_pic

[Qemu-devel] [PATCH 1/2] pxa2xx_timer: separate irq for pxa27x handling

2011-03-03 Thread Dmitry Eremin-Solenikov
to raise this irq. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx_timer.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/pxa2xx_timer.c b/hw/pxa2xx_timer.c index 0fbd4a8..effe653 100644 --- a/hw/pxa2xx_timer.c +++ b/hw/pxa2xx_timer.c

[Qemu-devel] [PATCH 2/2] pxa2xx_pic: fixup initialisation

2011-03-03 Thread Dmitry Eremin-Solenikov
Currently pxa2xx_pic init fails with error at sysbus_mmio_map(), as there is no correspondent sysbus_init_mmio. Also move most of init to pxa2xx_pic_initfn. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pxa2xx_pic.c | 37 +++-- 1 files

[Qemu-devel] [PATCH 2/2][RESEND] tc6393xb: add support for invalidate display callback

2011-03-03 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/tc6393xb.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/hw/tc6393xb.c b/hw/tc6393xb.c index ed49e94..14847a9 100644 --- a/hw/tc6393xb.c +++ b/hw/tc6393xb.c @@ -126,7 +126,8 @@ struct

[Qemu-devel] [PATCH 1/2][RESEND] vl: initialize all displaystates

2011-03-03 Thread Dmitry Eremin-Solenikov
Init not only first displaystate, but all. Otherwise machines with multiple display devices (e.g. tosa, as it exists now) will just segfault on ds switch. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- vl.c | 104

[Qemu-devel] [PATCH 1/2] mainstone: use gpio 0 for connection of FPGA instead of hooking into PIC directly

2011-03-03 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/mainstone.c b/hw/mainstone.c index 4eabdb9..8970dd8 100644 --- a/hw/mainstone.c +++ b/hw/mainstone.c @@ -140,7 +140,7 @@ static void

[Qemu-devel] [PATCH 2/2] mainstone: PCMCIA support

2011-03-03 Thread Dmitry Eremin-Solenikov
Extend mst_fpga and mainstone with logic to support PCMCIA attachment (IRQs, status regs). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/mainstone.c |7 +++ hw/mst_fpga.c | 29 +++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH 1/2] Implement basic part of SA-1110/SA-1100

2011-03-22 Thread Dmitry Eremin-Solenikov
Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. Implemented: - IRQs - GPIO - PPC - RTC - UARTs (no IrDA/etc.) - OST reused from pxa25x Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the hw/strongarm.c Signed-off-by: Dmitry Eremin-Solenikov dbarysh

[Qemu-devel] [PATCH 2/2] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-22 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

Re: [Qemu-devel] [PATCH 1/2] Implement basic part of SA-1110/SA-1100

2011-03-22 Thread Dmitry Eremin-Solenikov
Hello, On 3/22/11, Peter Maydell peter.mayd...@linaro.org wrote: On 22 March 2011 14:53, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: static inline int arm_feature(CPUARMState *env, int feature) @@ -391,6 +392,19 @@ void cpu_arm_set_cp_io(CPUARMState *env, int cpnum, #define

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-24 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/collie.c | 70

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-24 Thread Dmitry Eremin-Solenikov
...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4 +++- target-arm/helper.c| 24 target-arm/translate.c | 25 ++--- 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/target-arm

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
* dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |2 + hw/strongarm.c | 1302 +++ hw/strongarm.h | 62

[Qemu-devel] Re: [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
On 3/24/11, Juan Quintela quint...@redhat.com wrote: Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. Implemented: - IRQs - GPIO - PPC - RTC - UARTs (no IrDA/etc.) - OST reused from pxa25x Everything else

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-24 Thread Dmitry Eremin-Solenikov
...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4 +++- target-arm/helper.c| 24 target-arm/translate.c | 25 ++--- 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/target-arm

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
* dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-24 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-26 Thread Dmitry Eremin-Solenikov
On 3/25/11, Peter Maydell peter.mayd...@linaro.org wrote: On 24 March 2011 22:07, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Currently target-arm/ assumes at least ARMv5 core. Add support for handling also ARMv4/ARMv4T. This changes the following instructions: Mostly looks good

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-26 Thread Dmitry Eremin-Solenikov
On 3/26/11, Peter Maydell peter.mayd...@linaro.org wrote: On 26 March 2011 17:23, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Can we assume (maybe temporarily) that all v5 are also v5TE? It seems it's currently done so, and I don't want to be too intrusive. All the cores we currently

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-29 Thread Dmitry Eremin-Solenikov
Hello, On 3/27/11, Peter Maydell peter.mayd...@linaro.org wrote: I've just gone through this distinguishing v5 sublevels. I've also gone back and looked up an older ARM ARM for any v5 vs v5T differences, and it looks like the only difference really is whether Thumb mode works: the ARM

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-29 Thread Dmitry Eremin-Solenikov
* dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-29 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-29 Thread Dmitry Eremin-Solenikov
are simply aliased (for now). Patch is heavily based on patch by Filip Navara filip.nav...@gmail.com which in turn is based on work by Ulrich Hecht u...@suse.de and Vincent Sanders vi...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-30 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-30 Thread Dmitry Eremin-Solenikov
* dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-30 Thread Dmitry Eremin-Solenikov
are simply aliased (for now). Patch is heavily based on patch by Filip Navara filip.nav...@gmail.com which in turn is based on work by Ulrich Hecht u...@suse.de and Vincent Sanders vi...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-30 Thread Dmitry Eremin-Solenikov
On 3/30/11, Peter Maydell peter.mayd...@linaro.org wrote: On 30 March 2011 12:41, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: @@ -7172,10 +7210,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s) } if (insn (1 20)) { /* Complete

Re: [Qemu-devel] [RESEND][PATCH 3/9] microdrive: qdevify

2011-05-15 Thread Dmitry Eremin-Solenikov
Hello, On 5/16/11, andrzej zaborowski balr...@gmail.com wrote: On 25 April 2011 11:06, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Switch dscm1 microdrive driver to use qdev infrastructure. --- hw/ide/microdrive.c | 49 +++-- hw

Re: [Qemu-devel] [RESEND][PATCH 2/9] PCMCIA: start qdev'ication

2011-05-15 Thread Dmitry Eremin-Solenikov
On 5/16/11, andrzej zaborowski balr...@gmail.com wrote: Hi Dmitry, On 25 April 2011 11:06, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Convert PCMCIA bus handling code to use QBus internally. MicroDrive code is still unaffected. Signed-off-by: Dmitry Eremin-Solenikov dbarysh

Re: [Qemu-devel] [RESEND][PATCH 3/9] microdrive: qdevify

2011-05-16 Thread Dmitry Eremin-Solenikov
On 5/16/11, andrzej zaborowski balr...@gmail.com wrote: On 16 May 2011 06:54, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On 5/16/11, andrzej zaborowski balr...@gmail.com wrote: On 25 April 2011 11:06, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Switch dscm1

Re: [Qemu-devel] [PATCH] Register only one qbus_reset_all_fn() for system bus

2011-04-02 Thread Dmitry Eremin-Solenikov
sysbus_get_default() creates bus for main_system_bus and then set main_system_bus to it. So main_system_bus == NULL in qbus_create_inplace() when creating main_system_bus. So this patch fixes the check whether creating main_system_bus or not by seeing BusInfo. Cc: Dmitry Eremin-Solenikov dbarysh

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-04-02 Thread Dmitry Eremin-Solenikov
On 3/31/11, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: On 3/30/11, Peter Maydell peter.mayd...@linaro.org wrote: On 30 March 2011 12:41, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: @@ -7172,10 +7210,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s

Re: [Qemu-devel] [PATCH] Register only one qbus_reset_all_fn() for system bus

2011-04-04 Thread Dmitry Eremin-Solenikov
On 4/3/11, Isaku Yamahata yamah...@valinux.co.jp wrote: On Sat, Apr 02, 2011 at 06:47:37PM +0400, Dmitry Eremin-Solenikov wrote: On 4/2/11, Isaku Yamahata yamah...@valinux.co.jp wrote: Have you verified that all bus devices have been qdevified since this code has been added? I wouldn't bet

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-04-04 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-04-04 Thread Dmitry Eremin-Solenikov
* dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-04-04 Thread Dmitry Eremin-Solenikov
are simply aliased (for now). Patch is heavily based on patch by Filip Navara filip.nav...@gmail.com which in turn is based on work by Ulrich Hecht u...@suse.de and Vincent Sanders vi...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4

Re: [Qemu-devel] [PATCH] Fix build error in usb-ccid code

2011-04-04 Thread Dmitry Eremin-Solenikov
On 4/4/11, Peter Maydell peter.mayd...@linaro.org wrote: On 4 April 2011 13:31, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: W/o this fix I'm getting the following error: cc1: warnings being treated as errors hw/usb-ccid.c: In function ‘ccid_card_card_error’: hw/usb-ccid.c:1202:5

Re: [Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-04-04 Thread Dmitry Eremin-Solenikov
On 4/4/11, Peter Maydell peter.mayd...@linaro.org wrote: On 4 April 2011 13:15, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: +s = sa1110_init(collie_binfo.ram_size, cpu_model); +(void) s; Is this (void) s needed now, or is it a leftover from before code to use s later

[Qemu-devel] [PATCH 0/3] StrongARM/collie support

2011-04-04 Thread Dmitry Eremin-Solenikov
Please find the next iteration of the patches. Changes since previous release are: fix for VMStateDescription of strongarm_uart, fixed RTSR reg. offset and added emulation of strongarm SSP port. Also unused (void) s; statement was dropped from hw/collie.c

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-04-04 Thread Dmitry Eremin-Solenikov
are simply aliased (for now). Patch is heavily based on patch by Filip Navara filip.nav...@gmail.com which in turn is based on work by Ulrich Hecht u...@suse.de and Vincent Sanders vi...@kyllikki.org. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- target-arm/cpu.h |4

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-04-04 Thread Dmitry Eremin-Solenikov
offset * add SSP support V2: * removed all strongarm variants except latest * dropped unused casts * fixed PIC vmstate * fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw/strongarm.c | 1539

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-04-04 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.target |1 + hw

Re: [Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-04-06 Thread Dmitry Eremin-Solenikov
On 4/6/11, Peter Maydell peter.mayd...@linaro.org wrote: On 4 April 2011 14:38, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Currently target-arm/ assumes at least ARMv5 core. Add support for handling also ARMv4/ARMv4T. This changes the following instructions: Signed-off-by: Dmitry

[Qemu-devel] [PATCH 0/7] Rework PCMCIA subsystem

2011-04-11 Thread Dmitry Eremin-Solenikov
command line: -device dscm1 -device ide-drive,drive=test -drive if=none,id=test,file=/dev/null Dmitry Eremin-Solenikov (7): pxa2xx_pcmcia: qdevify PCMCIA: start qdev'ication microdrive: qdevify pcmcia: move all card callbacks to PCMCIACardInfo pcmcia: move attach

[Qemu-devel] [PATCH 5/7] pcmcia: move attach and detach socket methods to PCMCIASocket

2011-04-11 Thread Dmitry Eremin-Solenikov
Make attach and detach calls to be automatically called by PCMCIA card instantiation code, rather than calling them by hand from the board code. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- hw/pcmcia.c| 45 +++- hw/pcmcia.h|2

[Qemu-devel] [PATCH 2/7] PCMCIA: start qdev'ication

2011-04-11 Thread Dmitry Eremin-Solenikov
Convert PCMCIA bus handling code to use QBus internally. MicroDrive code is still unaffected. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- Makefile.objs |3 ++ hw/pcmcia.c| 102 hw/pcmcia.h| 15

  1   2   >