mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 23:37: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
|
@ -5392,7 +5392,10 @@ int sh2_execute_drc(SH2 *sh2c, int cycles)
|
|||
// others are usual SH2 flags
|
||||
sh2c->sr &= 0x3f3;
|
||||
sh2c->sr |= cycles << 12;
|
||||
|
||||
sh2c->state |= SH2_IN_DRC;
|
||||
sh2_drc_entry(sh2c);
|
||||
sh2c->state &= ~SH2_IN_DRC;
|
||||
|
||||
// TODO: irq cycles
|
||||
ret_cycles = (int32_t)sh2c->sr >> 12;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue