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:
parent
3ab1c20e5b
commit
d25733dcb0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user