update the regwptr upon reset

This commit is contained in:
mothran 2015-09-13 18:10:28 -07:00
parent 657a6c3e25
commit 7dc41a8e4e
2 changed files with 2 additions and 0 deletions

View file

@ -42,6 +42,7 @@ void sparc_reg_reset(struct uc_struct *uc)
env->pc = 0; env->pc = 0;
env->npc = 0; env->npc = 0;
env->regwptr = env->regbase;
} }
int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value) int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value)

View file

@ -25,6 +25,7 @@ void sparc_reg_reset(struct uc_struct *uc)
env->pc = 0; env->pc = 0;
env->npc = 0; env->npc = 0;
env->regwptr = env->regbase;
} }
int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value) int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value)