[Qemu-devel] [PATCH 1/4] hid: register kbd hander in init()

2011-08-07 Thread Michael Walle
Register the keyboard event handler in hid's init() instead of its reset() function. Signed-off-by: Michael Walle mich...@walle.cc --- hw/hid.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/hid.c b/hw/hid.c index 7b5ef5f..6934f05 100644 --- a/hw/hid.c +++ b/hw

[Qemu-devel] [PATCH 2/4] hid: introduce hid vmstate macros

2011-08-07 Thread Michael Walle
Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions. Signed-off-by: Michael Walle mich...@walle.cc --- hw/hid.c | 58 ++ hw/hw.h | 20 2 files changed, 78 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH 0/4] usb/hid: bugfixes, more on usb and hid split

2011-08-07 Thread Michael Walle
just skips old versions. Michael Walle (4): hid: register kbd hander in init() hid: introduce hid vmstate macros usb-hid: use hid vmstate macro milkymist-softusb: use hid code directly hw/hid.c | 63 - hw/hw.h| 20 hw

Re: [Qemu-devel] QEMU 0.15.0-rc2 delayed to 08/03/11

2011-08-03 Thread Michael Walle
I want -rc2 to be the final build so I'm delaying -rc3 until tomorrow so we can sort out how to handle this migration issue. Ok, one more try :) Anthony, could you please commit the following small patch to the 0.15 branch: http://lists.nongnu.org/archive/html/qemu-devel/2011-07/msg02183.html

[Qemu-devel] [0.15][PATCH] lm32: softusb: claim to support full speed

2011-08-01 Thread Michael Walle
Am Donnerstag 21 Juli 2011, 20:52:24 schrieb Michael Walle: The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we are supporting full speed devices. Signed-off-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH] lm32: softusb: claim to support full speed

2011-07-26 Thread Michael Walle
Hi Anthony, could you please apply this patch to the 0.15 (and master) branch. Am Donnerstag 21 Juli 2011, 20:52:24 schrieb Michael Walle: The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we

[Qemu-devel] [PATCH] lm32: softusb: claim to support full speed

2011-07-21 Thread Michael Walle
The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we are supporting full speed devices. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-softusb.c |6 -- 1 files changed, 4

Re: [Qemu-devel] [PATCH] target-lm32: Remove unused local variables

2011-05-09 Thread Michael Walle
check whether that is the correct solution. Cc: Michael Walle mich...@walle.cc Cc: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Stefan Weil w...@mail.berlios.de Leftovers from ecbe1de823 therefore: Acked-by: Michael Walle mich...@walle.cc --- target-lm32/translate.c |6

Re: [Qemu-devel] [PATCH 4/4] milkymist: use cpu_physical_memory_map_fast

2011-05-04 Thread Michael Walle
Am Dienstag 03 Mai 2011, 18:49:34 schrieb Paolo Bonzini: This patch adds proper unmapping of the memory when the addresses cross multiple memory blocks, and it also uses a single map_fast operation for the RMW access to the destination frame buffer. Cc: Michael Walle mich...@walle.cc Signed

Re: [Qemu-devel] [PATCH 0/4] lm32 and BSP fixes

2011-05-02 Thread Michael Walle
Am Mittwoch 13 April 2011, 00:29:32 schrieb Michael Walle: This patchset combines some lm32/bsp fixes and support for the new Milkymist minimac2 hardware. Ping :) -- Michael

Re: [Qemu-devel] [RFC][PATCH] configure: target dependent linking

2011-04-25 Thread Michael Walle
Am Montag 25 April 2011, 22:04:58 schrieb Aurelien Jarno: On Thu, Apr 14, 2011 at 11:14:58PM +0200, Michael Walle wrote: This patch is the first attempt to make configure more intelligent with regard to how it links to libraries. It divides the softmmu libraries into two lists, a general

[Qemu-devel] [PATCH 2/2] configure: reenable opengl by default

