Re: [Qemu-devel] Inject Interrupt, Using VMCS during qemu live migration.

2012-09-09 Thread Gleb Natapov
On Sun, Sep 09, 2012 at 12:09:00PM +0900, 李 ヨンジュン wrote: > Hello, I am trying to inject interrupt, in final phase of Live migration. > > I use vmcs_write32 function to inject interrupt. This function is called > by qemu, with ioctl. > > This is Code. > > (KVM) > > void vmcs_write32_provider(uns

Re: [Qemu-devel] [PATCH 1/5] softfloat: fix float{32, 64}_muladd options

2012-09-09 Thread Aurelien Jarno
On Sun, Sep 09, 2012 at 01:40:52AM +0400, Max Filippov wrote: > On Sun, Sep 9, 2012 at 1:12 AM, Aurelien Jarno wrote: > > float{32,64}_muladd takes an enum as a parameter, and not flags. It > > means the parameter should be checked with == test instead of &. > > > > Cc: Peter Maydell > > Signed-o

Re: [Qemu-devel] [PATCH 1/9] softfloat: make float_muladd_negate_* flags independent

2012-09-09 Thread Aurelien Jarno
On Sun, Sep 09, 2012 at 05:29:50AM +0400, Max Filippov wrote: > Flags passed into float{32,64}_muladd are treated as bits; assign > independent bits to float_muladd_negate_* to allow precise control over > what gets negated in float{32,64}_muladd. > > Signed-off-by: Max Filippov > --- > fpu/soft

Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rules

2012-09-09 Thread Peter Maydell
On 9 September 2012 02:29, Max Filippov wrote: > @@ -262,9 +263,13 @@ float32 float32_maybe_silence_nan( float32 a_ ) > #error Rules for silencing a signaling NaN are target-specific > # endif > #else > +# if defined(TARGET_XTENSA) > +return a_; > +# else > uint32_t a =

Re: [Qemu-devel] [PATCH 1/5] softfloat: fix float{32, 64}_muladd options

2012-09-09 Thread Peter Maydell
On 9 September 2012 10:24, Aurelien Jarno wrote: > On Sun, Sep 09, 2012 at 01:40:52AM +0400, Max Filippov wrote: >> I've also stumbled upon this bug, have a patch for it in the xtensa tree. >> I guess that the interface was designed to allow combining these flags, why >> don't just make them indep

Re: [Qemu-devel] [PATCH 4/5] target-ppc: use the softfloat float32_muladd function

2012-09-09 Thread Peter Maydell
On 8 September 2012 22:12, Aurelien Jarno wrote: > +#define VARITHFPFMA(suffix, type) \ > +void helper_v##suffix(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ > + ppc_avr_t *b, ppc_avr_t *c) \ > +{

Re: [Qemu-devel] [PATCH 4/5] target-ppc: use the softfloat float32_muladd function

2012-09-09 Thread Aurelien Jarno
On Sun, Sep 09, 2012 at 10:51:20AM +0100, Peter Maydell wrote: > On 8 September 2012 22:12, Aurelien Jarno wrote: > > +#define VARITHFPFMA(suffix, type) \ > > +void helper_v##suffix(CPUPPCState *env, ppc_avr_t *r, ppc_avr_t *a, \ > > +

Re: [Qemu-devel] [PATCH 1/5] softfloat: fix float{32, 64}_muladd options

2012-09-09 Thread Aurelien Jarno
On Sun, Sep 09, 2012 at 10:47:52AM +0100, Peter Maydell wrote: > On 9 September 2012 10:24, Aurelien Jarno wrote: > > On Sun, Sep 09, 2012 at 01:40:52AM +0400, Max Filippov wrote: > >> I've also stumbled upon this bug, have a patch for it in the xtensa tree. > >> I guess that the interface was des

Re: [Qemu-devel] [PATCH 6/9] target-xtensa: implement FP0 arithmetic

2012-09-09 Thread Peter Maydell
On 9 September 2012 02:29, Max Filippov wrote: > +float32 HELPER(abs_s)(float32 v) > +{ > +return float32_abs(v); > +} > + > +float32 HELPER(neg_s)(float32 v) > +{ > +return float32_chs(v); > +} Given that these are just 'v &= 0x7fff' and 'v ^= 0x8000' it seems like it would be be

Re: [Qemu-devel] [PATCH 1/5] softfloat: fix float{32, 64}_muladd options

2012-09-09 Thread Peter Maydell
On 9 September 2012 10:24, Aurelien Jarno wrote: > My idea was that negating both the product and c is equivalent to > negating the result, so there is no need to allow all of them > independent. This is the kind of statement about floating point arithmetic that sounds plausible but turns out to

Re: [Qemu-devel] [PATCH 7/9] target-xtensa: implement FP0 conversions

2012-09-09 Thread Peter Maydell
On 9 September 2012 02:29, Max Filippov wrote: > +uint32_t HELPER(ftoui)(float32 v, uint32_t rounding_mode, uint32_t scale) > +{ > +float_status fp_status = {0}; > +float32 zero = {0}; This probably won't compile if you turn on USE_SOFTFLOAT_STRUCT_TYPES in softfloat.h. (That's a define i

Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rules

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 1:31 PM, Peter Maydell wrote: > On 9 September 2012 02:29, Max Filippov wrote: >> @@ -262,9 +263,13 @@ float32 float32_maybe_silence_nan( float32 a_ ) >> #error Rules for silencing a signaling NaN are target-specific >> # endif >> #else >> +# if defined(TARGET_XTEN

Re: [Qemu-devel] [PATCH 6/9] target-xtensa: implement FP0 arithmetic

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 2:05 PM, Peter Maydell wrote: > On 9 September 2012 02:29, Max Filippov wrote: >> +float32 HELPER(abs_s)(float32 v) >> +{ >> +return float32_abs(v); >> +} >> + >> +float32 HELPER(neg_s)(float32 v) >> +{ >> +return float32_chs(v); >> +} > > Given that these are just

Re: [Qemu-devel] [PATCH 7/9] target-xtensa: implement FP0 conversions

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 3:06 PM, Peter Maydell wrote: > On 9 September 2012 02:29, Max Filippov wrote: >> +uint32_t HELPER(ftoui)(float32 v, uint32_t rounding_mode, uint32_t scale) >> +{ >> +float_status fp_status = {0}; >> +float32 zero = {0}; > > This probably won't compile if you turn o

Re: [Qemu-devel] [PATCH 6/9] target-xtensa: implement FP0 arithmetic

2012-09-09 Thread Peter Maydell
On 9 September 2012 13:25, Max Filippov wrote: > On Sun, Sep 9, 2012 at 2:05 PM, Peter Maydell > wrote: >> Given that these are just 'v &= 0x7fff' and 'v ^= 0x8000' >> it seems like it would be better to just generate code for them >> rather than calling out to a helper, though in some w

Re: [Qemu-devel] [PATCH uq/master] kvm: Clean up irqfd API

2012-09-09 Thread Avi Kivity
On 08/20/2012 11:55 AM, Jan Kiszka wrote: > No need to expose the fd-based interface, everyone will already be fine > with the more handy EventNotifier variant. Rename the latter to clarify > that we are still talking about irqfds here. Thanks, applied. > > -int kvm_irqchip_add_irqfd(KVMState *

[Qemu-devel] [Bug 1047999] [NEW] error building process in sdlaudio.o

2012-09-09 Thread Oleg Bobuh
Public bug reported: ./configure --enable-sdl --enable-virtfs --enable-vnc --enable-cocoa --enable-mixemu --enable-brlapi --enable-vnc-tls --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-curses --enable-curl --enable-bluez --enable-tcg-interpreter --enable-nptl --enable-system --enab

[Qemu-devel] [Bug 1047999] Re: error building process in sdlaudio.o

2012-09-09 Thread Oleg Bobuh
** Description changed: ./configure --enable-sdl --enable-virtfs --enable-vnc --enable-cocoa --enable-mixemu --enable-brlapi --enable-vnc-tls --enable-vnc-sasl --enable-vnc-jpeg --enable-vnc-png --enable-curses --enable-curl --enable-bluez --enable-tcg-interpreter --enable-nptl --enable-sy

[Qemu-devel] [Bug 571432] Re: qemu-system-arm crashed with SIGSEGV in subpage_register()

2012-09-09 Thread Launchpad Bug Tracker
[Expired for qemu-kvm (Ubuntu) because there has been no activity for 60 days.] ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/571

Re: [Qemu-devel] [PATCH v3 4/4] kvm: i386: Add classic PCI device assignment

2012-09-09 Thread Avi Kivity
On 09/06/2012 11:44 AM, Jan Kiszka wrote: > On 2012-08-30 20:30, Jan Kiszka wrote: >> This adds PCI device assignment for i386 targets using the classic KVM >> interfaces. This version is 100% identical to what is being maintained >> in qemu-kvm for several years and is supported by libvirt as well

Re: [Qemu-devel] [PATCH V9 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-09 Thread Avi Kivity
On 09/04/2012 06:13 PM, Julien Grall wrote: > This patch replaces all register_ioport* with the new memory API. It permits > to use the new Memory stuff like listener. > > @@ -200,8 +212,11 @@ static void pm_io_space_update(PIIX4PMState *s) > > /* XXX: need to improve memory and ioport

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.1.2 Stable released

2012-09-09 Thread Michael Tokarev
On 06.09.2012 03:51, Michael Roth wrote: > Hi everyone, > > I am pleased to announce that the QEMU v1.1.2 stable release is now > available at: > > http://wiki.qemu.org/download/qemu-1.1.2.tar.bz2 > > The official stable-1.1 repository has also been updated to v1.1.2: > > http://git.qemu.org/?p

Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound

2012-09-09 Thread Avi Kivity
On 09/08/2012 01:53 PM, Jan Kiszka wrote: > On 2012-09-07 18:09, Erik Lotspeich wrote: >> Hi, >> >> I apologize if this isn't the right venue for this message, but this >> mailing list seems a bit more active than qemu-discuss. >> >> Background: >> I am running OpenSUSE 12.1. I fixed audio issues

[Qemu-devel] [Bug 1008728] Re: Program counter is wrong when re-enter tb_find_fast in SH4 CPU

2012-09-09 Thread Aurelien Jarno
** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1008728 Title: Program counter is wrong when re-enter tb_find_fast in SH4 CPU Status in QEMU: Inv

Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rules

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 4:13 PM, Max Filippov wrote: > On Sun, Sep 9, 2012 at 1:31 PM, Peter Maydell > wrote: >> the Xtensa ISA it says it doesn't have signaling NaNs. Maybe >> it would be better to have a define for NO_SIGNALING_NANS >> which made float*_is_signaling_nan() always return false an

Re: [Qemu-devel] [PATCH 3/3] support readonly memory feature in qemu

2012-09-09 Thread Avi Kivity
On 09/07/2012 11:26 AM, Liu Sheng wrote: > as readonly memory is support in kvm, this patch supports this feature > in qemu, mainly pluging the memory region with KVM_MEM_READONLY flag > to kvm. > > @@ -1607,10 +1623,19 @@ int kvm_cpu_exec(CPUArchState *env) > break; > case K

Re: [Qemu-devel] [PATCH 3/9] target-xtensa: specialize softfloat NaN rules

2012-09-09 Thread Peter Maydell
On 9 September 2012 16:14, Max Filippov wrote: > On Sun, Sep 9, 2012 at 4:13 PM, Max Filippov wrote: >> On Sun, Sep 9, 2012 at 1:31 PM, Peter Maydell >> wrote: >>> the Xtensa ISA it says it doesn't have signaling NaNs. Maybe >>> it would be better to have a define for NO_SIGNALING_NANS >>> whic

Re: [Qemu-devel] [PATCH 3/3] support readonly memory feature in qemu

2012-09-09 Thread Avi Kivity
On 09/07/2012 11:50 AM, Jan Kiszka wrote: > >> +} else { >> +cpu_physical_memory_rw(run->mmio.phys_addr, >> + run->mmio.data, >> + run->mmio.len, >> + run->

[Qemu-devel] [PATCH v2 00/10] target-xtensa: implement FP coprocessor option

2012-09-09 Thread Max Filippov
This series implements floating point coprocessor and coprocessor context options for xtensa and fixes a couple of bugs to make it work. Changes v1->v2: - add NO_SIGNALING_NANS and drop float32_maybe_silence_nan specialization - fix fp registers access in gdbstub - replace float32_mul/div in FP-to

Re: [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-09 Thread Peter Maydell
On 9 September 2012 17:04, Max Filippov wrote: > These are FP to integer and integer to FP conversion opcodes. > See ISA, 4.3.10 for more details. > > Note that utrunc.s implementation follows ISS behaviour, not ISA. ISS here means "instruction set simulator", right? Do you have any actual silico

Re: [Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS

2012-09-09 Thread Peter Maydell
On 9 September 2012 17:04, Max Filippov wrote: > Architectures that don't have signaling NaNs can define > NO_SIGNALING_NANS, it will make float*_is_quiet_nan return 1 for any NaN > and float*_is_signaling_nan always return 0. > > Signed-off-by: Max Filippov > --- > fpu/softfloat-specialize.h |

[Qemu-devel] [PATCH v2 10/10] target-xtensa: implement coprocessor context option

2012-09-09 Thread Max Filippov
In case Coprocessor Context option is enabled CPENABLE SR bits control whether access to coprocessors is allowed or would rise one of CoprocessorXDisabled exceptions. See ISA, 4.4.5 for more details. FP is coprocessor 0. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |5 + t

[Qemu-devel] [PATCH v2 05/10] target-xtensa: add FP registers

2012-09-09 Thread Max Filippov
There are 16 32-bit FP registers (f0 - f15), control and status user registers (fcr, fsr). See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- Changes v1->v2: - add float32_val/make_float32 to fp registers accessors gdbstub.c |8 +++ target-xtensa/cpu.h

[Qemu-devel] [PATCH v2 06/10] target-xtensa: implement LSCX and LSCI groups

2012-09-09 Thread Max Filippov
These are load/store instructions for FP registers with immediate or register index and optional base post-update. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 58 +--- 1 files changed, 54 insertions(+), 4

[Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-09 Thread Max Filippov
These are FP to integer and integer to FP conversion opcodes. See ISA, 4.3.10 for more details. Note that utrunc.s implementation follows ISS behaviour, not ISA. Signed-off-by: Max Filippov --- Changes v1->v2: - replace float32_mul/div in FP-to-integer convertors with float32_scalbn - reimplemen

Re: [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 8:16 PM, Peter Maydell wrote: > On 9 September 2012 17:04, Max Filippov wrote: >> These are FP to integer and integer to FP conversion opcodes. >> See ISA, 4.3.10 for more details. >> >> Note that utrunc.s implementation follows ISS behaviour, not ISA. > > ISS here means "i

[Qemu-devel] [PATCH v2 02/10] softfloat: add NO_SIGNALING_NANS

2012-09-09 Thread Max Filippov
Architectures that don't have signaling NaNs can define NO_SIGNALING_NANS, it will make float*_is_quiet_nan return 1 for any NaN and float*_is_signaling_nan always return 0. Signed-off-by: Max Filippov --- fpu/softfloat-specialize.h | 64 fpu/softfl

[Qemu-devel] [PATCH v2 07/10] target-xtensa: implement FP0 arithmetic

2012-09-09 Thread Max Filippov
These are FP arithmetic opcodes. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/helper.h|7 + target-xtensa/op_helper.c | 37 +++ target-xtensa/translate.c | 61 - 3 files changed

[Qemu-devel] [PATCH v2 09/10] target-xtensa: implement FP1 group

2012-09-09 Thread Max Filippov
These are comparison and conditional move opcodes. See ISA, 4.3.10 for more details. Signed-off-by: Max Filippov --- target-xtensa/helper.h|8 target-xtensa/op_helper.c | 47 ++ target-xtensa/translate.c | 81 -

[Qemu-devel] [PATCH v2 01/10] softfloat: make float_muladd_negate_* flags independent

2012-09-09 Thread Max Filippov
Flags passed into float{32,64}_muladd are treated as bits; assign independent bits to float_muladd_negate_* to allow precise control over what gets negated in float{32,64}_muladd. Signed-off-by: Max Filippov Reviewed-by: Aurelien Jarno --- fpu/softfloat.h |2 +- 1 files changed, 1 insertion

[Qemu-devel] [PATCH v2 03/10] target-xtensa: handle boolean option in overlays

2012-09-09 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index a3a5650..e395053 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@

[Qemu-devel] [PATCH v2 04/10] target-xtensa: specialize softfloat NaN rules

2012-09-09 Thread Max Filippov
NaN propagation rule: leftmost NaN in the expression gets propagated to the result. Signed-off-by: Max Filippov --- Changes v1->v2: - drop float32_maybe_silence_nan specialization fpu/softfloat-specialize.h |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fpu/softflo

Re: [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-09 Thread Max Filippov
On Sun, Sep 9, 2012 at 9:24 PM, Marc Gauthier wrote: > Hi Max, > > Max Filippov wrote: >> On Sun, Sep 9, 2012 at 8:16 PM, Peter Maydell >> wrote: >> > On 9 September 2012 17:04, Max Filippov wrote: >> >> These are FP to integer and integer to FP conversion opcodes. >> >> See ISA, 4.3.10 for more

[Qemu-devel] [PATCH 001/126] tcg: Add TCGV_IS_UNUSED_*

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson Cc: Aurelien Jarno --- tcg/tcg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcg/tcg.h b/tcg/tcg.h index d710694..a9367fe 100644 --- a/tcg/tcg.h +++ b/tcg/tcg.h @@ -251,6 +251,9 @@ typedef int TCGv_i64; #define TCGV_UNUSED_I32(x) x = MAKE_TCGV_I32(-1)

[Qemu-devel] [PATCH 049/126] target-s390: Convert NI, XI, OI

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 ++ target-s390x/translate.c | 25 - 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 81f2917..84ca631 100644 --- a/targe

[Qemu-devel] [PATCH 042/126] target-s390: Convert SET SYSTEM MASK

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 2 ++ target-s390x/translate.c | 25 + 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 9d26370..7af3ba3 100644 --- a/target-s

[Qemu-devel] [PATCH 057/126] target-s390: Convert LRA

2012-09-09 Thread Richard Henderson
Note that truncating the store to r1 based on PSW_MASK_64 is incorrect. We always modify the entire register. Signed-off-by: Richard Henderson --- target-s390x/helper.h | 2 +- target-s390x/insn-data.def | 4 target-s390x/mem_helper.c | 13 +++-- target-s390x/translate.c

[Qemu-devel] [PATCH 068/126] target-s390: Convert LLGT

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 3 +++ target-s390x/translate.c | 49 ++ 2 files changed, 9 insertions(+), 43 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 11903bb..35a52f5

[Qemu-devel] [PATCH 086/126] target-s390: Convert CLST, MVST

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/helper.h | 4 +- target-s390x/insn-data.def | 4 ++ target-s390x/mem_helper.c | 119 ++--- target-s390x/translate.c | 42 4 files changed, 83 insertions(+), 86 deletions(-) dif

[Qemu-devel] [PATCH 088/126] target-s390: Convert STIDP

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

[Qemu-devel] [PATCH 087/126] target-s390: Convert SRST

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 | 38 +- target-s390x/translate.c | 31 ++- 4 files changed, 43 insertions(+), 31 deletions(-)

[Qemu-devel] [PATCH 090/126] target-s390: Convert STCK

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

[Qemu-devel] [PATCH 010/126] target-s390: Reorg exception handling

2012-09-09 Thread Richard Henderson
Make the user path more like the system path. Prepare for more kinds of runtime exceptions. Compute ILC from S->NEXT_PC, rather than passing it around. Signed-off-by: Richard Henderson --- linux-user/main.c | 133 +-- target-s390x/cpu.h | 11 --- targe

[Qemu-devel] [PATCH 098/126] target-s390: Convert ISKE

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

[Qemu-devel] [PATCH 020/126] target-s390: Convert LOAD AND TEST

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 7 +++ target-s390x/translate.c | 37 ++--- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 6b08340..06d0ad8 1006

[Qemu-devel] [PATCH 043/126] target-s390: Convert LOAD PSW

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

[Qemu-devel] [PATCH 039/126] target-s390: Convert EXECUTE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 5 + target-s390x/translate.c | 39 ++- 2 files changed, 31 insertions(+), 13 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 322fcc1..6bd4265 1006

[Qemu-devel] [PATCH 067/126] target-s390: Convert STORE REVERSED

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 34 -- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index f02e54c..11903bb 100644 ---

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

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 25 + target-s390x/translate.c | 236 +++-- 2 files changed, 82 insertions(+), 179 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 29919e4..8e3

[Qemu-devel] [PATCH 045/126] target-s390: Convert SHIFT, ROTATE SINGLE

2012-09-09 Thread Richard Henderson
Note that we were missing the 32-bit SLA. Signed-off-by: Richard Henderson --- target-s390x/cc_helper.c | 56 +--- target-s390x/cpu.h | 6 +- target-s390x/insn-data.def | 21 + target-s390x/translate.c | 207 - 4 files chang

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

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 16 +++ target-s390x/translate.c | 67 +- 2 files changed, 40 insertions(+), 43 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 8e348b2.

[Qemu-devel] [PATCH 041/126] target-s390: Convert CONVERT TO DECIMAL

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 24 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 68f9711..9d26370 100644 --- a/target-

Re: [Qemu-devel] [PATCH v2 08/10] target-xtensa: implement FP0 conversions

2012-09-09 Thread Marc Gauthier
Hi Max, Max Filippov wrote: > On Sun, Sep 9, 2012 at 8:16 PM, Peter Maydell > wrote: > > On 9 September 2012 17:04, Max Filippov wrote: > >> These are FP to integer and integer to FP conversion opcodes. > >> See ISA, 4.3.10 for more details. > >> > >> Note that utrunc.s implementation follows IS

[Qemu-devel] Cannot load initrd > 32M via TFTP

2012-09-09 Thread Jiri Slaby
Hi, it looks like the largest initrd qemu can pass/pxe can load from the qemu's TFTP server is 33553920 bytes long. If a larger file is passed, the laoding in pxelinux hangs (stops printing dots). It seems that qemu supports tsize, but now it looks like it does not work well? The command-line I u

[Qemu-devel] [PATCH 000/126] Rewrite s390x translator

2012-09-09 Thread Richard Henderson
As promised the other week. I've cleaned up the patch set and re-based it on Blueswirl's areg0 patch set. For reference, the entire patch set is available at git://repo.or.cz/qemu/rth.git rth/s390-reorg-3 Testing has mostly been on the gcc testsuite, where the execute test failures are reduce

[Qemu-devel] [PATCH 006/126] target-s390: Add missing temp_free in gen_op_calc_cc

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 66119cd..3080cef 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -757,6 +757,7 @@ static void gen_op_

[Qemu-devel] [PATCH 052/126] target-s390: Convert CLCLE, MVCLE

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/translate.c | 50 ++ 2 files changed, 28 insertions(+), 26 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 598447e..c1dafe

[Qemu-devel] [PATCH 066/126] target-s390: Convert LOAD REVERSED

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 target-s390x/translate.c | 77 ++ 2 files changed, 36 insertions(+), 47 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index ed28d2d..f02e54

[Qemu-devel] [PATCH 027/126] target-s390: Convert BRANCH ON CONDITION

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 ++ target-s390x/translate.c | 186 ++--- 2 files changed, 98 insertions(+), 94 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 00b06a3..5c3587b

[Qemu-devel] [PATCH 028/126] target-s390: Convert BRANCH ON COUNT

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 8 +++ target-s390x/translate.c | 162 - 2 files changed, 51 insertions(+), 119 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 5c3587b..63fff

[Qemu-devel] [PATCH 008/126] target-s390: Add format based disassassmbly infrastructure

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 54 ++ target-s390x/insn-format.def | 55 +++ target-s390x/translate.c | 1119 -- 3 files changed, 861 insertions(+), 367 deletions(-) create mode 100644 target-s390x/insn-data.def

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

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 6 ++ target-s390x/translate.c | 27 +++ 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index b1f0448..81f2917 100644 --- a/ta

[Qemu-devel] [PATCH 012/126] target-s390: Implement SUBTRACT HALFWORD

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 2acc8f0..44e1ca7 100644 --- a/target-s390x/insn-data.def +++ b/target-s390x/insn-data.def @@ -46,6 +46,9 @@ C(0

[Qemu-devel] [PATCH 019/126] target-s390: Convert LOAD (LOGICAL) BYTE, CHARACTER, HALFWORD

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 30 + target-s390x/translate.c | 157 ++--- 2 files changed, 78 insertions(+), 109 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-data.def index 0829368.

[Qemu-devel] [PATCH 030/126] target-s390: Send signals for divide

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/cpu.h | 2 ++ target-s390x/int_helper.c | 51 -- target-s390x/misc_helper.c | 22 3 files changed, 69 insertions(+), 6 deletions(-) diff --git a/target-s390x/cpu.h b/targe

[Qemu-devel] [PATCH 070/126] target-s390: Convert FP SUBTRACT

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

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

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

[Qemu-devel] [PATCH 091/126] target-s390: Convert SCKC, STCKC

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 095/126] target-s390: Convert SPX, STPX

2012-09-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-s390x/insn-data.def | 4 target-s390x/misc_helper.c | 6 ++ target-s390x/translate.c | 35 +++ 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/target-s390x/insn-data.def b/target-s390x/insn-d

[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

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

  1   2   >