[Qemu-devel] [PULL 07/11] target-lm32: kill cpu_abort() calls

2013-09-25 Thread Michael Walle
: Andreas Färber afaer...@suse.de Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/translate.c | 72 ++- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 9605494..1d94d52

[Qemu-devel] [RFC PATCH] target-lm32: stop VM on illegal or unknown instruction

2013-09-25 Thread Michael Walle
Instead of translating the instruction to a no-op, pause the VM and display a message to the user. As a side effect, this also works for instructions where the operands are only known at runtime. Signed-off-by: Michael Walle mich...@walle.cc I have some doubt about the implementation

[Qemu-devel] [PULL 01/11] lm32_sys: increase test case name length limit

2013-09-25 Thread Michael Walle
The new MMU tests use longer names. Signed-off-by: Michael Walle mich...@walle.cc --- hw/misc/lm32_sys.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c index 9bdb781..8176cdb 100644 --- a/hw/misc/lm32_sys.c +++ b/hw/misc

[Qemu-devel] [PULL 05/11] target-lm32: register helper functions

2013-09-25 Thread Michael Walle
This has been forgotton in the initial commit. Fix it. Reported-by: Richard Henderson r...@twiddle.net Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/translate.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index

[Qemu-devel] [PULL 02/11] tests: lm32: new rule for single test cases

2013-09-25 Thread Michael Walle
Introduce new target check_% to run indiviudal test caes, eg. make check_mmu Signed-off-by: Michael Walle mich...@walle.cc --- tests/tcg/lm32/Makefile |3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tcg/lm32/Makefile b/tests/tcg/lm32/Makefile index 9a00ef7..19e0664 100644

[Qemu-devel] Stopping the VM due to an illegal instruction [was: QOM CPUState, part 13: Emptying CPU_COMMON]

2013-09-20 Thread Michael Walle
Hi, Am 2013-09-17 20:46, schrieb Richard Henderson: On 09/17/2013 10:46 AM, Michael Walle wrote: Am Montag, 9. September 2013, 18:47:21 schrieb Peter Maydell: For lm32 you might consider raising EXCP_BREAKPOINT; then if you have a gdb connected to the debug stub the developer will get

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

2013-09-17 Thread Michael Walle
it to qemu_chr_fe_write_all() to fix. Reported-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Acked-by Peter Crosthwaite peter.crosthwa...@xilinx.com Signed-off-by: Antony Pavlov antonynpav...@gmail.com CC: Peter Crosthwaite peter.crosthwa...@xilinx.com CC: Michael Walle mich...@walle.cc CC: Andreas

Re: [Qemu-devel] [RFC qom-cpu 00/41] QOM CPUState, part 13: Emptying CPU_COMMON

2013-09-17 Thread Michael Walle
Am Montag, 9. September 2013, 18:47:21 schrieb Peter Maydell: On 9 September 2013 17:39, Michael Walle mich...@walle.cc wrote: Am 2013-09-04 11:04, schrieb Andreas Färber: On part 11, rth said for alpha that using CPUAlphaState in DisasContext was bad and that the relevant fields should

Re: [Qemu-devel] [RFC qom-cpu 00/41] QOM CPUState, part 13: Emptying CPU_COMMON

2013-09-17 Thread Michael Walle
Hi Andreas, Am Mittwoch, 4. September 2013, 11:04:40 schrieb Andreas Färber: On part 11, rth said for alpha that using CPUAlphaState in DisasContext was bad and that the relevant fields should be copied into DisasContext instead; a few targets still have an env field though and use it for

Re: [Qemu-devel] [RFC qom-cpu 00/41] QOM CPUState, part 13: Emptying CPU_COMMON

2013-09-09 Thread Michael Walle
Hi, Am 2013-09-04 11:04, schrieb Andreas Färber: On part 11, rth said for alpha that using CPUAlphaState in DisasContext was bad and that the relevant fields should be copied into DisasContext instead; a few targets still have an env field though and use it for register access and

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

2013-09-02 Thread Michael Walle
-by: Antony Pavlov antonynpav...@gmail.com CC: Peter Crosthwaite peter.crosthwa...@xilinx.com CC: Michael Walle mich...@walle.cc CC: Andreas Färber afaer...@suse.de --- hw/char/milkymist-uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/char/milkymist-uart.c b/hw

Re: [Qemu-devel] [PATCH for-1.6? v2 14/21] milkymist: Suppress -kernel/-bios/-drive error for qtest

