notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x: hook slave sh2, BIOS passes (not much else):
[picodrive.git]
/
cpu
/
sh2mame
/
sh2.h
diff --git
a/cpu/sh2mame/sh2.h
b/cpu/sh2mame/sh2.h
index
cdcdecf
..
b83a9c4
100644
(file)
--- a/
cpu/sh2mame/sh2.h
+++ b/
cpu/sh2mame/sh2.h
@@
-39,19
+39,24
@@
typedef struct
UINT32 sr;
\r
UINT32 gbr, vbr;
\r
UINT32 mach, macl;
\r
UINT32 sr;
\r
UINT32 gbr, vbr;
\r
UINT32 mach, macl;
\r
+
\r
UINT32 ea;
\r
UINT32 delay;
\r
UINT32 test_irq;
\r
\r
UINT32 ea;
\r
UINT32 delay;
\r
UINT32 test_irq;
\r
\r
+ int pending_irq;
\r
+ void (*irq_callback)(int id, int level);
\r
+ int is_slave;
\r
+
\r
// XXX: unused, will we ever use?
\r
// XXX: unused, will we ever use?
\r
- void (*irq_callback)(void);
\r
- int nmi_line_state;
\r
int internal_irq_level;
\r
int internal_irq_level;
\r
- int is_slave;
\r
} SH2;
\r
\r
} SH2;
\r
\r
-void sh2_init(SH2 *sh2);
\r
+extern int sh2_icount;
\r
+
\r
+void sh2_init(SH2 *sh2, int is_slave);
\r
void sh2_reset(SH2 *sh2);
\r
int sh2_execute(SH2 *sh2_, int cycles);
\r
void sh2_reset(SH2 *sh2);
\r
int sh2_execute(SH2 *sh2_, int cycles);
\r
+void sh2_irl_irq(SH2 *sh2, int level);
\r
\r
#endif /* __SH2_H__ */
\r
\r
#endif /* __SH2_H__ */
\r