mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2, fix for interpreter crash if drc is compiled in too
This commit is contained in:
parent
1426b7569e
commit
b1ccc27109
3 changed files with 7 additions and 3 deletions
|
@ -72,11 +72,11 @@ extern void REGPARM(1) (*sh2_drc_restore_sr)(SH2 *sh2);
|
|||
#define DRC_DECLARE_SR register long _sh2_sr asm(DRC_SR_REG)
|
||||
#endif
|
||||
#define DRC_SAVE_SR(sh2) \
|
||||
if (likely((sh2->state&(SH2_STATE_RUN|SH2_STATE_SLEEP)) == SH2_STATE_RUN)) \
|
||||
if (likely(sh2->state & SH2_IN_DRC)) \
|
||||
sh2->sr = (s32)_sh2_sr
|
||||
// sh2_drc_save_sr(sh2)
|
||||
#define DRC_RESTORE_SR(sh2) \
|
||||
if (likely((sh2->state&(SH2_STATE_RUN|SH2_STATE_SLEEP)) == SH2_STATE_RUN)) \
|
||||
if (likely(sh2->state & SH2_IN_DRC)) \
|
||||
_sh2_sr = (s32)sh2->sr
|
||||
// sh2_drc_restore_sr(sh2)
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue