Author: jhibbits
Date: Wed Oct 19 02:23:29 2016
New Revision: 307598

  Un-static two local variables in the FPU emulator
  Static variables aren't MP-safe, and this was causing bizarre segfaults on a
  dual-core e500v2 system (P1022).
  Still left is one static variable, which should be moved into the pcb instead,
  but as illegal instructions haven't been hit yet, it's lower priority.
  MFC after:    1 week


Modified: head/sys/powerpc/fpu/fpu_emu.c
--- head/sys/powerpc/fpu/fpu_emu.c      Wed Oct 19 02:20:48 2016        
+++ head/sys/powerpc/fpu/fpu_emu.c      Wed Oct 19 02:23:29 2016        
@@ -185,8 +185,8 @@ fpu_dumpfpn(struct fpn *fp)
 fpu_emulate(struct trapframe *frame, struct fpu *fpf)
-       static union instr insn;
-       static struct fpemu fe;
+       union instr insn;
+       struct fpemu fe;
        static int lastill = 0;
        int sig;
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to