- Cleanup and organizational changes of VU related stuff.
- Separated Super VU, microVU, and Interpreter files.
- Renamed all Super VU related files with an 'sVU' prefix.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1356 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2009-06-11 09:02:10 +00:00
parent bd229032c0
commit f8a94b15ff
24 changed files with 11972 additions and 11988 deletions

View File

@ -221,7 +221,7 @@ v0.9.1:
* 05/08/05:[+] Added faster Cd/DVD reads to the Advanced options (Refraction)
[-] The previous DVD/CD change by ref was just a hack, so i commited the old
version again
[-] I've commented out RECOMPILE_VUMI_LOADSTORE on iVUmicro.h, instead
[-] I've commented out RECOMPILE_VUMI_LOADSTORE on sVU_Micro.h, instead
of commenting it out in iVU1micro.c as ref did on last update,
that way is better until i fix the real problem
[*] Improved vuDIV for .x to .x cases

View File

@ -33,7 +33,7 @@
#include "VUmicro.h"
#include "VU.h"
#include "iCore.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#include "BaseblockEx.h" // included for devbuild block dumping (which may or may not work anymore?)
#include "GS.h"

View File

@ -25,7 +25,7 @@
#include "VUmicro.h"
#include "VU.h"
#include "iCore.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#include "GS.h"
#include "COP0.h"

View File

@ -25,7 +25,7 @@
#include "iR5900.h"
#include "R3000A.h"
#include "IopMem.h"
#include "iVUzerorec.h" // for SuperVUReset
#include "sVU_zerorec.h" // for SuperVUReset
#include "R5900Exceptions.h"

View File

@ -32,7 +32,7 @@
#include "VUflags.h"
#include "VUops.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
using namespace R5900;

View File

@ -27,8 +27,8 @@
#include "VU.h"
#include "VUops.h"
#include "VUmicro.h"
#include "iVUmicro.h"
#include "iVUzerorec.h"
#include "sVU_Micro.h"
#include "sVU_zerorec.h"
VURegs* g_pVU1;

View File

@ -16,9 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __VUFLAGS_H__
#define __VUFLAGS_H__
#pragma once
#include "VU.h"
void vuUpdateDI(VURegs * VU);
@ -33,7 +31,3 @@ __forceinline void VU_MACz_CLEAR(VURegs * VU);
__forceinline void VU_MACw_CLEAR(VURegs * VU);
void VU_STAT_UPDATE(VURegs * VU);
#endif

View File

