Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-11-05 Thread Aurelien Jarno
On Tue, Nov 06, 2012 at 03:50:08AM +, Jovanovic, Petar wrote: > Since the change has been committed as-is, who will be sending fixes for > OPC_REPL_PH and other cases? > Jia, will you do that? > I am working on a patch series fixing and cleaning DSP support, it will include this fix. I hope

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-11-05 Thread Jovanovic, Petar
; Peter Maydell; Jovanovic, Petar; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions Hi Aurelien, On Thu, Nov 1, 2012 at 3:20 AM, Aurelien Jarno wrote: > On Wed, Oct 31, 2012 at 09:29:30PM +0800, Jia Liu wrote: >> &

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-31 Thread Jia Liu
Hi Aurelien, On Thu, Nov 1, 2012 at 3:20 AM, Aurelien Jarno wrote: > On Wed, Oct 31, 2012 at 09:29:30PM +0800, Jia Liu wrote: >> >> Is this time OK? > > As said by Peter, I don't think the code should be modified, the > previous code was fine. > You mean my v12 09/14 is OK? It is a good news to

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-31 Thread Aurelien Jarno
On Wed, Oct 31, 2012 at 09:29:30PM +0800, Jia Liu wrote: > Hi Richard Peter Jovanovic and Aurelien, > > On Wed, Oct 31, 2012 at 1:26 PM, Richard Henderson wrote: > > On 2012-10-31 01:44, Peter Maydell wrote: > >> On 30 October 2012 15:34, Jia Liu wrote: > >>> On Mon, Oct 29, 2012 at 9:40 PM, Jov

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-31 Thread Jia Liu
Hi Richard Peter Jovanovic and Aurelien, On Wed, Oct 31, 2012 at 1:26 PM, Richard Henderson wrote: > On 2012-10-31 01:44, Peter Maydell wrote: >> On 30 October 2012 15:34, Jia Liu wrote: >>> On Mon, Oct 29, 2012 at 9:40 PM, Jovanovic, Petar wrote: > imm = (int16_t)(imm << 6) >> 6;

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-30 Thread Richard Henderson
On 2012-10-31 01:44, Peter Maydell wrote: > On 30 October 2012 15:34, Jia Liu wrote: >> On Mon, Oct 29, 2012 at 9:40 PM, Jovanovic, Petar wrote: imm = (int16_t)(imm << 6) >> 6; >>> >>> result of a bitwise shift of a signed type and a negative vlaue is >>> implementation-defined, so you can n

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-30 Thread Peter Maydell
On 29 October 2012 13:36, Jia Liu wrote: > case OPC_REPL_PH: > check_dsp(ctx); > { > imm = (ctx->opcode >> 16) & 0x03FF; > imm = (int16_t)(imm << 6) >> 6; > tcg_gen_movi_tl(cpu_gpr[ret], \ >

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-30 Thread Peter Maydell
On 30 October 2012 15:34, Jia Liu wrote: > On Mon, Oct 29, 2012 at 9:40 PM, Jovanovic, Petar wrote: >>> imm = (int16_t)(imm << 6) >> 6; >> >> result of a bitwise shift of a signed type and a negative vlaue is >> implementation-defined, so you can not rely on that. >> > > I think it will take a 10

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-30 Thread Jia Liu
Hi Petar, On Mon, Oct 29, 2012 at 9:40 PM, Jovanovic, Petar wrote: > Hi Jia, > >> imm = (int16_t)(imm << 6) >> 6; > > result of a bitwise shift of a signed type and a negative vlaue is > implementation-defined, so you can not rely on that. > I think it will take a 10bits signed value sign extend

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-29 Thread Jovanovic, Petar
2012 1:36 PM To: Jovanovic, Petar Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions Hi Petar, On Sun, Oct 28, 2012 at 6:58 AM, Jovanovic, Petar wrote: > +case OPC_REPL_PH: > +

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-29 Thread Jia Liu
Hi Petar, On Sun, Oct 28, 2012 at 6:58 AM, Jovanovic, Petar wrote: > +case OPC_REPL_PH: > +check_dsp(ctx); > +{ > +imm = (ctx->opcode >> 16) & 0x03FF; > +tcg_gen_movi_tl(cpu_gpr[ret], \ > +(target_long

Re: [Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-27 Thread Jovanovic, Petar
+case OPC_REPL_PH: +check_dsp(ctx); +{ +imm = (ctx->opcode >> 16) & 0x03FF; +tcg_gen_movi_tl(cpu_gpr[ret], \ +(target_long)((int32_t)imm << 16 | \ +(uint32_t)(uint16_t)imm

[Qemu-devel] [PATCH v12 09/14] target-mips: Add ASE DSP bit/manipulation instructions

2012-10-24 Thread Jia Liu
Add MIPS ASE DSP Bit/Manipulation instructions. Signed-off-by: Jia Liu --- target-mips/dsp_helper.c | 55 ++ target-mips/helper.h |7 ++ target-mips/translate.c | 249 ++ 3 files changed, 311 insertions(+) diff --git a/target-mips/