Re: [Qemu-devel] [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi

2012-09-09 Thread Michael S. Tsirkin
On Mon, Sep 10, 2012 at 08:42:15AM +0200, Paolo Bonzini wrote: > Il 10/09/2012 08:24, Michael S. Tsirkin ha scritto: > >> > I chose the backend name because, ideally, there would be no other > >> > difference. QEMU _could_ implement all the goodies in vhost-scsi (such > >> > as reservations or ALU

Re: [Qemu-devel] [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi

2012-09-09 Thread Paolo Bonzini
Il 10/09/2012 08:24, Michael S. Tsirkin ha scritto: >> > I chose the backend name because, ideally, there would be no other >> > difference. QEMU _could_ implement all the goodies in vhost-scsi (such >> > as reservations or ALUA), it just doesn't do that yet. >> > >> > Paolo > Then why do you say

[Qemu-devel] [PATCH 6/7] pseries: Reset emulated PCI TCE tables on system reset

2012-09-09 Thread David Gibson
The emulated PCI host bridge on the pseries machine incorporates an IOMMU (PAPR TCE table). Currently the mappings in this IOMMU are not cleared when we reset the system. This patch fixes this bug. To do this it adds a new reset function to the IOMMU emulation code. The VIO devices already rese

[Qemu-devel] [0/7] System reset fixes for pseries

2012-09-09 Thread David Gibson
Hi Alex, Now that 1.3 development is open, here's my pending series of patches to fix system reset for the pseries machine. This has most of the outstanding fixes - there is another for resetting the registered VPA address which is not here yet, because the kernel support to sync it with KVM is s

Re: [Qemu-devel] [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi

2012-09-09 Thread Michael S. Tsirkin
On Mon, Sep 10, 2012 at 08:16:54AM +0200, Paolo Bonzini wrote: > Il 09/09/2012 00:40, Michael S. Tsirkin ha scritto: > > On Fri, Sep 07, 2012 at 06:00:50PM +0200, Paolo Bonzini wrote: > >> Il 07/09/2012 08:48, Nicholas A. Bellinger ha scritto: > >>> Cc: Stefan Hajnoczi > >>> Cc: Zhi Yong Wu > >>>

Re: [Qemu-devel] QEMU (no kvm) Win7 (64bit) boot error

2012-09-09 Thread Clemens Kolbitsch
On Sat, Sep 8, 2012 at 11:22 AM, Clemens Kolbitsch wrote: > On Fri, Sep 7, 2012 at 9:26 PM, Stefan Weil wrote: >> Am 08.09.2012 02:48, schrieb Clemens Kolbitsch: >>> >>> Hi guys, >>> >>> I need to run Win7 64bit in Qemu without KVM support. I found a few >>> messages concerning the "unsupported a

Re: [Qemu-devel] [PATCH 4/5] virtio-scsi: Add start/stop functionality for vhost-scsi

2012-09-09 Thread Paolo Bonzini
Il 09/09/2012 00:40, Michael S. Tsirkin ha scritto: > On Fri, Sep 07, 2012 at 06:00:50PM +0200, Paolo Bonzini wrote: >> Il 07/09/2012 08:48, Nicholas A. Bellinger ha scritto: >>> Cc: Stefan Hajnoczi >>> Cc: Zhi Yong Wu >>> Cc: Michael S. Tsirkin >>> Cc: Paolo Bonzini >>> Signed-off-by: Nicholas

Re: [Qemu-devel] [PATCH 3/4] wakeup: make serial configurable

2012-09-09 Thread Gerd Hoffmann
Hi, >>> It seems a bit odd that this is done in the ISA serial model >>> itself and not by the next level up wiring up some output >>> of the ISA serial device to some appropriate input... >> >> Suggestions how to do that are welcome. Preferably some which don't >> break on 'qemu -nodefault -de

[Qemu-devel] [PATCH 1/2] qemu-char: BUGFIX, don't call FD_ISSET with negative fd

2012-09-09 Thread David Gibson
tcp_chr_connect(), unlike for example udp_chr_update_read_handler() does not check if the fd it is using is valid (>= 0) before passing it to qemu_set_fd_handler2(). If using e.g. a TCP serial port, which is not initially connected, this can result in -1 being passed to FD_ISSET, which has undefin

[Qemu-devel] [PATCH 2/2] cpu_physical_memory_write_rom() needs to do TB invalidates

2012-09-09 Thread David Gibson
cpu_physical_memory_write_rom(), despite the name, can also be used to write images into RAM - and will often be used that way if the machine uses load_image_targphys() into RAM addresses. However, cpu_physical_memory_write_rom(), unlike cpu_physical_memory_rw() does invalidate any cached TBs whic

[Qemu-devel] [0/2] Bugfixes for 1.2 stable series

2012-09-09 Thread David Gibson
Here are a couple of pending bugfixes which should go into the 1.2 stable series. 2/2 is the fix for missing TB invalidates from cpu_physical_memory_write_rom() (which is invoked by load_image_targphys()) which I have sent before. 1/2 is a new fix where FD_ISSET can be called with a negative fd,

Re: [Qemu-devel] [PATCH V12 5/6] add-cow file format

2012-09-09 Thread Dong Xu Wang
On Fri, Sep 7, 2012 at 4:19 AM, Michael Roth wrote: > On Fri, Aug 10, 2012 at 11:39:44PM +0800, Dong Xu Wang wrote: >> add-cow file format core code. It use block-cache.c as cache code. >> >> Signed-off-by: Dong Xu Wang >> --- >> block/Makefile.objs |1 + >> block/add-cow.c | 613 >> ++

Re: [Qemu-devel] [PATCH V12 4/6] rename qcow2-cache.c to block-cache.c

2012-09-09 Thread Dong Xu Wang
On Fri, Sep 7, 2012 at 1:52 AM, Michael Roth wrote: > On Fri, Aug 10, 2012 at 11:39:43PM +0800, Dong Xu Wang wrote: >> add-cow and qcow2 file format will share the same cache code, so rename >> block-cache.c to block-cache.c. And related structure and qcow2 code also > > "qcow2-cache.c to block-ca

[Qemu-devel] [PATCH v5 2/6] vl: fix -hdachs/-hda argument order parsing issues

2012-09-09 Thread Matthew Ogilvie
Without this patch, the -hdachs argument had to occur either BEFORE the corresponding "-hda" option, or AFTER the plain disk image name (if neither -hda nor -drive is used). Otherwise it would effectively be ignored. Option -hdachs still has no effect on -drive, but that seems best. Signed-off-b

[Qemu-devel] [PATCH v5 4/6] vga: add some optional CGA compatibility hacks

2012-09-09 Thread Matthew Ogilvie
This patch adds some optional compatibility hacks (default disabled) to allow Microport UNIX to function under qemu. I've tried to structure it to be easy to add more hacks for other old CGA programs, if anyone ever needs them. Microport UNIX System V/386 v 2.1 (ca 1987) tries to program the CGA

[Qemu-devel] [PATCH v5 5/6] i8259: fix so that dropping IRQ level always clears the interrupt request

2012-09-09 Thread Matthew Ogilvie
Intel's definition of "edge triggered" means: "asserted with a low-to-high transition at the time an interrupt is registered and then kept high until the interrupt is served via one of the EOI mechanisms or goes away unhandled." So the only difference between edge triggered and level triggered is

[Qemu-devel] [PATCH 1/2] KVM: fix i8259 interrupt high to low transition logic

2012-09-09 Thread Matthew Ogilvie
Intel's definition of "edge triggered" means: "asserted with a low-to-high transition at the time an interrupt is registered and then kept high until the interrupt is served via one of the EOI mechanisms or goes away unhandled." So the only difference between edge triggered and level triggered is

Re: [Qemu-devel] [PATCH V12 3/6] qed_read_string to bdrv_read_string

2012-09-09 Thread Dong Xu Wang
On Fri, Sep 7, 2012 at 1:32 AM, Michael Roth wrote: > On Fri, Aug 10, 2012 at 11:39:42PM +0800, Dong Xu Wang wrote: >> Make qed_read_string function to a common interface, so move it to block.c. >> >> Signed-off-by: Dong Xu Wang >> --- >> block.c | 27 +++ >> block.

Re: [Qemu-devel] [PATCH V12 1/6] docs: document for add-cow file format

2012-09-09 Thread Dong Xu Wang
On Fri, Sep 7, 2012 at 1:27 AM, Michael Roth wrote: > On Fri, Aug 10, 2012 at 11:39:40PM +0800, Dong Xu Wang wrote: >> Document for add-cow format, the usage and spec of add-cow are introduced. >> >> Signed-off-by: Dong Xu Wang >> --- >> docs/specs/add-cow.txt | 123 >>

[Qemu-devel] [PATCH v5 3/6] qemu-options.hx: mention retrace= VGA option

2012-09-09 Thread Matthew Ogilvie
The feature was added in commit cb5a7aa8c32141bb Sep 2008. My description is based on "Better VGA retrace emulation (needed for some DOS games/demos)" from http://www.boblycat.org/~malc/code/patches/qemu/index.html Signed-off-by: Matthew Ogilvie --- qemu-options.hx | 8 +++- 1 file changed,

[Qemu-devel] [PATCH 2/2] KVM: i8259: refactor pic_set_irq level logic

2012-09-09 Thread Matthew Ogilvie
No change in functionality. Clarify that the only difference between level triggered and edge triggered interrupts is on the leading edge. Signed-off-by: Matthew Ogilvie --- arch/x86/kvm/i8259.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/a

[Qemu-devel] [PATCH v5 6/6] i8259: refactor pic_set_irq level logic

2012-09-09 Thread Matthew Ogilvie
No change in functionality. Clarify that the only difference between level triggered and edge triggered interrupts is on the leading edge. Signed-off-by: Matthew Ogilvie --- hw/i8259.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/hw/i8259.c b/h

[Qemu-devel] [PATCH] [kvm-unit-tests] add x86/test8259.S

2012-09-09 Thread Matthew Ogilvie
This tests how the master i8259 handles a falling IRQ2 cascade interrupt when the original interrupt is masked off in the slave's IMR register. It should cancel the interrupt, and not deliver anything to the CPU until it is unmasked again. Signed-off-by: Matthew Ogilvie --- On Mon, Sep 03, 2012

[Qemu-devel] [PATCH v5 1/6] fix some debug printf format strings

2012-09-09 Thread Matthew Ogilvie
These are normally ifdefed out and don't matter. But if you enable them, they ought to be correct. Signed-off-by: Matthew Ogilvie --- hw/cirrus_vga.c | 4 ++-- hw/i8259.c | 3 ++- hw/ide/cmd646.c | 5 +++-- hw/ide/via.c| 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff

[Qemu-devel] [PATCH v5 0/6] Running Microport UNIX (ca 1987)

2012-09-09 Thread Matthew Ogilvie
Changes since previous version: * The first 4 patches haven't changed since version 3. * New patch 5: The 8259 patch has been totally redesigned again, this time based on a new understanding that on real hardware, if the trailing edge of an interrupt arrives before the interrupt

[Qemu-devel] [PATCH 6/9] NiosII: Build system and documentation integration.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- MAINTAINERS |5 + arch_init.c |2 ++ arch_init.h |1 + configure| 11 +++ cpu-exec.c | 12 +++- dis-asm.h|3 +++ disas.c |3 +++

[Qemu-devel] [PATCH 5/9] FDT: Add additional access methods for array types and walking children.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- device_tree.c | 88 + device_tree.h | 18 2 files changed, 106 insertions(+) diff --git a/device_tree.c b/device_tree.c index d7a9b6b..7fa7646 100644 --- a/device_tree.c ++

[Qemu-devel] [PATCH 0/9] Altera NiosII support

2012-09-09 Thread crwulff
From: Chris Wulff This set of patches adds support for the Altera NiosII soft-core processor, along with the hardware drivers needed to boot linux. I have tested the soft-mmu target and can boot to a shell with uClinux and a linux 3.0 kernel. Also included is a MicroBlaze configuration that is d

[Qemu-devel] [PATCH 7/9] NiosII: Add a config that is dynamically set up by a device tree file.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- default-configs/nios2-linux-user.mak |1 + default-configs/nios2-softmmu.mak|6 + hw/labx_nios2_devicetree.c | 665 ++ hw/nios2/Makefile.objs |6 + 4 files changed, 678 inse

[Qemu-devel] [PATCH 3/9] Altera: Add support for Altera devices required to boot linux on NiosII.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- hw/Makefile.objs |5 ++ hw/altera.h| 34 hw/altera_timer.c | 198 +++ hw/altera_uart.c | 218 hw/altera_vic.c| 195

[Qemu-devel] [PATCH 9/9] xilinx_timer: Fix a compile error if debug messages are enabled.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- hw/xilinx_timer.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c index b562bd0..18f354b 100644 --- a/hw/xilinx_timer.c +++ b/hw/xilinx_timer.c @@ -24,6 +24,7 @@ #include "sysbus.h

[Qemu-devel] [PATCH 8/9] MicroBlaze: Add a config that is dynamically set up by a device tree file.

2012-09-09 Thread crwulff
From: Chris Wulff Signed-off-by: Chris Wulff --- default-configs/microblaze-softmmu.mak |1 + hw/labx_microblaze_devicetree.c| 597 hw/microblaze/Makefile.objs|3 +- 3 files changed, 600 insertions(+), 1 deletion(-) create mode 1006

[Qemu-devel] [PATCH 009/126] target-s390: Split out disas_jcc

2012-09-09 Thread Richard Henderson
Lots of duplicated code replaced with a couple of tables. We no longer attempt to manually invert the logic operation: the comments now match the code. In the fully general test, constant propagate (1 << (3 - cc)) into (8 >> cc). The new function will be usable by non-branch insns as well. Sign

[Qemu-devel] [PATCH 034/126] target-s390: Convert MOVE LONG

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 3 +++ target-s390x/translate.c | 23 --- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index ab014ff..3c3a8f7 100644 --- a/target-s3

[Qemu-devel] [PATCH 002/126] tcg: Add TCG_COND_NEVER, TCG_COND_ALWAYS

2012-09-09 Thread Richard Henderson
There are several cases that can be handled easier inside both translators and code generators if we have out-of-band values for conditions. It's easy enough to handle ALWAYS and NEVER in the natural way inside the tcg middle-end. Signed-off-by: Richard Henderson Cc: Aurelien Jarno --- tcg/arm

[Qemu-devel] [PATCH 061/126] target-s390: Convert COMPARE AND SWAP

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 4 +-- target-s390x/insn-data.def | 9 ++ target-s390x/mem_helper.c | 33 +--- target-s390x/translate.c | 78 -- 4 files changed, 66 insertions(+), 58 deletions(-

[Qemu-devel] [PATCH 055/126] target-s390: Convert CLC

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 1 + target-s390x/translate.c | 107 ++--- 2 files changed, 35 insertions(+), 73 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index f7941d8..fa0711f

[Qemu-devel] [PATCH 054/126] target-s390: Convert NC, XC, OC, TR, UNPK

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 11 ++ target-s390x/translate.c | 88 ++ 2 files changed, 61 insertions(+), 38 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index aa70715..f794

[Qemu-devel] [PATCH 072/126] target-s390: Convert FP MULTIPLY

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 87 +- target-s390x/helper.h | 10 +++--- target-s390x/insn-data.def | 9 + target-s390x/translate.c | 56 + 4 files changed, 86 insertions(+), 76

[Qemu-devel] [PATCH 071/126] target-s390: Convert FP DIVIDE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 68 ++ target-s390x/helper.h | 8 ++ target-s390x/insn-data.def | 5 target-s390x/translate.c | 41 +--- 4 files changed, 47 insertions(+), 75 de

[Qemu-devel] [PATCH 037/126] target-s390: Cleanup cc computation helpers

2012-09-09 Thread Richard Henderson
The inline markers hid the fact that {n}abs_32 were unused because of typos in the main do_calc_cc function. Let the compiler handle auto-inlining here. Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 140 +-- 1 file changed, 61 insert

[Qemu-devel] [PATCH 050/126] target-s390: Convert STNSM, STOSM

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 37 +++-- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 84ca631..52f44e0 100644

[Qemu-devel] [PATCH 081/126] target-s390: Convert LFPC, SFPC

2012-09-09 Thread Richard Henderson
Note that we were failing to set the rounding mode in fpu_status. Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 17 + target-s390x/helper.h | 1 + target-s390x/insn-data.def | 6 + target-s390x/translate.c | 63 ++--

[Qemu-devel] [PATCH 073/126] target-s390: Convert MULTIPLY AND ADD, SUBTRACT

2012-09-09 Thread Richard Henderson
Use the new float*_muladd interface to softfloat. Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 57 +++-- target-s390x/helper.h | 8 +++--- target-s390x/insn-data.def | 11 target-s390x/translate.c | 63

[Qemu-devel] [PATCH 082/126] target-s390: Convert IPM

2012-09-09 Thread Richard Henderson
Note that the previous placement of the PM field was incorrect. Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 12 target-s390x/helper.h | 1 - target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 25 +++-- 4 files changed, 21

[Qemu-devel] [PATCH 026/126] target-s390: Convert BRANCH AND SAVE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 target-s390x/translate.c | 102 + 2 files changed, 63 insertions(+), 46 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 3389e28..00b06

[Qemu-devel] [PATCH 056/126] target-s390: Convert MVCP, MVCS

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 49 ++ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index fa0711f..301e50

[Qemu-devel] [PATCH 014/126] target-s390: Convert MULTIPLY

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/cpu.h | 15 +-- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 27 + target-s390x/int_helper.c | 15 +-- target-s390x/translate.c | 239 ++--- 5 files changed, 112 insert

[Qemu-devel] [PATCH 069/126] target-s390: Convert FP ADD, COMPARE, LOAD TEST/ROUND/LENGTHENED

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 9 +- target-s390x/cpu.h | 10 +- target-s390x/fpu_helper.c | 299 + target-s390x/helper.h | 31 ++--- target-s390x/insn-data.def | 25 target-s390x/translate.c

[Qemu-devel] [PATCH 038/126] target-s390: Convert INSERT CHARACTERS UNDER MASK

2012-09-09 Thread Richard Henderson
Change the CC handling to be more like TEST UNDER MASK, with val & mask. This lets us handle ICMH much more like ICM. Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 31 +++ target-s390x/helper.h | 1 - target-s390x/insn-data.def | 4 ++ target-s390x/mem_helpe

[Qemu-devel] [PATCH 016/126] target-s390: Convert COMPARE, COMPARE LOGICAL

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 48 + target-s390x/translate.c | 258 ++--- 2 files changed, 128 insertions(+), 178 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 2d30c95

[Qemu-devel] [PATCH 017/126] target-s390: Convert LOAD, LOAD LOGICAL

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 20 + target-s390x/translate.c | 100 ++--- 2 files changed, 60 insertions(+), 60 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 45c3913..

[Qemu-devel] [PATCH 036/126] target-s390: Convert INSERT CHARACTER

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 3 +++ target-s390x/translate.c | 35 +-- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 02e9cc0..7fff688 100644 ---

[Qemu-devel] [PATCH 046/126] target-s390: Convert SHIFT DOUBLE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 8 target-s390x/translate.c | 30 -- 2 files changed, 8 insertions(+), 30 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index fd94333..103c1d2 100644 ---

[Qemu-devel] [PATCH 099/126] target-s390: Convert SSKE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 2 ++ target-s390x/mem_helper.c | 2 +- target-s390x/translate.c | 18 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/target-s390x/helper.h b/target-s390

[Qemu-devel] [PATCH 015/126] target-s390: Convert AND, OR, XOR

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 27 + target-s390x/translate.c | 134 ++--- 2 files changed, 56 insertions(+), 105 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index f93aba0.

[Qemu-devel] [PATCH 080/126] target-s390: Convert FLOGR

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 8 ++ target-s390x/cpu.h | 2 ++ target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 3 +++ target-s390x/int_helper.c | 22 +++- target-s390x/translate.c | 65 +

[Qemu-devel] [PATCH 094/126] target-s390: Convert PTLB

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 14 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 79ed499..58f2b41 100644 --- a/target-s390x/insn-da

[Qemu-devel] [PATCH 013/126] target-s390: Implement ADD LOGICAL WITH SIGNED IMMEDIATE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 5 + target-s390x/translate.c | 7 +++ 2 files changed, 12 insertions(+) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 44e1ca7..acde181 100644 --- a/target-s390x/insn-data.def +++ b/target-s3

[Qemu-devel] [PATCH 083/126] target-s390: Convert CKSM

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 3 +++ target-s390x/mem_helper.c | 40 ++-- target-s390x/translate.c | 31 ++- 4 files changed, 48 insertions(+), 28 deletions(

[Qemu-devel] [PATCH 033/126] target-s390: Convert SUPERVISOR CALL

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 3 +++ target-s390x/translate.c | 34 +++--- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 267050f..ab014ff 100644 ---

[Qemu-devel] [PATCH 060/126] target-s390: Convert LCTL, STCTL

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 54 +- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 745d1e6..522fe1

[Qemu-devel] [PATCH 084/126] target-s390: Convert EAR, SAR

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 25 ++--- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index eec99fe..f282e99 100644 --- a/target

[Qemu-devel] [PATCH 100/126] target-s390: Convert RRBE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 2 ++ target-s390x/mem_helper.c | 2 +- target-s390x/translate.c | 22 ++ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/target-s390x/helper.h b/target-

[Qemu-devel] [PATCH 053/126] target-s390: Convert MVC

2012-09-09 Thread Richard Henderson
The code that was in gen_op_mvc was a bit confused wrt what lengths it wanted to handle. I also disbelieve that the inline memset is worthwhile. Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 1 + target-s390x/translate.c | 177 +++-

[Qemu-devel] [PATCH 021/126] target-s390: Convert LOAD LOGICAL IMMEDIATE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 42 -- 2 files changed, 19 insertions(+), 30 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 06d0ad8..9433d3d

[Qemu-devel] [PATCH 092/126] target-s390: Convert SPT, STPT

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 4 target-s390x/misc_helper.c | 8 +++- target-s390x/translate.c | 32 ++-- 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/target-s390x/

[Qemu-devel] [PATCH 029/126] target-s390: Convert DIVIDE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 5 +- target-s390x/insn-data.def | 14 +++ target-s390x/int_helper.c | 47 +++--- target-s390x/translate.c | 215 +++-- 4 files changed, 103 insertions(+), 178 deletions(-) diff -

[Qemu-devel] [PATCH 058/126] target-s390: Convert SIGP

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 28 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index a078cc5..95f9987 100644 --- a/targe

[Qemu-devel] [PATCH 022/126] target-s390: Convert LOAD COMPLIMENT, POSITIVE, NEGATIVE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 12 target-s390x/translate.c | 142 +++-- 2 files changed, 60 insertions(+), 94 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 9433d3d..29919

[Qemu-devel] [PATCH 005/126] target-s390: Fix gdbstub

2012-09-09 Thread Richard Henderson
The real gdb protocol doesn't split out pc or cc as real registers. Those are pseudos that are extracted as needed from the PSW. Don't modify env->cc_op during read -- that way lies heisenbugs. Fill in the XXX for the fp registers. Remove duplicated defines in cpu.h. Signed-off-by: Richard Hend

[Qemu-devel] [PATCH 064/126] target-s390: Convert TPROT

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 47 ++ 2 files changed, 12 insertions(+), 37 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 7f50fc7..92dbf26

[Qemu-devel] [PATCH 096/126] target-s390: Convert STAP

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 24 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 63da5ab..6638453 100644 --- a/target-s3

[Qemu-devel] [PATCH 007/126] target-s390: Use TCG registers for FPR

2012-09-09 Thread Richard Henderson
At the same time, tidy other usages of tcg_gen_deposit_i64. In some cases we can "type cast" rather than extend, and in others we can allow tcg_gen_deposit_i64 itself to optimize the HOST_LONG_BITS==32 case. Signed-off-by: Richard Henderson --- target-s390x/translate.c | 68 +

[Qemu-devel] [PATCH 077/126] target-s390: Convert LOAD ZERO

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 22 -- target-s390x/helper.h | 3 --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 29 ++--- 4 files changed, 18 insertions(+), 40 deletions(-) diff --git a/t

[Qemu-devel] [PATCH 018/126] target-s390: Convert LOAD ADDRESS

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 5 + target-s390x/translate.c | 14 -- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 2590f83..0829368 100644 --- a/target-s390x/insn

[Qemu-devel] [PATCH 032/126] target-s390: Convert SET ADDRESSING MODE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 6 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 845d22c..267050f 100644 --- a/target-s390x/insn-data.def

[Qemu-devel] [PATCH 025/126] target-s390: Convert ADD LOGICAL CARRY and SUBTRACT LOGICAL BORROW

2012-09-09 Thread Richard Henderson
I'm resonably certain that the carry/borrow-out condition for both helpers was incorrect, failing to take into account the carry-in. Adding the new CC_OP codes also allows removing the awkward interface we used for the slb helpers. Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c

[Qemu-devel] [PATCH 101/126] target-s390: Convert subchannel instructions

2012-09-09 Thread Richard Henderson
Note that 0xb25f is not listed in PoO -08 as a valid insn. I believe the "CHSC" listed in the old code must be a typo for the "CSCH" insn at 0xb230. Because I'm not 100% certain what the errant entry was supposed to be, I've listed all of the chapter 14 subchannel insns. Which is easy since all m

[Qemu-devel] [PATCH 031/126] target-s390: Convert TEST UNDER MASK

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 25 ++-- target-s390x/insn-data.def | 8 + target-s390x/translate.c | 73 +++--- 3 files changed, 27 insertions(+), 79 deletions(-) diff --git a/target-s390x/cc_helper.c b

[Qemu-devel] [PATCH 089/126] target-s390: Convert SCK

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 1 - target-s390x/insn-data.def | 3 +++ target-s390x/misc_helper.c | 8 target-s390x/translate.c | 10 -- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/target-s390x/helper.h b/target-s390x/h

[Qemu-devel] [PATCH 093/126] target-s390: Convert SPKA

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 20 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 29b3eb2..79ed499 100644 --- a/target-s390x/

[Qemu-devel] [PATCH 079/126] target-s390: Convert CONVERT FROM FIXED

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 81 +- target-s390x/helper.h | 9 ++ target-s390x/insn-data.def | 7 target-s390x/translate.c | 73 +++-- 4 files changed, 66 inserti

[Qemu-devel] [PATCH 063/126] target-s390: Convert STCM

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 -- target-s390x/insn-data.def | 4 +++ target-s390x/mem_helper.c | 37 --- target-s390x/translate.c | 73 +++--- 4 files changed, 53 insertions(+), 63 deletions(-)

[Qemu-devel] [PATCH 078/126] target-s390: Convert CONVERT TO FIXED

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 98 +++ target-s390x/helper.h | 12 ++--- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 125 + 4 files changed, 124 insertions(

[Qemu-devel] [PATCH 059/126] target-s390: Convert EFPC, STFPC

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 ++ target-s390x/translate.c | 38 +- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 95f9987..745d1e6 1006

[Qemu-devel] [PATCH 085/126] target-s390: Convert MVPG

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/mem_helper.c | 7 ++- target-s390x/translate.c | 20 3 files changed, 12 insertions(+), 17 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index f2

[Qemu-devel] [PATCH 076/126] target-s390: Convert FP SQUARE ROOT

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 24 +--- target-s390x/helper.h | 4 +++- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 22 +++--- 4 files changed, 50 insertions(+), 7 deletions(-) diff --git a/tar

[Qemu-devel] [PATCH 011/126] target-s390: Convert ADD HALFWORD

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 43 +++ 2 files changed, 14 insertions(+), 36 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 7d81928..2acc8f

[Qemu-devel] [PATCH 044/126] target-s390: Convert DIAGNOSE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 33 - 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index f2ad737..ba9f094 100644 --- a/

[Qemu-devel] [PATCH 062/126] target-s390: Convert CLM

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 32 +++- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index d2c9671..ee2ab46 100644 --- a

[Qemu-devel] [PATCH 004/126] target-s390: Fix disassembly of cpsdr

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- s390-dis.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s390-dis.c b/s390-dis.c index bbdd239..3759164 100644 --- a/s390-dis.c +++ b/s390-dis.c @@ -673,7 +673,9 @@ static const struct s390_operand s390_operands[] = This is just a

[Qemu-devel] [PATCH 074/126] target-s390: Convert TEST DATA CLASS

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/fpu_helper.c | 28 +++- target-s390x/helper.h | 6 ++--- target-s390x/insn-data.def | 5 target-s390x/translate.c | 66 -- 4 files changed, 40 insertions(+), 65 deletions(-

[Qemu-devel] [PATCH 097/126] target-s390: Convert IPTE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 20 +--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 6638453..ba7b876 100644 --- a/target-s390x/

[Qemu-devel] [PATCH 035/126] target-s390: Convert FP LOAD

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 target-s390x/translate.c | 102 + 2 files changed, 74 insertions(+), 35 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 3c3a8f7..02e9c

[Qemu-devel] [PATCH 065/126] target-s390: Convert LOAD CONTROL, part 2

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 75 ++ 2 files changed, 25 insertions(+), 52 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 92dbf26..ed28d2d

[Qemu-devel] [PATCH 003/126] target-s390: Disassemble more z10 and z196 opcodes

2012-09-09 Thread Richard Henderson
Also fix disassembly for COMPARE AND BRANCH. The table must be sorted by primary opcode, and several were out of place. Signed-off-by: Richard Henderson --- s390-dis.c | 169 ++--- 1 file changed, 151 insertions(+), 18 deletions(-) diff -

[Qemu-devel] [PATCH 047/126] target-s390: Convert LOAD, STORE MULTIPLE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 14 target-s390x/translate.c | 191 - 2 files changed, 116 insertions(+), 89 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 103c1d2..b1f0

[Qemu-devel] [PATCH 051/126] target-s390: Convert LAM, STAM

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 ++ target-s390x/translate.c | 46 ++ 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 52f44e0..5984

[Qemu-devel] [PATCH 040/126] target-s390: Convert FP STORE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 30 +++--- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 6bd4265..68f9711 100644 --- a/t

  1   2   >