2013-08-06 Thread Michael Walle
Am 2013-08-05 15:27, schrieb Andreas Färber: Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Michael Walle mich...@walle.cc --- hw/lm32/milkymist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/lm32/milkymist.c b/hw/lm32/milkymist.c index 7ceedb8..a8e7230

Re: [Qemu-devel] [PATCH qom-cpu 2/5] target-lm32: gen_intermediate_code_internal() should be inline

2013-07-02 Thread Michael Walle
; uint16_t *gen_opc_end; Acked-by: Michael Walle mich...@walle.cc -- michael

Re: [Qemu-devel] [PATCH RFC qom-cpu 00/41] QOM CPUState, part 11: GDB stub

2013-06-30 Thread Michael Walle
be interest in adding a program-counter dynamic property to the CPU, given that a setter has been factored out here? Available for testing at: git://github.com/afaerber/qemu-cpu.git qom-cpu-11.v1 https://github.com/afaerber/qemu-cpu/commits/qom-cpu-11.v1 For all lm32 parts: Acked-by: Michael Walle mich

Re: [Qemu-devel] [PATCH v3 4/5] milkymist-softusb: Don't map RAM memory regions in the device itself

2013-03-28 Thread Michael Walle
-by: Andreas Färber afaer...@suse.de Acked-by: Michael Walle mich...@walle.cc Breaks the build: [aliguori@ccnode4 qemu]$ make CClm32-softmmu/hw/lm32/../milkymist-softusb.o /home/aliguori/git/qemu/hw/lm32/../milkymist-softusb.c: In function ‘softusb_mouse_hid_datain’: /home/aliguori/git/qemu

Re: [Qemu-devel] [PATCH v3 4/5] milkymist-softusb: Don't map RAM memory regions in the device itself

2013-03-28 Thread Michael Walle
Am Donnerstag 28 März 2013, 19:33:48 schrieb Peter Maydell: On 28 March 2013 18:31, Michael Walle mich...@walle.cc wrote: Am Donnerstag 28 März 2013, 18:55:59 schrieb Anthony Liguori:cc Breaks the build: [aliguori@ccnode4 qemu]$ make CClm32-softmmu/hw/lm32/../milkymist

Re: [Qemu-devel] [PATCH] hw/milkymist-softusb: set buffer in softusb_read_{dmem, pmem} error path

2013-03-28 Thread Michael Walle
) { error_report(milkymist_softusb: read pmem out of bounds at offset 0x%x, len %d, offset, len); +memset(buf, 0, len); return; } Acked-By: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH 2/3] hw/sd.c: fix migration of dynamically allocated buffer buf

2013-03-18 Thread Michael Walle
-by: Michael Walle mich...@walle.cc -- michael

[Qemu-devel] [PULL 00/12] target-lm32 queue

2013-03-18 Thread Michael Walle
at: git://github.com/mwalle/qemu.git for-upstream Michael Walle (12): target-lm32: fix debug memory access lm32-dis: fix NULL pointer dereference milkymist-uart: fix receive buffering lm32_uart: fix receive buffering target-lm32: don't log cpu state in translation

Re: [Qemu-devel] [PATCH 28/28] hw/sd.c: add SD card save/load support

2013-03-06 Thread Michael Walle
Hi all, Sorry for digging out such an old thread :) but this patch introduced a memory corruption, see below. Am Dienstag 30 Oktober 2012, 09:44:24 schrieb Peter Maydell: From: Igor Mitsyanko i.mitsya...@gmail.com This patch updates SD card model to support save/load of card's state.

[Qemu-devel] [PATCH 03/12] milkymist-uart: fix receive buffering

2013-03-06 Thread Michael Walle
Inform qemu-char when more input data can be received. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-uart.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c index e73eb84..29572b7 100644 --- a/hw/milkymist-uart.c

[Qemu-devel] [PATCH 02/12] lm32-dis: fix NULL pointer dereference

2013-03-06 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- disas/lm32.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disas/lm32.c b/disas/lm32.c index a8eefe0..1718c86 100644 --- a/disas/lm32.c +++ b/disas/lm32.c @@ -303,11 +303,11 @@ int print_insn_lm32(bfd_vma memaddr

[Qemu-devel] [PATCH 00/12] target-lm32: various fixes

2013-03-06 Thread Michael Walle
This patchset contains various minor fixes and cleanups for the LatticeMico32 target and its supported hardware models. Patch 11 and 12 were already posted on this list, but never picked up. If there are no objections, i'll send a pull request next week. Michael Walle (12): target-lm32: fix

[Qemu-devel] [PATCH 04/12] lm32_uart: fix receive buffering

2013-03-06 Thread Michael Walle
Inform qemu-char when more input data can be received. Signed-off-by: Michael Walle mich...@walle.cc --- hw/lm32_uart.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/lm32_uart.c b/hw/lm32_uart.c index 9c89cca..5b44f7f 100644 --- a/hw/lm32_uart.c +++ b/hw/lm32_uart.c

[Qemu-devel] [PATCH 01/12] target-lm32: fix debug memory access

2013-03-06 Thread Michael Walle
CPU models which have the LM32_FLAG_IGNORE_MSB flag set will shadow the lower 2GB to the upper 2GB memory space. This will fix the debug memory access used by qemu console and GDB to match this behaviour. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c |7 ++- 1

[Qemu-devel] [PATCH 08/12] target-lm32: remove dead code

2013-03-06 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/cpu.h | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h index 6948d0e..03db008 100644 --- a/target-lm32/cpu.h +++ b/target-lm32/cpu.h @@ -232,18 +232,8 @@ static

[Qemu-devel] [PATCH 06/12] tests: tcg: lm32: add more test cases

2013-03-06 Thread Michael Walle
Esp. for testing zero/sign extend in compare operations. Signed-off-by: Michael Walle mich...@walle.cc --- tests/tcg/lm32/test_cmpgei.S | 15 +++ tests/tcg/lm32/test_cmpgeui.S | 15 +++ tests/tcg/lm32/test_cmpgi.S | 15 +++ tests/tcg/lm32

[Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe

2013-03-06 Thread Michael Walle
Probe for GL and GLX symbols and X11 library. This fixes a build error where the header files are available but the libraries are not. Signed-off-by: Michael Walle mich...@walle.cc --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure

[Qemu-devel] [PATCH 05/12] target-lm32: don't log cpu state in translation

2013-03-06 Thread Michael Walle
Don't dump the cpu state because it can also be enabled by the -d cpu parameter. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/translate.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 695d9c5

[Qemu-devel] [PATCH 12/12] configure: rename OpenGL feature to GLX

2013-03-06 Thread Michael Walle
As the probe now actually checks for the availability of GLX, rename it accordingly. The only user of this feature is the milkymist-tmu2 model. Signed-off-by: Michael Walle mich...@walle.cc --- configure | 30 +++--- hw/lm32/Makefile.objs |2 +- hw

[Qemu-devel] [PATCH 07/12] target-lm32: fix cmpgui and cmpgeui opcodes

2013-03-06 Thread Michael Walle
For unsigned compares the immediate has to be zero extended. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/translate.c | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index f51ffc5

[Qemu-devel] [PATCH 10/12] target-lm32: use HELPER() macro

2013-03-06 Thread Michael Walle
Instead of hardcoding the function name, use the HELPER() macro for this. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/op_helper.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/target-lm32/op_helper.c b/target-lm32/op_helper.c

[Qemu-devel] [PATCH 09/12] target-lm32: flush tlb after clearing env

2013-03-06 Thread Michael Walle
The tlb data is stored within the CPU env. Therefore, the initialization has to be done after we clear the environment. Otherwise the tlb will have a valid entry for address 0x0. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/cpu.c |4 ++-- 1 files changed, 2 insertions(+), 2

Re: [Qemu-devel] [PATCH qom-cpu v3 6/6] target-lm32: Update VMStateDescription to LM32CPU

2013-03-05 Thread Michael Walle
Am Montag 25 Februar 2013, 19:22:50 schrieb Andreas Färber: Add a vmstate_lm32_cpu referencing the previous VMStateDescription as a sub-struct and hook it up to CPUClass::vmsd. Drop cpu_{save,load}(). Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH] lm32: remove unused function

2013-03-04 Thread Michael Walle
On Mon, March 4, 2013 18:11, Paolo Bonzini wrote: The milkymist-minimac device in fact does not exist at all. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Acked-by: Michael Walle mich...@walle.cc --- hw/milkymist-hw.h | 16 1 file changed, 16 deletions(-) diff

Re: [Qemu-devel] [PATCH 3/5] milkymist-minimac2: Just expose buffers as a sysbus mmio region

2013-02-17 Thread Michael Walle
in the device's own init function. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Michael Walle mich...@walle.cc --- hw/milkymist-hw.h |2 +- hw/milkymist-minimac2.c |5 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hw/milkymist-hw.h b/hw

Re: [Qemu-devel] [PATCH 4/5] milkymist-softusb: Don't map RAM memory regions in the device itself

2013-02-17 Thread Michael Walle
properties. Instead of going via cpu_physical_memory_read/_write when the device wants to access the RAMs, we just keep a host pointer to the memory and use that. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Michael Walle mich...@walle.cc --- hw/milkymist-hw.h

Re: [Qemu-devel] test images for musicpal and milkymist?

2013-02-14 Thread Michael Walle
Am Donnerstag 14 Februar 2013, 17:48:09 schrieb Peter Maydell: Hi; I'm looking for test images (and command lines) for the musicpal and milkymist targets, because I have a patchset which makes some changes to them [I'm trying to get rid of sysbus_add_memory()]. Does anybody have any to hand?

Re: [Qemu-devel] [PATCH] qemu-log: Remove qemu_log_try_set_file() and its users

2013-02-12 Thread Michael Walle
chosen logging settings. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe

2012-12-09 Thread Michael Walle
Am Freitag 30 November 2012, 23:24:11 schrieben Sie: Probe for GL and GLX symbols and X11 library. This fixes a build error where the header files are available but the libraries are not. Signed-off-by: Michael Walle mich...@walle.cc --- configure |6 +++--- 1 files changed, 3

[Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe

2012-11-30 Thread Michael Walle
Probe for GL and GLX symbols and X11 library. This fixes a build error where the header files are available but the libraries are not. Signed-off-by: Michael Walle mich...@walle.cc --- configure |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure

[Qemu-devel] [PATCH 2/2] configure: rename OpenGL feature to GLX

2012-11-30 Thread Michael Walle
As the probe now actually checks for the availability of GLX, rename it accordingly. The only user of this feature is the milkymist-tmu2 model. Signed-off-by: Michael Walle mich...@walle.cc --- configure | 30 +++--- hw/lm32/Makefile.objs |2 +- hw

Re: [Qemu-devel] [PATCH v2] Make target_phys_addr_t 64 bits unconditionally

2012-10-04 Thread Michael Walle
, with target_phys_addr_t unconditionally typedefed to uint64_t. Signed-off-by: Avi Kivity a...@redhat.com --- v2: no changes, but copied the maintainers of architectures that will see their target_phys_addr_t changed as a result. Please view and/or test. For lm32 target: Tested-by: Michael Walle

Re: [Qemu-devel] [PATCH 13/23] lm32: Suppress unused default drives

2012-08-09 Thread Michael Walle
Am Donnerstag 09 August 2012, 15:31:14 schrieb Markus Armbruster: Cc: Michael Walle mich...@walle.cc Suppress default floppy and CD-ROM drives for machines lm32-evr, lm32-uclinux, milkymist. Suppress default SD card drive for machines lm32-evr, lm32-uclinux. Signed-off-by: Markus

Re: [Qemu-devel] [PATCH next v2 41/74] target-lm32: Let cpu_lm32_init() return LM32CPU

2012-05-11 Thread Michael Walle
Make the include paths for cpu-qom.h consistent to allow using LM32CPU in cpu.h. Turn cpu_init macro into a static inline function returning CPULM32State for backwards compatibility. Signed-off-by: Andreas Färber afaer...@suse.de Acked-by: Michael Walle mich...@walle.cc -- Michael

Re: [Qemu-devel] [PATCH for-next 41/74] target-lm32: Let cpu_lm32_init() return LM32CPU

2012-05-09 Thread Michael Walle
Make the include paths for cpu-qom.h consistent to allow using LM32CPU in cpu.h. Let cpu_init() return CPULM32State for backwards compatibility. Signed-off-by: Andreas Färber afaer...@suse.de [..] Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH for-next 42/74] lm32_boards: Use cpu_lm32_init() to obtain LM32CPU

2012-05-09 Thread Michael Walle
Am Sonntag 06 Mai 2012, 17:34:42 schrieb Andreas Färber: Needed for main_cpu_reset(). Signed-off-by: Andreas Färber afaer...@suse.de [..] Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH for-next 43/74] lm32_boards: Store LM32CPU in ResetInfo

