daedalus/Source/Core/R4300.h
Howard Su e2f3183177
Fix release build (#46)
* Perf critial structures needs to be C-array instead of c++ array

* Temp fix only disable optimization in Core

* fix a buffer overflow

* Fix build on Linux
2023-12-05 09:02:33 +08:00

43 lines
1.3 KiB
C

/*
Copyright (C) 2001 StrmnNrmn
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef CORE_R4300_H_
#define CORE_R4300_H_
#include "Core/R4300OpCode.h"
#include "Core/R4300Instruction.h"
void R4300_SetSR( u32 new_value );
extern CPU_Instruction R4300Instruction[64];
extern CPU_Instruction R4300Cop1DInstruction[64];
inline CPU_Instruction R4300_GetDInstructionHandler( OpCode op_code )
{
return R4300Cop1DInstruction[ op_code.cop1_funct ];
}
CPU_Instruction R4300_GetInstructionHandler( OpCode op_code );
bool R4300_InstructionHandlerNeedsPC( OpCode op_code );
inline void R4300_ExecuteInstruction( OpCode op_code )
{
R4300Instruction[ op_code.op ]( op_code._u32 );
}
#endif // CORE_R4300_H_