mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-16 14:30:34 +00:00
fix freezing bug on launch
This commit is contained in:
parent
5b31736785
commit
1da83854b0
@ -372,6 +372,7 @@ powerpc_cpu::powerpc_cpu(task_struct *parent_task)
|
|||||||
#if PPC_ENABLE_JIT
|
#if PPC_ENABLE_JIT
|
||||||
use_jit = false;
|
use_jit = false;
|
||||||
#endif
|
#endif
|
||||||
|
spcflags().init();
|
||||||
++ppc_refcount;
|
++ppc_refcount;
|
||||||
initialize();
|
initialize();
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,10 @@ class basic_spcflags
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
basic_spcflags()
|
basic_spcflags()
|
||||||
: mask(0), lock(SPIN_LOCK_UNLOCKED)
|
{ init(); }
|
||||||
{ }
|
|
||||||
|
void init()
|
||||||
|
{ mask = 0; lock = SPIN_LOCK_UNLOCKED; }
|
||||||
|
|
||||||
bool empty() const
|
bool empty() const
|
||||||
{ return (mask == 0); }
|
{ return (mask == 0); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user