[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PPC] FPIMM macro and mtfsfi instruction
From: |
Jocelyn Mayer |
Subject: |
Re: [Qemu-devel] [PPC] FPIMM macro and mtfsfi instruction |
Date: |
Mon, 17 Dec 2007 18:32:27 +0100 |
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...) and standard one. You're right, FPIMM should be taken
using EXTRACT_HELPER(FPIMM, 12, 4);
Thanks for the report.
> translate.c
> l344:EXTRACT_HELPER(crbD, 21, 5);
> ...
> l375:EXTRACT_HELPER(FPIMM, 20, 4); <======FPIMM must be (FPIMM, 12, 4) or
> crbB >> 1 for mtfsfi; IMM is bits[16-19] of the instruction in PPC
> programming environnement 32bit (p8-135). IMM is not one bit before crbD.
> ...
[...]
--
Jocelyn Mayer <address@hidden>