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
This commit is contained in:
Justin Hibbits 2016-10-19 02:23:29 +00:00
parent 3ab1c20e5b
commit d25733dcb0

View File

@ -185,8 +185,8 @@ fpu_dumpfpn(struct fpn *fp)
int
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;