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

2011-05-16 Thread Dmitry Eremin-Solenikov
On 5/16/11, andrzej zaborowski wrote: > On 16 May 2011 06:54, Dmitry Eremin-Solenikov wrote: >> Hello, >> >> On 5/16/11, andrzej zaborowski wrote: >>> On 25 April 2011 11:06, Dmitry Eremin-Solenikov >>> wrote: >>>> Switch dsc

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

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

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

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

Re: [Qemu-devel] [RESEND][PATCH 1/9] pxa2xx_pcmcia: qdevify

2011-05-03 Thread Dmitry Eremin-Solenikov
Hello, colleagues, On 4/29/11, Dmitry Eremin-Solenikov wrote: > Hello, > > Any chance to get any response for this patches serie? Still no response at all. Is there anything wrong with my approach? Is there any problem with patch format? Am I just being ignored? > On 4/25/11, D

Re: [Qemu-devel] [RESEND][PATCH 1/9] pxa2xx_pcmcia: qdevify

2011-04-29 Thread Dmitry Eremin-Solenikov
Hello, Any chance to get any response for this patches serie? On 4/25/11, Dmitry Eremin-Solenikov wrote: > Use qdev insfrastructure for managing PXA PCMCIA devices. PCMCIA bus > itself isn't converted to QBus (yet). pxa2xx_pcmcia_init() function is > moved to pcmcia.h as it w

[Qemu-devel] [RESEND][PATCH 8/9] strongarm: add PCMCIA support

2011-04-25 Thread Dmitry Eremin-Solenikov
Add PCMCIA support to StrongARM SoCs reusing PXA devices. Signed-off-by: Dmitry Eremin-Solenikov --- hw/strongarm.c |5 - hw/strongarm.h |1 + 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw/strongarm.c b/hw/strongarm.c index de08bdf..dbc253c 100644 --- a/hw

[Qemu-devel] [RESEND][PATCH 9/9] collie: add support for PCMCIA bus

2011-04-25 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov --- hw/collie.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/collie.c b/hw/collie.c index 156404d..89d37f7 100644 --- a/hw/collie.c +++ b/hw/collie.c @@ -14,6 +14,9 @@ #include "flash.h" #include &

[Qemu-devel] [RESEND][PATCH 7/9] ide-core: allocate metadata storage for CFATA drives

2011-04-25 Thread Dmitry Eremin-Solenikov
Currently it's done by hw/ide/microdrive.c To simplify that part, move this initialization to ide core. Signed-off-by: Dmitry Eremin-Solenikov --- hw/ide/core.c |4 hw/ide/internal.h |2 ++ hw/ide/microdrive.c |6 +- 3 files changed, 7 insertions(+), 5 dele

[Qemu-devel] [RESEND][PATCH 4/9] pcmcia: move all card callbacks to PCMCIACardInfo

2011-04-25 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov last commit fixup Signed-off-by: Dmitry Eremin-Solenikov Revert "microdrive fixup" This reverts commit 6a9f969b0626e218ff910d84ed1c9eec285cbcd5. Signed-off-by: Dmitry Eremin-Solenikov --- hw/ide/microdriv

[Qemu-devel] [RESEND][PATCH 6/9] pxa: change order of pcmcia devices instantiation, so that the socket 0 will be default

