X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2mame%2Fsh2.h;h=97520f30b696b7815e0bd478fd201090e67d1710;hb=4ea707e1e38b7ca204a5012f617018d0ea5eced2;hp=6684d1144e22d83603ca722761f4ea16fd80e86d;hpb=bca23c1c797cf33c2c6812962c479398e644f0aa;p=picodrive.git diff --git a/cpu/sh2mame/sh2.h b/cpu/sh2mame/sh2.h index 6684d11..97520f3 100644 --- a/cpu/sh2mame/sh2.h +++ b/cpu/sh2mame/sh2.h @@ -39,13 +39,15 @@ typedef struct UINT32 sr; UINT32 gbr, vbr; UINT32 mach, macl; + UINT32 ea; UINT32 delay; UINT32 test_irq; + int pending_irq; + void (*irq_callback)(int level); + // XXX: unused, will we ever use? - void (*irq_callback)(void); - int nmi_line_state; int internal_irq_level; int is_slave; } SH2; @@ -55,5 +57,6 @@ extern int sh2_icount; void sh2_init(SH2 *sh2); void sh2_reset(SH2 *sh2); int sh2_execute(SH2 *sh2_, int cycles); +void sh2_irl_irq(SH2 *sh2, int level); #endif /* __SH2_H__ */