mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-21 22:31:19 +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
|
||||
use_jit = false;
|
||||
#endif
|
||||
spcflags().init();
|
||||
++ppc_refcount;
|
||||
initialize();
|
||||
}
|
||||
|
@ -41,8 +41,10 @@ class basic_spcflags
|
||||
public:
|
||||
|
||||
basic_spcflags()
|
||||
: mask(0), lock(SPIN_LOCK_UNLOCKED)
|
||||
{ }
|
||||
{ init(); }
|
||||
|
||||
void init()
|
||||
{ mask = 0; lock = SPIN_LOCK_UNLOCKED; }
|
||||
|
||||
bool empty() const
|
||||
{ return (mask == 0); }
|
||||
|
Loading…
Reference in New Issue
Block a user