@ -16,9 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __VUMICRO_H__
#define __VUMICRO_H__
#pragma once
#include "VU.h"
struct VUmicroCpu
@ -1315,6 +1313,3 @@ void (*PREFIX##_LOWER_OPCODE[128])(_VURegsNum *VUregsn) = { \
#endif
#include "VUops.h"
#endif

View File

@ -18,13 +18,10 @@
#include "PrecompiledHeader.h"
#include <cmath>
#include "Common.h"
#include "R5900.h"
#include "VUmicro.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
// The following CpuVU objects are value types instead of handles or pointers because they are
// modified on the fly to implement VU1 Skip.

View File

@ -16,9 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __VU1OPS_H__
#define __VU1OPS_H__
#pragma once
#include "VU.h"
extern __forceinline u32 VU_MAC_UPDATE( int shift, VURegs * VU, float f);
@ -395,5 +393,3 @@ void _vuRegsEEXP(VURegs * VU, _VURegsNum *VUregsn);
void _vuRegsXITOP(VURegs * VU, _VURegsNum *VUregsn);
void _vuRegsXGKICK(VURegs * VU, _VURegsNum *VUregsn);
void _vuRegsXTOP(VURegs * VU, _VURegsNum *VUregsn);
#endif

View File

@ -2025,26 +2025,10 @@
RelativePath="..\..\VU0micro.cpp"
>
</File>
<File
RelativePath="..\..\VU0microInterp.cpp"
>
</File>
<File
RelativePath="..\..\VU1micro.cpp"
>
</File>
<File
RelativePath="..\..\VU1microInterp.cpp"
>
</File>
<File
RelativePath="..\..\VUflags.cpp"
>
</File>
<File
RelativePath="..\..\VUflags.h"
>
</File>
<File
RelativePath="..\..\VUmicro.h"
>
@ -2053,14 +2037,6 @@
RelativePath="..\..\VUmicroMem.cpp"
>
</File>
<File
RelativePath="..\..\VUops.cpp"
>
</File>
<File
RelativePath="..\..\VUops.h"
>
</File>
<Filter
Name="Dynarec"
>
@ -2072,34 +2048,6 @@
RelativePath="..\..\x86\iVU1micro.cpp"
>
</File>
<File
RelativePath="..\..\x86\iVUmicro.cpp"
>
</File>
<File
RelativePath="..\..\x86\iVUmicro.h"
>
</File>
<File
RelativePath="..\..\x86\iVUmicroLower.cpp"
>
</File>
<File
RelativePath="..\..\x86\iVUmicroUpper.cpp"
>
</File>
<File
RelativePath="..\..\x86\iVUops.h"
>
</File>
<File
RelativePath="..\..\x86\iVUzerorec.cpp"
>
</File>
<File
RelativePath="..\..\x86\iVUzerorec.h"
>
</File>
<Filter
Name="microVU"
>
@ -2160,6 +2108,66 @@
>
</File>
</Filter>
<Filter
Name="Super VU"
>
<File
RelativePath="..\..\x86\sVU_Debug.h"
>
</File>
<File
RelativePath="..\..\x86\sVU_Lower.cpp"
>
</File>
<File
RelativePath="..\..\x86\sVU_Micro.cpp"
>
</File>
<File
RelativePath="..\..\x86\sVU_Micro.h"
>
</File>
<File
RelativePath="..\..\x86\sVU_Upper.cpp"
>
</File>
<File
RelativePath="..\..\x86\sVU_zerorec.cpp"
>
</File>
<File
RelativePath="..\..\x86\sVU_zerorec.h"
>
</File>
</Filter>
</Filter>
<Filter
Name="Interpreter"
>
<File
RelativePath="..\..\VU0microInterp.cpp"
>
</File>
<File
RelativePath="..\..\VU1microInterp.cpp"
>
</File>
<File
RelativePath="..\..\VUflags.cpp"
>
</File>
<File
RelativePath="..\..\VUflags.h"
>
</File>
<File
RelativePath="..\..\VUops.cpp"
>
</File>
<File
RelativePath="..\..\VUops.h"
>
</File>
</Filter>
</Filter>
<Filter

View File

@ -27,7 +27,7 @@
#include "R5900.h"
#include "R5900OpcodeTables.h"
#include "VUmicro.h"
#include "iVUmicro.h"
#include "sVU_Micro.h"
extern void _vu0WaitMicro();

View File

@ -20,7 +20,7 @@
#define _PCSX2_CORE_RECOMPILER_
#include "ix86/ix86.h"
#include "iVUmicro.h"
#include "sVU_Micro.h"
// Namespace Note : iCore32 contains all of the Register Allocation logic, in addition to a handful
// of utility functions for emitting frequent code.

View File

@ -21,7 +21,7 @@
#include "Common.h"
#include "iR5900.h"
#include "VUmicro.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#define useMVU0 CHECK_MICROVU0

View File

@ -18,13 +18,10 @@
#include "PrecompiledHeader.h"
#include <float.h>
#include "Common.h"
#include "R5900OpcodeTables.h"
#include "iR5900.h"
#include "VUmicro.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#define useMVU1 CHECK_MICROVU1

View File

@ -36,11 +36,11 @@
#include "iMMI.h"
#include "iFPU.h"
#include "iCOP0.h"
#include "iVUmicro.h"
#include "sVU_Micro.h"
#include "VU.h"
#include "VUmicro.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#include "vtlb.h"
#include "SamplProf.h"

View File

@ -26,11 +26,11 @@
#include "iMMI.h"
#include "iFPU.h"
#include "iCOP0.h"
#include "iVUmicro.h"
#include "sVU_Micro.h"
#include "VU.h"
#include "VUmicro.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#include "vtlb.h"

View File

@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#pragma once
#define REC_VUOP(VU, f) { \
_freeXMMregs(/*&VU*/); \
_freeMMXregs(); \

View File

@ -27,9 +27,9 @@
#include "iCOP0.h"
#include "VUmicro.h"
#include "VUflags.h"
#include "iVUmicro.h"
#include "iVUops.h"
#include "iVUzerorec.h"
#include "sVU_Micro.h"
#include "sVU_Debug.h"
#include "sVU_zerorec.h"
//------------------------------------------------------------------
//------------------------------------------------------------------

View File

@ -27,9 +27,9 @@
#include "iCOP0.h"
#include "VUmicro.h"
#include "VUflags.h"
#include "iVUmicro.h"
#include "iVUops.h"
#include "iVUzerorec.h"
#include "sVU_Micro.h"
#include "sVU_Debug.h"
#include "sVU_zerorec.h"
#ifdef _WIN32
#pragma warning(disable:4244)

View File

@ -16,8 +16,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __IVUMICRO_H__
#define __IVUMICRO_H__
#pragma once
#include "VUmicro.h"
@ -285,4 +284,3 @@ void recVUMI_XTOP(VURegs *vuRegs, int info);
void recVUMI_XITOP(VURegs *vuRegs, int info);
void recVUMI_XTOP( VURegs *VU , int info);
#endif /* __IVUMICRO_H__ */

View File

@ -27,9 +27,9 @@
#include "iCOP0.h"
#include "VUmicro.h"
#include "VUflags.h"
#include "iVUmicro.h"
#include "iVUops.h"
#include "iVUzerorec.h"
#include "sVU_Micro.h"
#include "sVU_Debug.h"
#include "sVU_zerorec.h"
//------------------------------------------------------------------
#define MINMAXFIX 1
//------------------------------------------------------------------

View File

@ -37,7 +37,7 @@
#include "VU.h"
#include "iR5900.h"
#include "iVUzerorec.h"
#include "sVU_zerorec.h"
#include "SamplProf.h"
#include "NakedAsm.h"

View File

@ -18,10 +18,9 @@
// Super VU recompiler - author: zerofrog(@gmail.com)
#ifndef VU1_SUPER_RECOMPILER
#define VU1_SUPER_RECOMPILER
#pragma once
#include "iVUmicro.h"
#include "sVU_Micro.h"
extern void SuperVUAlloc(int vuindex); // global VU resources are automatically allocated if necessary.
extern void SuperVUDestroy(int vuindex); // if vuindex is -1, destroys everything
@ -46,5 +45,3 @@ extern u32 SuperVUGetVIAddr(int reg, int read);
// if p == 0, flush q else flush p; if wait is != 0, waits for p/q
extern void SuperVUFlush(int p, int wait);
#endif