e2k: initialize wreg/wtag pointer for new threads

This commit is contained in:
Denis Drakhnia 2024-01-13 07:49:02 +02:00
parent 0b5c52a8d1
commit 985e0b8e03

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;