Re: [Qemu-devel] [PPC] FPIMM macro and mtfsfi instruction

2007-12-18 Thread claude vittoria
Hi Jocelyn, Thanks for the quickly answer, but I got a wrong result again. The actual version of mtfsfi translate.c:l2048 does not seem update the good flag. The programmer environnement manual 32bits gives if Rc = 1 affected : copy of FX,FEX,VX,OX flags of FPSCR into CR1 of CR. Here, I only se

Re: [Qemu-devel] [PPC] FPIMM macro and mtfsfi instruction

2007-12-17 Thread Jocelyn Mayer
On Mon, 2007-12-17 at 15:52 +0100, claude vittoria wrote: > Hi everybody, > > I think that I get a wrong result with mtfsfi instruction. > > I think to get a solution, see below. > Could you confirm my opinion ? Seems there have been (once again) a confusion between IBM bit notation (0 is MSB..

[Qemu-devel] [PPC] FPIMM macro and mtfsfi instruction

2007-12-17 Thread claude vittoria
Hi everybody, I think that I get a wrong result with mtfsfi instruction. I think to get a solution, see below. Could you confirm my opinion ? Thanks, Claude translate.c l344:EXTRACT_HELPER(crbD, 21, 5); ... l375:EXTRACT_HELPER(FPIMM, 20, 4); <==FPIMM must be (FPIMM, 12, 4) or crbB >> 1 fo