2011-04-25 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov --- hw/pxa2xx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index 6ae8c8c..dc44864 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -2176,8 +2176,8 @@ PXA2xxState *pxa270_init(unsigned int sdram_size

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

2011-04-25 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 --- hw/pcmcia.c| 45 +++- hw/pcmcia.h|2 + hw/pxa.h

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

2011-04-25 Thread Dmitry Eremin-Solenikov
Switch dscm1 microdrive driver to use qdev infrastructure. --- hw/ide/microdrive.c | 49 +++-- hw/pcmcia.h |2 +- hw/spitz.c |5 - hw/tosa.c |5 - 4 files changed, 48 insertions(+), 13 deletions(-) di

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

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

[Qemu-devel] [RESEND][PATCH 1/9] pxa2xx_pcmcia: qdevify

2011-04-25 Thread Dmitry Eremin-Solenikov
Use qdev insfrastructure for managing PXA PCMCIA devices. PCMCIA bus itself isn't converted to QBus (yet). pxa2xx_pcmcia_init() function is moved to pcmcia.h as it will be used by other cores/devices (like StrongARM). Signed-off-by: Dmitry Eremin-Solenikov --- hw/mainstone.c |

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

2011-04-21 Thread Dmitry Eremin-Solenikov
Hello, On 4/11/11, Dmitry Eremin-Solenikov wrote: > Please pull the following changeset that makes PCMCIA subsystem to use > QBus and Qdev for managing devices. Currently the only implementation > of PCMCIA host is a PXA2xx host and the only possible PCMCIA device is > IDE MicroDriv

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

2011-04-21 Thread Dmitry Eremin-Solenikov
On 4/20/11, Aurelien Jarno wrote: > On Tue, Apr 19, 2011 at 06:56:45PM +0400, Dmitry Eremin-Solenikov wrote: >> Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. >> Implemented: >> - IRQs >> - GPIO >> - PPC >> - RTC >> - UART

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

2011-04-19 Thread Dmitry Eremin-Solenikov
* fixed new devices created with version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov --- Makefile.target |1 + hw/strongarm.c | 1600 +++ hw/strongarm.h | 64 ++ target-arm/cpu.h|3 + target-arm/helper.c |9 + 5

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

2011-04-19 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 --- Makefile.target |1 + hw/collie.c | 69

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

2011-04-19 Thread Dmitry Eremin-Solenikov
On 4/18/11, Aurelien Jarno wrote: > On Thu, Apr 14, 2011 at 10:18:02AM +0400, Dmitry Eremin-Solenikov wrote: >> Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. >> Implemented: >> - IRQs >> - GPIO >> - PPC >> - RTC >> - UART

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

2011-04-16 Thread Dmitry Eremin-Solenikov
Hi, What about this serie of patches? On 4/11/11, Dmitry Eremin-Solenikov wrote: > Please pull the following changeset that makes PCMCIA subsystem to use > QBus and Qdev for managing devices. Currently the only implementation > of PCMCIA host is a PXA2xx host and the only possible PCMC

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

2011-04-16 Thread Dmitry Eremin-Solenikov
Hello, What about this version of patches? On 4/14/11, Dmitry Eremin-Solenikov 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 > >

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

2011-04-13 Thread Dmitry Eremin-Solenikov
version_id = 1 Signed-off-by: Dmitry Eremin-Solenikov --- Makefile.target |1 + hw/strongarm.c | 1587 +++ hw/strongarm.h | 64 ++ target-arm/cpu.h|3 + target-arm/helper.c |9 + 5 files changed, 1664 insertions(+), 0

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

2011-04-13 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 --- Makefile.target |1 + hw/collie.c | 69

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

2011-04-12 Thread Dmitry Eremin-Solenikov
-off-by: Dmitry Eremin-Solenikov --- Makefile.target |1 + hw/strongarm.c | 1581 +++ hw/strongarm.h | 64 ++ target-arm/cpu.h|3 + target-arm/helper.c |9 + 5 files changed, 1658 insertions(+), 0 deletions(-) create

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

2011-04-12 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 --- Makefile.target |1 + hw/collie.c | 69

[Qemu-devel] [PATCH 0/2] StrongARM/Sharp Zaurus SL-5500 support

2011-04-12 Thread Dmitry Eremin-Solenikov
Hello, please review next try for my StrongARM patches. SA has been enhanced in the areas of RTC and UART drivers: I've added register bit names and used them instead of various magic bits/bitmasks. -- With best wishes Dmitry

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

2011-04-11 Thread Dmitry Eremin-Solenikov
Hi, On 4/10/11, Marek Vasut wrote: > On Monday 04 April 2011 15:38:44 Dmitry Eremin-Solenikov wrote: >> Currently target-arm/ assumes at least ARMv5 core. Add support for >> handling also ARMv4/ARMv4T. This changes the following instructions: >> >> BX(v4T and later)

[Qemu-devel] [PATCH 6/7] pxa: change order of pcmcia devices instantiation, so that the socket 0 will be default

2011-04-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov --- hw/pxa2xx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c index ef4c0a2..bcb42cf 100644 --- a/hw/pxa2xx.c +++ b/hw/pxa2xx.c @@ -,8 +,8 @@ PXA2xxState *pxa270_init(unsigned int sdram_size

[Qemu-devel] [PATCH 7/7] ide-core: allocate metadata storage for CFATA drives

2011-04-11 Thread Dmitry Eremin-Solenikov
Currently it's done by hw/ide/microdrive.c To simplify that part, move this initialization to ide core. Signed-off-by: Dmitry Eremin-Solenikov --- hw/ide/core.c |4 hw/ide/internal.h |2 ++ hw/ide/microdrive.c |6 +- 3 files changed, 7 insertions(+), 5 dele

[Qemu-devel] [PATCH 1/7] pxa2xx_pcmcia: qdevify

2011-04-11 Thread Dmitry Eremin-Solenikov
Use qdev insfrastructure for managing PXA PCMCIA devices. PCMCIA bus itself isn't converted to QBus (yet). pxa2xx_pcmcia_init() function is moved to pcmcia.h as it will be used by other cores/devices (like StrongARM). Signed-off-by: Dmitry Eremin-Solenikov --- hw/mainstone.c |

[Qemu-devel] [PATCH 4/7] pcmcia: move all card callbacks to PCMCIACardInfo

2011-04-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov last commit fixup Signed-off-by: Dmitry Eremin-Solenikov Revert "microdrive fixup" This reverts commit 6a9f969b0626e218ff910d84ed1c9eec285cbcd5. Signed-off-by: Dmitry Eremin-Solenikov --- hw/ide/microdriv

[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 --- Makefile.objs |3 ++ hw/pcmcia.c| 102 hw/pcmcia.h| 15 +++- hw

[Qemu-devel] [PATCH 3/7] microdrive: qdevify

2011-04-11 Thread Dmitry Eremin-Solenikov
Switch dscm1 microdrive driver to use qdev infrastructure. --- hw/ide/microdrive.c | 49 +++-- hw/pcmcia.h |2 +- hw/spitz.c |5 - hw/tosa.c |5 - 4 files changed, 48 insertions(+), 13 deletions(-) di

[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 --- hw/pcmcia.c| 45 +++- hw/pcmcia.h|2 + hw/pxa.h

[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 a

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 wrote: > On 4 April 2011 14:38, Dmitry Eremin-Solenikov 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 Eremin-So

[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 --- Makefile.target |1 + hw/collie.c | 69

[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 --- Makefile.target |1 + hw/strongarm.c | 1539

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

2011-04-04 Thread Dmitry Eremin-Solenikov
5TE, those two cases are simply aliased (for now). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmitry Eremin-Solenikov --- target-arm/cpu.h |4 ++- target-arm/helper.c| 29 +++

[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

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 wrote: > On 4 April 2011 13:15, Dmitry Eremin-Solenikov 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 in t

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

2011-04-04 Thread Dmitry Eremin-Solenikov
On 4/4/11, Peter Maydell wrote: > On 4 April 2011 13:31, Dmitry Eremin-Solenikov 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: error:

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

2011-04-04 Thread Dmitry Eremin-Solenikov
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: error: format ‘%lX’ expects type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ Signed-off-by: Dmitry Eremin-Solenikov --

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

2011-04-04 Thread Dmitry Eremin-Solenikov
5TE, those two cases are simply aliased (for now). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmitry Eremin-Solenikov --- target-arm/cpu.h |4 ++- target-arm/helper.c| 28 +++

[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 --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62 +++ target-arm

[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 --- Makefile.target |1 + hw/collie.c | 70

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 wrote: > On Sat, Apr 02, 2011 at 06:47:37PM +0400, Dmitry Eremin-Solenikov wrote: >> On 4/2/11, Isaku Yamahata wrote: >> >> Have you verified that all bus devices have been qdevified since this >> >> code has been added? I wouldn't

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 wrote: > On 3/30/11, Peter Maydell wrote: >> On 30 March 2011 12:41, Dmitry Eremin-Solenikov >> 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-02 Thread Dmitry Eremin-Solenikov
; because 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. >

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 wrote: > On 30 March 2011 12:41, Dmitry Eremin-Solenikov > wrote: >> @@ -7172,10 +7210,7 @@ static void disas_arm_insn(CPUState * env, >> DisasContext *s) >> } >> if (insn & (1 << 20)) {

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

2011-03-30 Thread Dmitry Eremin-Solenikov
5TE, those two cases are simply aliased (for now). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmitry Eremin-Solenikov --- target-arm/cpu.h |4 ++- target-arm/helper.c| 28 +++

[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 --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62 +++ target-arm

[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 --- Makefile.target |1 + hw/collie.c | 70

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

2011-03-29 Thread Dmitry Eremin-Solenikov
5TE, those two cases are simply aliased (for now). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmitry Eremin-Solenikov --- target-arm/cpu.h |4 +++- target-arm/helper.c| 23 +++

[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 --- Makefile.target |1 + hw/collie.c | 70

[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 --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62 +++ target-arm

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 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 instruction set is exactly t

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 wrote: > On 26 March 2011 17:23, Dmitry Eremin-Solenikov > 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 m

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 wrote: > On 24 March 2011 22:07, Dmitry Eremin-Solenikov > wrote: >> Currently target-arm/ assumes at least ARMv5 core. Add support for >> handling also ARMv4/ARMv4T. This changes the following instructions: > > Mostly looks good; comments belo

[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 --- Makefile.target |1 + hw/collie.c | 70

[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 --- Makefile.target |1 + hw/strongarm.c | 1301 +++ hw/strongarm.h | 62 +++ target-arm

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

2011-03-24 Thread Dmitry Eremin-Solenikov
7TDMI), because: * no ARM7TDMI chips are currently emulated (or planned) * those features aren't strictly necessary for my purposes (SA-1 core emulation). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmi

[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 wrote: > Dmitry Eremin-Solenikov wrote: >> Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. >> Implemented: >> - IRQs >> - GPIO >> - PPC >> - RTC >> - UARTs (no IrDA/etc.) >> - OST reused from

[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 --- Makefile.target |2 + hw/strongarm.c | 1302 +++ hw/strongarm.h | 62 +++ target-arm

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

2011-03-24 Thread Dmitry Eremin-Solenikov
7TDMI), because: * no ARM7TDMI chips are currently emulated (or planned) * those features aren't strictly necessary for my purposes (SA-1 core emulation). Patch is heavily based on patch by Filip Navara which in turn is based on work by Ulrich Hecht and Vincent Sanders . Signed-off-by: Dmi

[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 --- hw/collie.c | 70

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 wrote: > On 22 March 2011 14:53, Dmitry Eremin-Solenikov > 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 ARM_C

[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 --- Makefile.target |1 + hw/collie.c | 70

[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

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

2011-03-10 Thread Dmitry Eremin-Solenikov
t yet created, it cannot be set), so the check is just wrong. Signed-off-by: Dmitry Eremin-Solenikov --- 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 +++ b/hw/q

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

2011-03-10 Thread Dmitry Eremin-Solenikov
Hello, On 3/10/11, andrzej zaborowski wrote: > On 4 March 2011 01:48, Dmitry Eremin-Solenikov 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. >&g

[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 --- hw/mainstone.c |7 +++ hw/mst_fpga.c | 29 +++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/hw

[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 --- 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 mainstone_common_init

[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 --- vl.c | 104 +- 1 files changed

[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 --- 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 TC6393xbState

[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 --- hw/pxa2xx_pic.c | 37 +++-- 1 files changed, 19 insertions

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

2011-03-03 Thread Dmitry Eremin-Solenikov
vents to raise this irq. Signed-off-by: Dmitry Eremin-Solenikov --- 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 @@ -94,6

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 wrote: > Hi Dmitry, > > On 20 February 2011 14:50, Dmitry Eremin-Solenikov > 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 >> du

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

2011-02-20 Thread Dmitry Eremin-Solenikov
t yet created, it cannot be set), so the check is just wrong. Signed-off-by: Dmitry Eremin-Solenikov --- 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 +++ b/hw/q

[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 --- 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 --- a/hw/pxa.h +++ b/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 --- 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(-) diff --git a/hw

[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 --- hw/pxa2xx_timer.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/pxa2xx_timer.c b/hw

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

2011-02-20 Thread Dmitry Eremin-Solenikov
: Dmitry Eremin-Solenikov --- 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 const VMStateInfo

[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 --- 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 struct { int request

[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 --- hw/pxa.h |2 +- hw/pxa2xx.c |6 -- hw/pxa2xx_gpio.c | 14 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/hw/pxa.h

[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 --- 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 c2dede2..142f094

[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 --- hw/hw.h |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 5e24329..b47a7c8 100644

[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 --- hw/arm-misc.h |1 + hw/arm_pic.c |6 +- 2 files changed, 6 insertions(+), 1 deletions

[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 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] 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 --- hw/mst_fpga.c |4 ++-- 1

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 wrote: > On 12 February 2011 01:15, Dmitry Eremin-Solenikov > 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 pushe

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

2011-02-12 Thread Dmitry Eremin-Solenikov
On 2/4/11, Dmitry Eremin-Solenikov 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 What about these two patches?

[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 --- 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 index 18d1415

[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 --- hw/mainstone.c | 23 ++- hw/mainstone.h | 35 --- 2 files changed, 22 insertions(+), 36 deletions(-) delete

[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 --- hw/mst_fpga.c | 29 ++--- 1 files changed, 10 insertions(+), 19 deletions(-) diff --git a/hw/mst_fpga.c b/hw

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 wrote: > Hi Dmitry, > > On 31 January 2011 16:20, Dmitry Eremin-Solenikov > wrote: >> Signed-off-by: Dmitry Eremin-Solenikov >> --- >> hw/zaurus.c | 19 ++- >> 1 files changed, 18 insertions(+), 1 deletions(-)

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

2011-02-11 Thread Dmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov --- 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 tc6393xb_nand_writeb

[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 --- hw/i2c.h |5 - hw/max7310.c | 26

[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 --- 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 @@ -1262,10 +1262,12

  1   2   >