Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Richard Henderson
On 11/18/2013 11:55 PM, Michael Matz wrote: >> > I think we need to either explicitly convert the tcg_shift to a >> > TCGv_i32, or we need to use an open coded version of the rotr_i64 that >> > inserts at (32 - n) instead of (64 - n) >> > >> > What do you think? > I think converting tcg_shift mi

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Michael Matz
Hi, On Mon, 18 Nov 2013, Claudio Fontana wrote: > > +tcg_gen_trunc_i64_i32(tmp, cpu_reg(reg)); > > + tcg_gen_rotr_i32(tmp, tmp, tcg_shift); > > Isn't this problematic? > We are using gen_rotr_i32, but passing tcg_shift, which is a TCGv_i64. With CONFIG_DEBUG_TCG it'll break, y

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Peter Maydell
On 18 November 2013 13:46, Michael Matz wrote: > On Mon, 18 Nov 2013, Peter Maydell wrote: >> I think we're going to need to look through and fold in those fixes, >> otherwise we'll end up reduplicating that work in the course of code >> review :-( > > Most probably. Authorship will be lost :-/ I

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Michael Matz
Hi, On Mon, 18 Nov 2013, Peter Maydell wrote: > >> >> +case 3: > >> >> +tcg_gen_rotr_i64(r, cpu_reg(reg), tcg_shift); > >> >> +break; > >> > > >> > Incorrect rotate for 32bit? > > > > 32bit rotates and shifts were fixed in a patch later than the 60er series > > Alex posted. S

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Peter Maydell
On 18 November 2013 13:43, Claudio Fontana wrote: > We are using gen_rotr_i32, but passing tcg_shift, which is a TCGv_i64. > I remember I had compilation failures in the past when I tried something > similar, > so my understanding is that this can work with a certain compiler under > certain com

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Claudio Fontana
Btw, in the first patch: On 11/18/2013 02:12 PM, Michael Matz wrote: > > From df54486da31d6329696effa61096eda5ab85395a Mon Sep 17 00:00:00 2001 > From: Michael Matz > Date: Sun, 24 Mar 2013 02:52:42 +0100 > Subject: [PATCH] Fix 32bit rotates. > > The 32bit shifts generally weren't careful with

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Claudio Fontana
On 11/18/2013 02:15 PM, Peter Maydell wrote: > On 18 November 2013 13:12, Michael Matz wrote: >> Hi, >> >> On Mon, 18 Nov 2013, Claudio Fontana wrote: >> > +case 3: > +tcg_gen_rotr_i64(r, cpu_reg(reg), tcg_shift); > +break; Incorrect rotate for 32bit? >> >

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Peter Maydell
On 18 November 2013 13:12, Michael Matz wrote: > Hi, > > On Mon, 18 Nov 2013, Claudio Fontana wrote: > >> >> +case 3: >> >> +tcg_gen_rotr_i64(r, cpu_reg(reg), tcg_shift); >> >> +break; >> > >> > Incorrect rotate for 32bit? > > 32bit rotates and shifts were fixed in a patch late

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Michael Matz
Hi, On Mon, 18 Nov 2013, Claudio Fontana wrote: > >> +case 3: > >> +tcg_gen_rotr_i64(r, cpu_reg(reg), tcg_shift); > >> +break; > > > > Incorrect rotate for 32bit? 32bit rotates and shifts were fixed in a patch later than the 60er series Alex posted. See attached. (General

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Laurent Desnogues
On Mon, Nov 18, 2013 at 11:15 AM, Claudio Fontana wrote: > Hello, > > On 09/27/2013 08:25 PM, Richard Henderson wrote: >> On 09/26/2013 05:48 PM, Alexander Graf wrote: >>> This patch adds emulation support for the orr instruction. >>> >>> Signed-off-by: Alexander Graf >>> --- >>> target-arm/help

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-11-18 Thread Claudio Fontana
Hello, On 09/27/2013 08:25 PM, Richard Henderson wrote: > On 09/26/2013 05:48 PM, Alexander Graf wrote: >> This patch adds emulation support for the orr instruction. >> >> Signed-off-by: Alexander Graf >> --- >> target-arm/helper-a64.c| 28 +++ >> target-arm/helper-a64.h| 1 +

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-10-30 Thread Peter Maydell
On 31 October 2013 00:29, Alexander Graf wrote: > > On 27.09.2013, at 11:25, Richard Henderson wrote: >> Why are you not using the same split apart bits as A32? > > There is an architecturally defined register that specifies > what pstate looks like and IIRC that includes system level > state as

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-10-30 Thread Alexander Graf
On 27.09.2013, at 11:25, Richard Henderson wrote: > On 09/26/2013 05:48 PM, Alexander Graf wrote: >> This patch adds emulation support for the orr instruction. >> >> Signed-off-by: Alexander Graf >> --- >> target-arm/helper-a64.c| 28 +++ >> target-arm/helper-a64.h| 1 + >> ta

Re: [Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-09-27 Thread Richard Henderson
On 09/26/2013 05:48 PM, Alexander Graf wrote: > This patch adds emulation support for the orr instruction. > > Signed-off-by: Alexander Graf > --- > target-arm/helper-a64.c| 28 +++ > target-arm/helper-a64.h| 1 + > target-arm/translate-a64.c | 120 > +

[Qemu-devel] [PATCH 14/60] AArch64: Add orr instruction emulation

2013-09-26 Thread Alexander Graf
This patch adds emulation support for the orr instruction. Signed-off-by: Alexander Graf --- target-arm/helper-a64.c| 28 +++ target-arm/helper-a64.h| 1 + target-arm/translate-a64.c | 120 + 3 files changed, 149 insertions(+) diff