2012-05-09 Thread Michael Walle
Am Sonntag 06 Mai 2012, 17:34:43 schrieb Andreas Färber: Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber afaer...@suse.de [..] Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH for-next 44/74] milkymist: Use cpu_lm32_init() to obtain LM32CPU

2012-05-09 Thread Michael Walle
Needed for main_cpu_reset(). Signed-off-by: Andreas Färber afaer...@suse.de [..] Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH for-next 45/74] milkymist: Store LM32 in ResetInfo

2012-05-09 Thread Michael Walle
Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas Färber afaer...@suse.de [..] Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH for-next 74/74] Kill off cpu_state_reset()

2012-05-09 Thread Michael Walle
@@ void cpu_lm32_set_phys_msb_ignore(CPULM32State *env, int value) env-flags = ~LM32_FLAG_IGNORE_MSB; } } - -void cpu_state_reset(CPULM32State *env) -{ -cpu_reset(ENV_GET_CPU(env)); -} - Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH v2 0/3] QOM'ify LM32 CPU

2012-04-11 Thread Michael Walle
Andreas Färber (3): target-lm32: QOM'ify CPU target-lm32: QOM'ify CPU init target-lm32: QOM'ify CPU reset Acked-by: Michael Walle mich...@walle.cc -- michael

[Qemu-devel] [PULL v2 0/5] lm32 fixes and additions

2012-04-01 Thread Michael Walle
(2012-03-31 12:10:07 +) are available in the git repository at: git://github.com/mwalle/qemu.git for-upstream Michael Walle (5): tests: fix out-of-tree building for lm32 target target-lm32: init tcg only if available milkymist-sysctl: support for new core version

[Qemu-devel] [PATCH 1/5] tests: fix out-of-tree building for lm32 target

2012-04-01 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure |4 +++- tests/tcg/lm32/Makefile | 13 - 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/configure b/configure index b51a749..4ef5ec6 100755 --- a/configure +++ b/configure @@ -3876,7

[Qemu-devel] [PATCH 2/5] target-lm32: init tcg only if available

2012-04-01 Thread Michael Walle
Once qtest support for target-lm32 arrives, tcg may be disabled. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-lm32/helper.c b/target-lm32/helper.c index 5db8f8d..78076e4 100644 --- a/target

[Qemu-devel] [PATCH 3/5] milkymist-sysctl: support for new core version

2012-04-01 Thread Michael Walle
The new version introduces the following new registers: - SoC clock frequency: read-only of system clock used on the SoC - debug scratchpad: 8 bit scratchpad register - debug write lock: write once register, without any function on QEMU Signed-off-by: Michael Walle mich...@walle.cc --- hw

[Qemu-devel] [PATCH 5/5] milkymist-vgafb: add missing register

2012-04-01 Thread Michael Walle
This bug existed since the first commit. Fortunately, the affected registers have no functionality in qemu. This will only prevent the following warning: milkymist_vgafb: write access to unknown register 0x0034 Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-vgafb.c |5

[Qemu-devel] [PATCH 4/5] target-lm32: add simple disassembler

2012-04-01 Thread Michael Walle
Because binutils disassembler is based on libopcode, this is a rewrite from scratch. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.objs |1 + configure |4 + dis-asm.h |3 + disas.c |6 + lm32-dis.c| 361

[Qemu-devel] [PATCH 4/5] target-lm32: add simple disassembler

2012-03-31 Thread Michael Walle
Because binutils disassembler is based on libopcode, this is a rewrite from scratch. Signed-off-by: Michael Walle mich...@walle.cc --- Makefile.objs |1 + configure |4 + dis-asm.h |3 + disas.c |6 + lm32-dis.c| 351

[Qemu-devel] [PATCH 2/5] target-lm32: init tcg only if available

2012-03-31 Thread Michael Walle
Once qtest support for target-lm32 arrives, tcg may be disabled. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-lm32/helper.c b/target-lm32/helper.c index 5db8f8d..78076e4 100644 --- a/target

[Qemu-devel] [PATCH 3/5] milkymist-sysctl: support for new core version

2012-03-31 Thread Michael Walle
The new version introduces the following new registers: - SoC clock frequency: read-only of system clock used on the SoC - debug scratchpad: 8 bit scratchpad register - debug write lock: write once register, without any function on QEMU Signed-off-by: Michael Walle mich...@walle.cc --- hw

[Qemu-devel] [PATCH 5/5] milkymist-vgafb: add missing register

