mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: drc: first implementation finished, no more interpreter dep
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@832 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
4b315c210a
commit
f0d7b1faa1
11 changed files with 397 additions and 161 deletions
|
@ -33,7 +33,7 @@ typedef unsigned char UINT8;
|
|||
|
||||
#include "sh2.c"
|
||||
|
||||
#ifndef DRC_TMP
|
||||
#ifndef DRC_SH2
|
||||
|
||||
void sh2_execute(SH2 *sh2_, int cycles)
|
||||
{
|
||||
|
@ -48,6 +48,7 @@ void sh2_execute(SH2 *sh2_, int cycles)
|
|||
{
|
||||
UINT32 opcode;
|
||||
|
||||
/* FIXME: Darxide doesn't like this */
|
||||
if (sh2->test_irq && !sh2->delay && sh2->pending_level > ((sh2->sr >> 4) & 0x0f))
|
||||
{
|
||||
if (sh2->pending_irl > sh2->pending_int_irq)
|
||||
|
@ -102,7 +103,7 @@ void sh2_execute(SH2 *sh2_, int cycles)
|
|||
sh2->cycles_done += cycles - sh2->icount;
|
||||
}
|
||||
|
||||
#else // DRC_TMP
|
||||
#else // DRC_SH2
|
||||
|
||||
#ifdef __i386__
|
||||
#define REGPARM(x) __attribute__((regparm(x)))
|
||||
|
@ -110,7 +111,7 @@ void sh2_execute(SH2 *sh2_, int cycles)
|
|||
#define REGPARM(x)
|
||||
#endif
|
||||
|
||||
// tmp
|
||||
// drc debug
|
||||
void REGPARM(2) sh2_do_op(SH2 *sh2_, int opcode)
|
||||
{
|
||||
sh2 = sh2_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue