+ if (!nested_call) {
+ // not in memhandler, so handle this now (recompiler friendly)
+ // do this to avoid missing irqs that other SH2 might clear
+ if (level > ((sh2->sr >> 4) & 0x0f)) {
+ int vector = sh2->irq_callback(sh2, level);
+ sh2_do_irq(sh2, level, vector);
+ }
+ }
+ else
+ sh2->test_irq = 1;