2012-03-31 Thread Michael Walle
This bug existed since the first commit. Fortunately, the affected registers have no functionality in qemu. This will only prevent the following warning: milkymist_vgafb: write access to unknown register 0x0034 Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-vgafb.c |5

[Qemu-devel] [PULL 0/5] lm32 fixes and additions

2012-03-31 Thread Michael Walle
repository at: git://github.com/mwalle/qemu.git for-upstream Michael Walle (5): tests: fix out-of-tree building for lm32 target target-lm32: init tcg only if available milkymist-sysctl: support for new core version target-lm32: add simple disassembler milkymist-vgafb

[Qemu-devel] [PATCH 1/5] tests: fix out-of-tree building for lm32 target

2012-03-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure |4 +++- tests/tcg/lm32/Makefile | 13 - 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/configure b/configure index b51a749..4ef5ec6 100755 --- a/configure +++ b/configure @@ -3876,7

Re: [Qemu-devel] [RFC 09/12] target-lm32: QOM'ify CPU

2012-03-15 Thread Michael Walle
*/ + +CPULM32State env; +} LM32CPU; + +static inline LM32CPU *cris_env_get_cpu(CPULM32State *env) cris? :) +{ +return LM32_CPU(container_of(env, LM32CPU, env)); +} + +#define ENV_GET_CPU(e) CPU(cris_env_get_cpu(e)) ditto Apart from that: Acked-by: Michael Walle mich...@walle.cc

Re: [Qemu-devel] [PATCH 06/15] target-lm32: Clean includes

2012-02-04 Thread Michael Walle
Am Donnerstag 02 Februar 2012, 22:12:48 schrieb Stefan Weil: config.h was missing in cpu.h. Cc: Michael Walle mich...@walle.cc Signed-off-by: Stefan Weil s...@weilnetz.de --- target-lm32/cpu.h |1 + target-lm32/helper.c|5 - target-lm32/translate.c |8

Re: [Qemu-devel] GPLv3 troubles

2012-01-26 Thread Michael Walle
Am Montag 17 Oktober 2011, 19:46:11 schrieb Stefan Weil: So let's start. For any of my contributions, I agree to GPL v2 or later. Later generations should have the possibility to replace GPL v2 by something which matches future requirements. I agree to GPL v2 or later. -- Michael

Re: [Qemu-devel] [PATCH 1/6] qtest: add test framework

