X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2mame%2Fsh2.h;fp=cpu%2Fsh2mame%2Fsh2.h;h=0000000000000000000000000000000000000000;hb=41397701210c08b9d25ca66cbe372c7ed86d6927;hp=ef2b06e6327fc1dcadb85b3e0f6e55c32bf3097d;hpb=1d29444dfc5c59987ea7bab80b8c9f03e5f2d571;p=picodrive.git diff --git a/cpu/sh2mame/sh2.h b/cpu/sh2mame/sh2.h deleted file mode 100644 index ef2b06e..0000000 --- a/cpu/sh2mame/sh2.h +++ /dev/null @@ -1,65 +0,0 @@ -/***************************************************************************** - * - * sh2.h - * Portable Hitachi SH-2 (SH7600 family) emulator interface - * - * Copyright Juergen Buchmueller , - * all rights reserved. - * - * - This source code is released as freeware for non-commercial purposes. - * - You are free to use and redistribute this code in modified or - * unmodified form, provided you list me in the credits. - * - If you modify this source code, you must add a notice to each modified - * source file that it has been changed. If you're a nice person, you - * will clearly mark each change too. :) - * - If you wish to use this for commercial purposes, please contact me at - * pullmoll@t-online.de - * - The author of this copywritten work reserves the right to change the - * terms of its usage and license at any time, including retroactively - * - This entire notice must remain in the source code. - * - * This work is based on C/C++ implementation of - * the SH-2 CPU core and was heavily changed to the MAME CPU requirements. - * Thanks also go to Chuck Mason and Olivier Galibert - * for letting me peek into their SEMU code :-) - * - *****************************************************************************/ - -#pragma once - -#ifndef __SH2_H__ -#define __SH2_H__ - -typedef struct -{ - unsigned int r[16]; - unsigned int ppc; - unsigned int pc; - unsigned int pr; - unsigned int sr; - unsigned int gbr, vbr; - unsigned int mach, macl; - - unsigned int ea; - unsigned int delay; - unsigned int test_irq; - - int pending_irl; - int pending_int_irq; // internal irq - int pending_int_vector; - void (*irq_callback)(int id, int level); - int is_slave; - - unsigned int cycles_aim; // subtract sh2_icount to get global counter -} SH2; - -SH2 *sh2; // active sh2 -extern int sh2_icount; - -void sh2_init(SH2 *sh2, int is_slave); -void sh2_reset(SH2 *sh2); -int sh2_execute(SH2 *sh2_, int cycles); -void sh2_irl_irq(SH2 *sh2, int level); -void sh2_internal_irq(SH2 *sh2, int level, int vector); - -#endif /* __SH2_H__ */