mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 13:45:40 +00:00
update the regwptr upon reset
This commit is contained in:
parent
657a6c3e25
commit
7dc41a8e4e
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue