e2k: initialize wreg/wtag pointer for new threads
This commit is contained in:
parent
0b5c52a8d1
commit
985e0b8e03
@ -61,6 +61,8 @@ static inline void cpu_clone_regs_child(CPUE2KState *env, target_ulong newsp,
|
||||
env->ip = E2K_SYSRET_ADDR;
|
||||
env->pcsp = pcs;
|
||||
env->psp = ps;
|
||||
env->wreg = env->regs;
|
||||
env->wtag = env->tags;
|
||||
env->wreg[0].lo = 0;
|
||||
if (env->enable_tags) {
|
||||
env->wtag[0] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user