Skip to contentSkip to conversation

Patch ppc: fix mtfsfi

Qemu-devel Tristan Gingold 1 participant 1 message May 28, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

according to PPC documentation the IMM field (of mtfsfi instruction) is on bits 16-19 (BE order), ie bits 12-15.
The macro FPIMM was wrongly defined. This patch fixes it.

Tristan.

translate.c +1 -1
Index: target-ppc/translate.c
===================================================================
@@ -362,7 +362,7 @@
 EXTRACT_HELPER(CRM, 12, 8);
 EXTRACT_HELPER(FM, 17, 8);
 EXTRACT_HELPER(SR, 16, 4);
-EXTRACT_HELPER(FPIMM, 20, 4);
+EXTRACT_HELPER(FPIMM, 12, 4);
 
 /***                            Jump target decoding                       ***/
 /* Displacement */