1
0
mirror of https://github.com/prirun/p50em.git synced 2026-01-13 15:17:32 +00:00

Cause UII for P300 paging instructions for CPUT4 T&M

This commit is contained in:
Jim 2011-08-02 14:41:16 -04:00
parent cefc0e64e8
commit 2943b41e0c
2 changed files with 13 additions and 1 deletions

View File

@ -355,6 +355,16 @@ DIGEN(001306, "MDRS", d_mdxx);
DIGEN(001307, "MDWC", d_mdxx);
DIGEN(001324, "MDIW", d_mdxx);
DIGEN(000217, "EPMJ", d_uii);
DIGEN(000215, "LPMJ", d_uii);
DIGEN(000237, "EPMX", d_uii);
DIGEN(000235, "LPMX", d_uii);
DIGEN(000703, "EVMJ", d_uii);
DIGEN(000701, "ERMJ", d_uii);
DIGEN(000723, "EVMX", d_uii);
DIGEN(000721, "ERMX", d_uii);
DIGEN(000515, "OSI", d_uii);
/* initialize entire class 1 generics (shift group) to "badshift",
then initialize each individual shift instruction */

4
em.c
View File

@ -5954,8 +5954,10 @@ d_sttm: /* 000510 */
/* OS/restricted instructions */
d_rts: /* 000511 */
TRACE(T_FLOW, " RTS\n", inst);
TRACE(T_FLOW, " RTS / P300ISI\n", inst);
RESTRICT();
if (((crs[KEYS] & 016000) >> 10) <= 3)
goto d_uii;
tempa = crs[TIMERH];
templ = tempa - *(short *)(crs+A);
ea = *(ea_t *)(crs+OWNER);