e2k: initialize wreg/wtag pointer for new threads

This commit is contained in:
Denis Drakhnia 2024-01-13 07:49:02 +02:00
parent 082cb4000a
commit 44c6929f44
1 changed files with 2 additions and 0 deletions

View File

@ -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;