Re: [Qemu-devel] [RFC 3/6] target-ppc: adding addpcis instruction

2016-07-21 Thread Nikunj A Dadhania
Richard Henderson writes: > On 07/12/2016 11:33 PM, Nikunj A Dadhania wrote: >> +static void gen_addpcis(DisasContext *ctx) >> +{ >> +target_long d = DX(ctx->opcode); >> + >> +tcg_gen_movi_tl(cpu_gpr[rD(ctx->opcode)], ctx->nip); >> +tcg_gen_addi_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rD

Re: [Qemu-devel] [RFC 3/6] target-ppc: adding addpcis instruction

2016-07-20 Thread Richard Henderson
On 07/12/2016 11:33 PM, Nikunj A Dadhania wrote: +static void gen_addpcis(DisasContext *ctx) +{ +target_long d = DX(ctx->opcode); + +tcg_gen_movi_tl(cpu_gpr[rD(ctx->opcode)], ctx->nip); +tcg_gen_addi_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rD(ctx->opcode)], d); +} (1) You appear to hav

Re: [Qemu-devel] [RFC 3/6] target-ppc: adding addpcis instruction

2016-07-17 Thread David Gibson
On Tue, Jul 12, 2016 at 11:33:19PM +0530, Nikunj A Dadhania wrote: > ISA 3.0 instruction for adding immediate value with next instruction > address and return the result in the target register. > > Signed-off-by: Nikunj A Dadhania Reviewed-by: David Gibson > --- > target-ppc/translate.c | 27

[Qemu-devel] [RFC 3/6] target-ppc: adding addpcis instruction

2016-07-12 Thread Nikunj A Dadhania
ISA 3.0 instruction for adding immediate value with next instruction address and return the result in the target register. Signed-off-by: Nikunj A Dadhania --- target-ppc/translate.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/target-ppc/translate.c b/target-