2012-01-17 Thread Michael Walle
On Fri, January 13, 2012 19:32, Anthony Liguori wrote: diff --git a/qtest.c b/qtest.c new file mode 100644 index 000..f41a9c3 --- /dev/null +++ b/qtest.c @@ -0,0 +1,357 @@ +/* + * Test Server + * + * Copyright IBM, Corp. 2011 + * + * Authors: + * Anthony Liguori

[Qemu-devel] [PATCH] target-lm32: init tcg only if available

2012-01-17 Thread Michael Walle
Once qtest support for target-lm32 arrives, tcg may be disabled. Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-lm32/helper.c b/target-lm32/helper.c index fc0b444..d6f38bf 100644 --- a/target

Re: [Qemu-devel] [PATCH 01/14] lm32: Fix mixup of uint32 and uint32_t

2012-01-16 Thread Michael Walle
); \ *(to++) = tmp 0xff; \ *(to++) = (tmp 8) 0xff; \ *(to++) = (tmp 16) 0xff; \ This change breaks the otherwise consistent alignment of the '\' characters in column 51... apart from that, Acked-by: Michael Walle mich...@walle.cc

[Qemu-devel] [PATCH] tests: fix out-of-tree building for lm32 target

2012-01-16 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- configure |4 +++- tests/tcg/lm32/Makefile | 13 - 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 467e87b..168be85 100755 --- a/configure +++ b/configure @@ -3775,7

Re: [Qemu-devel] [RFC] vmstate: Add copyrights for all cpus

2011-11-07 Thread Michael Walle
+ * + * Copyright (C) 2011 Red Hat, Inc. + * + * Author(s): + * Juan Quintela quint...@redhat.com + * + * Based on qemu-file support done by: + * Michael Walle mich...@walle.cc + * + * This work is licensed under the terms of the GNU GPL, version 2. See + * the COPYING file in the top-level

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Michael Walle
const VMStateDescription vmstate_cpu = { +const VMStateDescription vmstate_cpu = { .name = cpu, .version_id = CPU_SAVE_VERSION, .minimum_version_id = 1, diff --git a/target-m68k/machine.c b/target-m68k/machine.c index e69de29..86b6fe9 100644 [..] Acked-by: Michael Walle mich

Re: [Qemu-devel] [PATCH 06/25] vmstate: use new style for lm32 cpus

2011-10-25 Thread Michael Walle
Am Dienstag 25 Oktober 2011, 16:00:40 schrieb Juan Quintela: Signed-off-by: Juan Quintela quint...@redhat.com CC: Michael Walle mich...@walle.cc --- target-lm32/cpu.h |2 -- target-lm32/machine.c | 12 +--- 2 files changed, 1 insertions(+), 13 deletions(-) diff --git

Re: [Qemu-devel] [PULL] lm32 fixes and new milkymist hardware support

2011-10-03 Thread Michael Walle
in the git repository at: git://git.serverraum.org/git/mw/qemu-lm32.git for-upstream Michael Walle (3): lm32: add missing qemu_init_vcpu() call milkymist_uart: support new core version milkymist: new interrupt map hw/milkymist-hw.h|5 +-- hw/milkymist-uart.c | 72

[Qemu-devel] [PATCH] memory: fix subregion collision warning

2011-09-15 Thread Michael Walle
Instead of the offset property use the proper addr property to calculate the offsets. Additionally, be a little more verbose on the warning and print the subregion name. Signed-off-by: Michael Walle mich...@walle.cc --- memory.c | 13 - 1 files changed, 8 insertions(+), 5

[Qemu-devel] [PATCH 1/3] lm32: add missing qemu_init_vcpu() call

2011-09-15 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- target-lm32/helper.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-lm32/helper.c b/target-lm32/helper.c index 014fd8d..fc0b444 100644 --- a/target-lm32/helper.c +++ b/target-lm32/helper.c @@ -218,6 +218,7

[Qemu-devel] [PULL] lm32 fixes and new milkymist hardware support

2011-09-15 Thread Michael Walle
' into staging (2011-09-15 13:33:03 -0500) are available in the git repository at: http://git.serverraum.org/git/mw/qemu-lm32.git for-upstream Michael Walle (3): lm32: add missing qemu_init_vcpu() call milkymist_uart: support new core version milkymist: new interrupt map hw

[Qemu-devel] [PATCH 2/3] milkymist_uart: support new core version

2011-09-15 Thread Michael Walle
The new version of the uart core introduces status and control bits. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-hw.h |5 +-- hw/milkymist-uart.c | 72 -- hw/milkymist.c |2 +- trace-events|4 +- 4

[Qemu-devel] [PATCH 3/3] milkymist: new interrupt map

2011-09-15 Thread Michael Walle
Due to the new uart core version the interrupt mapping has changed. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/milkymist.c b/hw/milkymist.c index 6d99260..b7a8c1c 100644 --- a/hw

Re: [Qemu-devel] new memory api: offsets?

2011-09-01 Thread Michael Walle
Am Donnerstag 01 September 2011, 07:54:28 schrieb Avi Kivity: On 09/01/2011 01:54 AM, Michael Walle wrote: Hi Avi, while debugging, i noticed, that mr-offset is never set, expect in the initializer. (The subregion collision warning is printed although the regions are not overlapping

[Qemu-devel] [PATCH 1/9] milkymist-ac97: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-ac97.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-ac97.c b/hw/milkymist-ac97.c index 6104732..5c5ed27 100644 --- a/hw/milkymist-ac97.c +++ b/hw/milkymist-ac97

[Qemu-devel] [PATCH 0/9] Memory API conversion for milkymist models

2011-08-31 Thread Michael Walle
This patchset converts the remaining milkymist models to the new memory API. Additionally, it fixes a minor naming issue. This patches are againts avi's memory/master branch, for inclusion into his memory queue. Michael Walle (9): milkymist-ac97: convert to memory API milkymist-hpdmc

[Qemu-devel] [PATCH 4/9] milkymist-pfpu: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-pfpu.c | 33 - 1 files changed, 16 insertions(+), 17 deletions(-) diff --git a/hw/milkymist-pfpu.c b/hw/milkymist-pfpu.c index 306d1ce..672f6e4 100644 --- a/hw/milkymist-pfpu.c +++ b/hw/milkymist

[Qemu-devel] [PATCH 3/9] milkymist-memcard: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-memcard.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-memcard.c b/hw/milkymist-memcard.c index 22dc377..fb6e558 100644 --- a/hw/milkymist-memcard.c +++ b/hw

[Qemu-devel] [PATCH 9/9] milkymist-{minimac2, softusb}: rename memory names

2011-08-31 Thread Michael Walle
Be consistent with other milkymist models. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-minimac2.c |4 ++-- hw/milkymist-softusb.c |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/milkymist-minimac2.c b/hw/milkymist-minimac2.c index fb48e37

[Qemu-devel] [PATCH 7/9] milkymist-uart: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-uart.c | 33 + 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-uart.c b/hw/milkymist-uart.c index e8e309d..128cd8c 100644 --- a/hw/milkymist-uart.c +++ b/hw/milkymist

[Qemu-devel] [PATCH 8/9] milkymist-vgafb: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-vgafb.c | 33 - 1 files changed, 16 insertions(+), 17 deletions(-) diff --git a/hw/milkymist-vgafb.c b/hw/milkymist-vgafb.c index 2e55e42..be81abd 100644 --- a/hw/milkymist-vgafb.c +++ b/hw/milkymist

[Qemu-devel] [PATCH 6/9] milkymist-tmu2: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-tmu2.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-tmu2.c b/hw/milkymist-tmu2.c index 790cdcb..82cb6af 100644 --- a/hw/milkymist-tmu2.c +++ b/hw/milkymist-tmu2

[Qemu-devel] [PATCH 2/9] milkymist-hpdmc: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-hpdmc.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-hpdmc.c b/hw/milkymist-hpdmc.c index c0962fb..17c840f 100644 --- a/hw/milkymist-hpdmc.c +++ b/hw/milkymist

[Qemu-devel] [PATCH 5/9] milkymist-sysctl: convert to memory API

2011-08-31 Thread Michael Walle
Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-sysctl.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/milkymist-sysctl.c b/hw/milkymist-sysctl.c index 7b2d544..5783f08 100644 --- a/hw/milkymist-sysctl.c +++ b/hw

[Qemu-devel] new memory api: offsets?

2011-08-31 Thread Michael Walle
Hi Avi, while debugging, i noticed, that mr-offset is never set, expect in the initializer. (The subregion collision warning is printed although the regions are not overlapping.) Is this intended? btw. you may include the memory region name in the warning. -- Michael

[Qemu-devel] Memory API documentation typo?

2011-08-12 Thread Michael Walle
Hi Avi, docs/memory.txt, states the following: - .impl.valid specifies that the *implementation* only supports unaligned accesses; unaligned accesses will be emulated by two aligned accesses. i guess that should read .. implementation only supports _aligned_ accesses.. -- Michael

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

2011-08-09 Thread Michael Walle
This USB patchset moves the HID VM state stuff from usb-hid.c to hid.c, so it can be reused by other devices. changes v1-v2: - don't reorder vmstate field to be backward compatible Michael Walle (4): hid: register kbd hander in init() hid: introduce hid vmstate macros usb-hid: use hid

[Qemu-devel] [PATCH 3/4] usb-hid: use hid vmstate macro

2011-08-09 Thread Michael Walle
Use new hid vmstate macro. Version stays the same, because there is no reordering of the fields. Signed-off-by: Michael Walle mich...@walle.cc --- hw/usb-hid.c | 41 ++--- 1 files changed, 2 insertions(+), 39 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb

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

2011-08-09 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-09 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 4/4] milkymist-softusb: use hid code directly

2011-08-09 Thread Michael Walle
Remove the dummy USB device and use the HID code directly. Use the HID code for the mouse support, too. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-softusb.c | 122 +++- 1 files changed, 38 insertions(+), 84 deletions(-) diff --git

[Qemu-devel] [PATCH 4/4] milkymist-softusb: use hid code directly

2011-08-07 Thread Michael Walle
Remove the dummy USB device and use the HID code directly. Use the HID code for the mouse support, too. Signed-off-by: Michael Walle mich...@walle.cc --- hw/milkymist-softusb.c | 122 +++- 1 files changed, 38 insertions(+), 84 deletions(-) diff --git

[Qemu-devel] [PATCH 3/4] usb-hid: use hid vmstate macro

2011-08-07 Thread Michael Walle
Increase version id, this will make almost any saved vm incompatible :( Signed-off-by: Michael Walle mich...@walle.cc --- hw/usb-hid.c | 51 --- 1 files changed, 8 insertions(+), 43 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb-hid.c index

<    1   2   3   4   5   >