2011-04-25 Thread Michael Walle
Because the opengl library is only linked to for the lm32 target, we can now safely enable opengl by default again. Signed-off-by: Michael Walle mich...@walle.cc --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 9825b12..6c131dd

[Qemu-devel] [PATCH 1/2] configure: support target dependent linking

2011-04-25 Thread Michael Walle
This patch is the first attempt to make configure more intelligent with regard to how it links to libraries. It divides the softmmu libraries into two lists, a general one and a list which depends on the target architecture. Signed-off-by: Michael Walle mich...@walle.cc Reviewed-by: Aurelien

Re: [Qemu-devel] [PATCH]fix ambiguity in -d op_opt

2011-04-25 Thread Michael Walle
Am Montag 25 April 2011, 11:41:24 schrieb qemu_wanghuang: In Ful-system emulation, when we use -d op_opt,we can not find the pc of guestinstruction in logfile.However,we can get this in log by using command -d op. It is funny that when we use -d op,op_opt,we get pc in both op's log and

[Qemu-devel] [PATCH v2] configure: support target dependent linking

2011-04-25 Thread Michael Walle
changes v2 - add libfdt for microblaze targets

[Qemu-devel] [PATCH] configure: support target dependent linking

2011-04-25 Thread Michael Walle
This patch is the first attempt to make configure more intelligent with regard to how it links to libraries. It divides the softmmu libraries into two lists, a general one and a list which depends on the target architecture. Signed-off-by: Michael Walle mich...@walle.cc Reviewed-by: Aurelien

[Qemu-devel] [RFC][PATCH] configure: target dependent linking

2011-04-14 Thread Michael Walle
This patch is the first attempt to make configure more intelligent with regard to how it links to libraries. It divides the softmmu libraries into two lists, a general one and a list which depends on the target architecture. --- configure | 12 +--- 1 files changed, 9 insertions(+), 3

[Qemu-devel] [PATCH 4/4] lm32: add Milkymist Minimac2 support

2011-04-12 Thread Michael Walle
This patch adds support for Milkymist's minimal Ethernet MAC v2. It superseds minimac1. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |2 +- hw/milkymist-hw.h | 20 ++ hw/milkymist-minimac.c | 568 --- hw

[Qemu-devel] [PATCH 0/4] lm32 and BSP fixes

2011-04-12 Thread Michael Walle
This patchset combines some lm32/bsp fixes and support for the new Milkymist minimac2 hardware.

[Qemu-devel] [PATCH 1/4] lm32: fix exception handling

2011-04-12 Thread Michael Walle
Global interrupt enable bit is already saved within the exception handler helper routine. Thus remove extra code in translation routines. Additionally, debug exceptions has always DEBA as base address. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c|6

[Qemu-devel] [PATCH 2/4] milkymist-vgafb: fix console resizing

2011-04-12 Thread Michael Walle
After enabling the framebuffer, ensure that the console is resized. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-vgafb.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/milkymist-vgafb.c b/hw/milkymist-vgafb.c index 8922731..2e55e42 100644 --- a/hw

[Qemu-devel] [PATCH 3/4] milkymist-sysctl: fix timers

2011-04-12 Thread Michael Walle
Prevent timers from firing right after starting. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-sysctl.c | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/hw/milkymist-sysctl.c b/hw/milkymist-sysctl.c index eaea543..6bd0cb9 100644

[Qemu-devel] [PATCH] configure: disable opengl per default

2011-04-09 Thread Michael Walle
There is a bug in nvidia's binary GPU driver, which causes a segmentation fault if linked to libGL. Signed-off-by: Michael Walle mich...@walle.cc --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 2bb3faa..be40a31 100755

[Qemu-devel] Re: [regression] configure: add opengl detection

2011-04-08 Thread Michael Walle
Am Freitag 08 April 2011, 12:00:32 schrieb Edgar E. Iglesias: On Thu, Apr 07, 2011 at 11:35:47PM +0200, Michael Walle wrote: Am Mittwoch 06 April 2011, 16:13:58 schrieb Benjamin Poirier: Works as usual. The problem I'm facing stems from linking to libGL and memory protection issues

