diff options
Diffstat (limited to 'target-sparc/exec.h')
-rw-r--r-- | target-sparc/exec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-sparc/exec.h b/target-sparc/exec.h index 942b811897..5f48ba8e6a 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -152,6 +152,10 @@ void do_rdpsr(); static inline void env_to_regs(void) { +#if defined(reg_REGWPTR) + REGWPTR = env->regbase + (env->cwp * 16); + env->regwptr = REGWPTR; +#endif } static inline void regs_to_env(void) |