device: 0.438 instruction: 0.366 other: 0.271 mistranslation: 0.260 semantic: 0.252 network: 0.224 vnc: 0.173 assembly: 0.170 graphic: 0.147 socket: 0.129 boot: 0.063 KVM: 0.055 'mtfsf' instruction can clear FI incorrectly Using mtfsf instruction can clear the FPSCR FI bit incorrectly. This code snippet exhibits the issue: -- fpscr.ll = 0x1fffffff; __builtin_mtfsf (0b11111111, fpscr.d); fpscr.d = __builtin_mffs (); -- On POWER9 hardware: mffs : FPSCR = 0x000000007ffff7ff On qemu (git master; "-cpu POWER9"): -- $ ./mtfsf mffs : FPSCR = 0x000000007ffdffff -- Two differences: bit 52: "reserved", so maybe a "don't care" case bit 46: "FI" $ git log -1 master commit 89ea03a7dc83ca36b670ba7f787802791fcb04b1 Merge: 019217c 2531164 Author: Peter Maydell