[Qemu-devel] Re: [regression] configure: add opengl detection

2011-04-07 Thread Michael Walle
Am Mittwoch 06 April 2011, 16:13:58 schrieb Benjamin Poirier: Works as usual. The problem I'm facing stems from linking to libGL and memory protection issues. The particular system I ran this on has the binary nvidia driver and its companion libGL.so.260.19.44. As such I'd take no offense if

[Qemu-devel] Re: [regression] configure: add opengl detection

2011-04-04 Thread Michael Walle
Hi Benjamin, Let me know if you need more info. what happens if you configure with ./configure --target-list=x86_64-softmmu --disable-opengl -- Michael

[Qemu-devel] Re: [PATCH 01/14] lm32: add Milkymist AC97 support

2011-03-16 Thread Michael Walle
Am Mittwoch 16 März 2011, 19:12:44 schrieb malc: diff --git a/hw/milkymist-ac97.c b/hw/milkymist-ac97.c new file mode 100644 index 000..6c9e318 --- /dev/null +++ b/hw/milkymist-ac97.c @@ -0,0 +1,335 @@ +/* + * QEMU model of the Milkymist System Controller. + * +

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-03-16 Thread Michael Walle
Am Freitag 11 März 2011, 06:57:18 schrieben Sie: On 17.02.2011, at 23:51, Michael Walle wrote: Am Samstag 12 Februar 2011, 07:49:52 schrieb Blue Swirl: That said, IMHO the best handling of unknown opcodes would be to kill the VM. In this case it should be OK. Alternatively the VM could

Re: [Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-03-13 Thread Michael Walle
Am Montag 07 März 2011, 14:20:09 schrieb Edgar E. Iglesias: Got a conflict on patch nr 16 though. Would be good if you could double check upstreams configure to verify I resolved it correctly... It's OK, thanks. -- Michael

[Qemu-devel] [PATCH] lm32: rename raise opcode to scall

2011-03-07 Thread Michael Walle
To be consistent with the new reference manual. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/lm32-decode.h |2 +- target-lm32/translate.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-lm32/lm32-decode.h b/target-lm32/lm32-decode.h index

[Qemu-devel] [PATCH] lm32: use lookup table for opcodes

2011-03-07 Thread Michael Walle
Instead of a for loop use a faster lookup table. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/lm32-decode.h | 78 --- target-lm32/translate.c | 80 ++-- 2 files changed, 18 insertions(+), 140

[Qemu-devel] [PATCH 00/14] lm32: Milkymist board support

2011-03-07 Thread Michael Walle
This is the second (and last) patchset of the LatticeMico32 support. It adds almost complete support for the opensource and openhardware Milkymist One board [1]. [1] http://www.milkymist.org/mmone.html

[Qemu-devel] [PATCH 01/14] lm32: add Milkymist AC97 support

2011-03-07 Thread Michael Walle
This patch adds support for the Milkymist AC97 compatible sound output and input core. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + configure |3 + hw/milkymist-ac97.c | 335 +++ trace-events

[Qemu-devel] [PATCH 06/14] lm32: add Milkymist SoftUSB support

2011-03-07 Thread Michael Walle
devices, eg. input events translates directly to the corresponding expected messages. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|1 + hw/milkymist-softusb.c | 357 trace-events |8 + 3 files changed, 366

[Qemu-devel] [PATCH 02/14] lm32: add Milkymist HPDMC support

2011-03-07 Thread Michael Walle
and always returns the expected hardware states, eg. PLL locked etc. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/milkymist-hpdmc.c | 161 ++ trace-events |4 + 3 files changed, 166 insertions(+), 0

[Qemu-devel] [PATCH 10/14] lm32: add Milkymist UART support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's simple UART. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/milkymist-uart.c | 180 +++ trace-events|6 ++ 3 files changed, 187 insertions(+), 0 deletions

[Qemu-devel] [PATCH 04/14] lm32: add Milkymist Minimac support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's minimal Ethernet MAC. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|1 + hw/milkymist-minimac.c | 568 trace-events | 12 + 3 files changed, 581 insertions(+), 0

[Qemu-devel] [PATCH 11/14] lm32: add Milkymist VGAFB support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's VGA framebuffer. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |2 + hw/milkymist-vgafb.c | 318 + hw/milkymist-vgafb_template.h | 74 ++ trace-events

[Qemu-devel] [PATCH 13/14] lm32: add support for the Milkymist board

2011-03-07 Thread Michael Walle
This patch adds almost complete support for the Milkymist system-on-chip (http://www.milkymist.org). Additional to running bare metal applications, booting a linux kernel with initrd is supported. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1

[Qemu-devel] [PATCH 03/14] lm32: add Milkymist memory card support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's memory card core. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + default-configs/lm32-softmmu.mak |1 + hw/milkymist-memcard.c | 294 ++ trace-events

[Qemu-devel] [PATCH 12/14] lm32: add milkymist hw support functions

2011-03-07 Thread Michael Walle
This patch adds wrappers for easy creation of the qdev devices. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-hw.h | 204 + 1 files changed, 204 insertions(+), 0 deletions(-) create mode 100644 hw/milkymist-hw.h diff --git

[Qemu-devel] [PATCH 14/14] MAINTAINERS: add Milkymist board

2011-03-07 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9f3ff0e..e6f853d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -214,6 +214,11 @@ M: Michael Walle mich...@walle.cc S

[Qemu-devel] [PATCH 08/14] configure: add opengl detection

2011-03-07 Thread Michael Walle
This patch introduce a new config option CONFIG_OPENGL. Signed-off-by: Michael Walle mich...@walle.cc --- configure | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/configure b/configure index e75e1a2..fe8791d 100755 --- a/configure +++ b

[Qemu-devel] [PATCH 07/14] lm32: add Milkymist System Controller support

2011-03-07 Thread Michael Walle
System Controller. + * + * Copyright (c) 2010 Michael Walle mich...@walle.cc + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License

[Qemu-devel] [PATCH 05/14] lm32: add Milkymist PFPU support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's Programmable FPU. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/milkymist-pfpu.c | 536 +++ trace-events|6 + 3 files changed, 543 insertions(+), 0 deletions

[Qemu-devel] [PATCH 09/14] lm32: add Milkymist TMU2 support

2011-03-07 Thread Michael Walle
This patch adds support for Milkymist's texture mapping unit. For fast computation this model needs hardware accelerated 3D graphics support (OpenGL). There is no graphical output, all computations belong to internal framebuffers only. Signed-off-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-03-06 Thread Michael Walle
Am Dienstag 01 März 2011, 22:31:58 schrieb Edgar E. Iglesias: On Fri, Feb 25, 2011 at 12:03:37AM +0100, Michael Walle wrote: Am Donnerstag 17 Februar 2011, 23:45:01 schrieb Michael Walle: This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor

Re: [Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-02-24 Thread Michael Walle
Am Donnerstag 17 Februar 2011, 23:45:01 schrieb Michael Walle: This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Changes since v2: - lots of CODING_STYLE fixes - reworked pic and juart model, CPUState is not passed anymore - use qdev reset

[Qemu-devel] [PATCH 14/17] lm32: todo and documentation

2011-02-17 Thread Michael Walle
This patch adds general target documentation and a todo list. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/README | 46 ++ target-lm32/TODO |3 +++ 2 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 target

[Qemu-devel] [PATCH 08/17] lm32: pic and juart helper functions

2011-02-17 Thread Michael Walle
This patch adds init functions for the PIC and JTAG UART commonly used in the board initialization. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32.h | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 hw/lm32.h diff --git a/hw/lm32

[Qemu-devel] [PATCH 04/17] lm32: machine state loading/saving

2011-02-17 Thread Michael Walle
This patch adds support for saving and loading the processor state. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/machine.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 target-lm32/machine.c diff --git a/target

[Qemu-devel] [PATCH 09/17] lm32: timer model

2011-02-17 Thread Michael Walle
This patch adds support for the LatticeMico32 system timer. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_timer.c | 222 +++ trace-events|6 ++ 3 files changed, 229 insertions(+), 0 deletions

[Qemu-devel] [PATCH 12/17] lm32: support for creating device tree

2011-02-17 Thread Michael Walle
This patch adds helper functions to create a ROM, which contains a hardware description of a board. This is used in Theobromas LM32 Linux port. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_hwsetup.h | 178 + 1 files changed, 178

[Qemu-devel] [PATCH 16/17] Add lm32 target to configure

2011-02-17 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index a3f5345..a9f6992 100755 --- a/configure +++ b/configure @@ -280,7 +280,7 @@ else fi case $cpu in - alpha|cris|ia64|m68k

[Qemu-devel] [PATCH 00/17 v3] LatticeMico32 target

2011-02-17 Thread Michael Walle
This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Changes since v2: - lots of CODING_STYLE fixes - reworked pic and juart model, CPUState is not passed anymore - use qdev reset field instead of qemu_register_reset() - add missing include guards -

[Qemu-devel] [PATCH 17/17] MAINTAINERS: add LatticeMico32 maintainer

2011-02-17 Thread Michael Walle
Add me as the lm32-target and machines maintainer. Signed-off-by: Michael Walle mich...@walle.cc --- MAINTAINERS | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ab48380..9f3ff0e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-17 Thread Michael Walle
This patch adds the main translation routine. All opcodes of the LatticeMico32 processor are supported and translated to TCG ops. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c | 259 + target-lm32/lm32-decode.h | 78 +++ target-lm32/translate.c | 1317

[Qemu-devel] [PATCH 01/17] LatticeMico32 target support

2011-02-17 Thread Michael Walle
This patch adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|2 + arch_init.c|2 + arch_init.h| 13 ++-- cpu-exec.c | 13 +++- elf.h |1

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-17 Thread Michael Walle
Am Samstag 12 Februar 2011, 07:49:52 schrieb Blue Swirl: That said, IMHO the best handling of unknown opcodes would be to kill the VM. In this case it should be OK. Alternatively the VM could be halted, so that instead of restarting QEMU, only system_reset needs to be issued. This may be

[Qemu-devel] [PATCH 03/17] lm32: translation code helper

2011-02-17 Thread Michael Walle
This patch adds translation helper functions. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.h| 14 ++ target-lm32/op_helper.c | 106 +++ 2 files changed, 120 insertions(+), 0 deletions(-) create mode 100644 target

[Qemu-devel] [PATCH 05/17] lm32: gdbstub support

2011-02-17 Thread Michael Walle
This patch adds lm32 support to the gdbstub. Signed-off-by: Michael Walle mich...@walle.cc --- gdbstub.c | 76 + 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index ed51a8a..1e9f931 100644

[Qemu-devel] [PATCH 15/17] lm32: opcode testsuite

2011-02-17 Thread Michael Walle
This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle mich...@walle.cc --- tests/Makefile|4 ++ tests/lm32/Makefile | 102 + tests/lm32/crt.S | 84

[Qemu-devel] [PATCH 10/17] lm32: uart model

2011-02-17 Thread Michael Walle
This patch add support for the LatticeMico32 UART. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_uart.c | 288 +++ trace-events|5 + 3 files changed, 294 insertions(+), 0 deletions(-) create mode

[Qemu-devel] [PATCH 13/17] lm32: EVR32 and uclinux BSP

2011-02-17 Thread Michael Walle
This patch adds support for the following two BSPs: - LM32 EVR32 BSP (as used by RTEMS) - uclinux BSP by Theobroma Systems Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |3 + default-configs/lm32-softmmu.mak |4 + hw/lm32_boards.c

[Qemu-devel] [PATCH 06/17] lm32: interrupt controller model

2011-02-17 Thread Michael Walle
This patch adds the interrupt controller of the lm32. Because the PIC is accessed through special control registers and opcodes, there are callbacks from the lm32 translation code to this model. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_pic.c | 190

[Qemu-devel] [PATCH 11/17] lm32: system control model

2011-02-17 Thread Michael Walle
. Instead a user has to add it explicitly with the '-device' commandline parameter. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_sys.c | 161 +++ trace-events|3 + 3 files changed, 165 insertions

[Qemu-devel] [PATCH 07/17] lm32: juart model

2011-02-17 Thread Michael Walle
This patch adds the JTAG UART model. It is accessed through special control registers and opcodes. Therefore the translation uses callbacks to this model. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_juart.c | 150

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-12 Thread Michael Walle
Am Freitag 11 Februar 2011, 22:42:28 schrieb Blue Swirl: +/* Convenient binary macros */ +#define HEX__(n) 0x##n##LU +#define B8__(x) (((x0x000FLU) ? 1 : 0) \ + + ((x0x00F0LU) ? 2 : 0) \ + + ((x0x0F00LU) ? 4 : 0) \ + +

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-11 Thread Michael Walle
Hi, Regarding all the comments on raising an exception. The real hardware does only support a few basic exception (like div by zero or interrupts and system calls). There is no checking if an instruction is supported or not. If an illegal opcode (like divu if the hardware divider is not

Re: [Qemu-devel] [PATCH 09/17] lm32: timer model

2011-02-11 Thread Michael Walle
Am Freitag 11 Februar 2011, 22:22:32 schrieb Blue Swirl: +static uint32_t timer_read(void *opaque, target_phys_addr_t addr) +{ +LM32TimerState *s = opaque; +uint32_t r = 0; + +addr = 2; +switch (addr) { +case R_SR: +case R_CR: +case R_PERIOD: +

Re: [Qemu-devel] [PATCH 11/17] lm32: system control model

2011-02-11 Thread Michael Walle
Am Freitag 11 Februar 2011, 22:03:40 schrieb Blue Swirl: +static int lm32_sys_init(SysBusDevice *dev) +{ +LM32SysState *s = FROM_SYSBUS(typeof(*s), dev); +int sys_regs; + +sys_regs = cpu_register_io_memory(sys_read_fn, sys_write_fn, s, +DEVICE_NATIVE_ENDIAN);

Re: [Qemu-devel] [PATCH 12/17] lm32: support for creating device tree

2011-02-11 Thread Michael Walle
Am Freitag 11 Februar 2011, 21:52:17 schrieb Blue Swirl: +static inline void hwsetup_add_uart(struct hwsetup *hw, +const char *name, uint32_t base, uint32_t irq) +{ +hwsetup_add_u32(hw, 56); /* size */ +hwsetup_add_tag(hw, HWSETUP_TAG_UART); +hwsetup_add_str(hw,

Re: [Qemu-devel] [PATCH 14/17] lm32: todo and documentation

2011-02-11 Thread Michael Walle
Am Freitag 11 Februar 2011, 21:41:14 schrieb Blue Swirl: +Special instructions + +The translation recognizes one special instruction to halt the cpu: + and r0, r0, r0 +On real hardware this instruction is a nop. It is not used by GCC and +should (hopefully) not be

[Qemu-devel] [PATCH 05/17] lm32: gdbstub support

2011-02-10 Thread Michael Walle
This patch adds lm32 support to the gdbstub. Signed-off-by: Michael Walle mich...@walle.cc --- gdbstub.c | 76 + 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index d6556c9..a4b37b7 100644

[Qemu-devel] [PATCH 00/17 v2] LatticeMico32 target

2011-02-10 Thread Michael Walle
This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Changes since v1: - removed variables which are no longer in use - replaced some tcg ops with specialized ones - kill VM in case of an unknown opcode - fixed tracepoints format strings to match

[Qemu-devel] [PATCH 13/17] lm32: EVR32 and uclinux BSP

2011-02-10 Thread Michael Walle
This patch adds support for the following two BSPs: - LM32 EVR32 BSP (as used by RTEMS) - uclinux BSP by Theobroma Systems Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |3 + default-configs/lm32-softmmu.mak |4 + hw/lm32_boards.c

[Qemu-devel] [PATCH 14/17] lm32: todo and documentation

2011-02-10 Thread Michael Walle
This patch adds general target documentation and a todo list. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/README | 46 ++ target-lm32/TODO |3 +++ 2 files changed, 49 insertions(+), 0 deletions(-) create mode 100644 target

[Qemu-devel] [PATCH 04/17] lm32: machine state loading/saving

2011-02-10 Thread Michael Walle
This patch adds support for saving and loading the processor state. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/machine.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 target-lm32/machine.c diff --git a/target

[Qemu-devel] [PATCH 12/17] lm32: support for creating device tree

2011-02-10 Thread Michael Walle
This patch adds helper functions to create a ROM, which contains a hardware description of a board. This is used in Theobromas LM32 Linux port. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_hwsetup.h | 172 + 1 files changed, 172

[Qemu-devel] [PATCH 08/17] lm32: pic and juart helper functions

2011-02-10 Thread Michael Walle
This patch adds init functions for the PIC and JTAG UART commonly used in the board initialization. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 hw/lm32.h diff --git a/hw

[Qemu-devel] [PATCH 01/17] LatticeMico32 target support

2011-02-10 Thread Michael Walle
This patch adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|5 + arch_init.c|2 + arch_init.h| 13 ++-- cpu-exec.c | 13 +++- elf.h |1

[Qemu-devel] [PATCH 11/17] lm32: system control model

2011-02-10 Thread Michael Walle
. Instead a user has to add it explicitly with the '-device' commandline parameter. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_sys.c | 156 +++ trace-events|3 + 3 files changed, 160 insertions

[Qemu-devel] [PATCH 15/17] lm32: opcode testsuite

2011-02-10 Thread Michael Walle
This patch creates tests/lm32 directory and adds tests for every LatticeMico32 opcode. Signed-off-by: Michael Walle mich...@walle.cc --- tests/Makefile|4 ++ tests/lm32/Makefile | 102 + tests/lm32/crt.S | 84

[Qemu-devel] [PATCH 16/17] Add lm32 target to configure

2011-02-10 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 598e8e1..8ba7182 100755 --- a/configure +++ b/configure @@ -280,7 +280,7 @@ else fi case $cpu in - alpha|cris|ia64|m68k

[Qemu-devel] [PATCH 10/17] lm32: uart model

2011-02-10 Thread Michael Walle
This patch add support for the LatticeMico32 UART. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_uart.c | 292 +++ trace-events|5 + 3 files changed, 298 insertions(+), 0 deletions(-) create mode

[Qemu-devel] [PATCH 07/17] lm32: juart model

2011-02-10 Thread Michael Walle
This patch adds the JTAG UART model. It is accessed through special control registers and opcodes. Therefore the translation uses callbacks to this model. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_juart.c | 151 +++ hw

[Qemu-devel] [PATCH 17/17] MAINTAINERS: add LatticeMico32 maintainer

2011-02-10 Thread Michael Walle
Add me as the lm32-target and machines maintainer. Signed-off-by: Michael Walle mich...@walle.cc --- MAINTAINERS | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index ab48380..9f3ff0e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[Qemu-devel] [PATCH 06/17] lm32: interrupt controller model

2011-02-10 Thread Michael Walle
This patch adds the interrupt controller of the lm32. Because the PIC is accessed through special control registers and opcodes, there are callbacks from the lm32 translation code to this model. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_pic.c | 191

[Qemu-devel] [PATCH 03/17] lm32: translation code helper

2011-02-10 Thread Michael Walle
This patch adds translation helper functions. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.h| 14 ++ target-lm32/op_helper.c | 106 +++ 2 files changed, 120 insertions(+), 0 deletions(-) create mode 100644 target

[Qemu-devel] [PATCH 09/17] lm32: timer model

2011-02-10 Thread Michael Walle
This patch adds support for the LatticeMico32 system timer. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_timer.c | 227 +++ trace-events|6 ++ 3 files changed, 234 insertions(+), 0 deletions

[Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-10 Thread Michael Walle
This patch adds the main translation routine. All opcodes of the LatticeMico32 processor are supported and translated to TCG ops. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c | 259 + target-lm32/lm32-decode.h | 78 +++ target-lm32/translate.c | 1315

Re: [Qemu-devel] [PATCH 02/17] lm32: translation routines

2011-02-08 Thread Michael Walle
Am Dienstag 08 Februar 2011, 18:32:57 schrieb Richard Henderson: On 01/30/2011 04:30 PM, Michael Walle wrote: +if (dc-format == OP_FMT_RI) { +tcg_gen_brcondi_tl(cond, cpu_R[rY], sign_extend(dc-imm16, 16), l1); +} else { +tcg_gen_brcond_tl(cond, cpu_R[rY], cpu_R[rZ

[Qemu-devel] Re: [PATCH 02/17] lm32: translation routines

2011-02-07 Thread Michael Walle
Hi Edgar. first of all let me thank you for the review. On Mon, Feb 07 2011, 19:41:25, Edgar E. Iglesias wrote: +#define JMP_NOJMP0 +#define JMP_DIRECT 1 +#define JMP_INDIRECT 2 These don't seem to be used, can we remove them? Good catch :) I'll remove them. + +/* This is the

[Qemu-devel] Re: [PATCH 02/17] lm32: translation routines

2011-02-07 Thread Michael Walle
On Mon, Feb 07 2011, 23:20:33, Edgar E. Iglesias wrote: Yes, I found the nop tracking handy too but It exposes a way for guests to completely abort the vm with valid code. On microblaze, even guest userspace can trig the cpu_abort. Your port doesn't have an MMU so guest userland can probably

[Qemu-devel] [PATCH 00/17] LatticeMico32 target

2011-01-30 Thread Michael Walle
This patchset adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. This is the first part of a larger patchset. It adds target support and two simple BSPs. The second part will add support for the milkymist hardware platform.

[Qemu-devel] [PATCH 03/17] lm32: translation code helper

2011-01-30 Thread Michael Walle
This patch adds translation helper functions. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.h| 14 ++ target-lm32/op_helper.c | 106 +++ 2 files changed, 120 insertions(+), 0 deletions(-) create mode 100644 target

[Qemu-devel] [PATCH 05/17] lm32: gdbstub support

2011-01-30 Thread Michael Walle
This patch adds lm32 support to the gdbstub. Signed-off-by: Michael Walle mich...@walle.cc --- gdbstub.c | 76 + 1 files changed, 76 insertions(+), 0 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index d6556c9..a4b37b7 100644

[Qemu-devel] [PATCH 01/17] LatticeMico32 target support

2011-01-30 Thread Michael Walle
This patch adds support for the LatticeMico32 softcore processor by Lattice Semiconductor. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target|5 + arch_init.c|2 + arch_init.h| 13 ++-- cpu-exec.c | 13 +++- elf.h |1

[Qemu-devel] [PATCH 04/17] lm32: machine state loading/saving

2011-01-30 Thread Michael Walle
This patch adds support for saving and loading the processor state. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/machine.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) create mode 100644 target-lm32/machine.c diff --git a/target

[Qemu-devel] [PATCH 09/17] lm32: timer model

2011-01-30 Thread Michael Walle
This patch adds support for the LatticeMico32 system timer. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.target |1 + hw/lm32_timer.c | 227 +++ trace-events|6 ++ 3 files changed, 234 insertions(+), 0 deletions

<    1   2   3   4   5   >