diff --git a/3rdparty/SoundTouch/CMakeLists.txt b/3rdparty/SoundTouch/CMakeLists.txt
index 507cd26e3d..12f41a4833 100644
--- a/3rdparty/SoundTouch/CMakeLists.txt
+++ b/3rdparty/SoundTouch/CMakeLists.txt
@@ -4,7 +4,6 @@
set(SoundTouchName pcsx2_SoundTouch)
set(CommonFlags
- -m32
-march=athlon-xp
-march=prescott
)
@@ -61,6 +60,3 @@ set(SoundTouchHeaders
# add library
add_library(${SoundTouchName} STATIC ${SoundTouchSources} ${SoundTouchHeaders})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${SoundTouchName} -m32)
diff --git a/3rdparty/bzip2/CMakeLists.txt b/3rdparty/bzip2/CMakeLists.txt
index b07b2f62cd..3cd77f38f7 100644
--- a/3rdparty/bzip2/CMakeLists.txt
+++ b/3rdparty/bzip2/CMakeLists.txt
@@ -4,7 +4,6 @@
set(bzip2Name pcsx2_bzip2)
set(CommonFlags
- -m32
-march=athlon-xp
-march=prescott
)
@@ -49,6 +48,3 @@ set(bzip2Headers
# add library
add_library(${bzip2Name} STATIC ${bzip2Sources} ${bzip2Headers})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${bzip2Name} -m32)
diff --git a/3rdparty/liba52/CMakeLists.txt b/3rdparty/liba52/CMakeLists.txt
index e3649cf177..d6e5a60df0 100644
--- a/3rdparty/liba52/CMakeLists.txt
+++ b/3rdparty/liba52/CMakeLists.txt
@@ -5,7 +5,6 @@ set(a52Name pcsx2_a52)
set(CommonFlags
-Wall
- -m32
-g
)
@@ -54,6 +53,3 @@ set(a52Headers
# add library
add_library(${a52Name} STATIC ${a52Sources} ${a52Headers})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${a52Name} -m32)
diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt
index 1d9d9ea5fb..bf30474347 100644
--- a/3rdparty/zlib/CMakeLists.txt
+++ b/3rdparty/zlib/CMakeLists.txt
@@ -5,7 +5,6 @@ set(zlibName pcsx2_zlib)
set(CommonFlags
-W
- -m32
)
set(OptimizationFlags
@@ -64,7 +63,3 @@ inftrees.h )
# add library
add_library(${zlibName} STATIC ${zlibSources} ${zlibHeaders})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${zlibName} -m32)
-
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 69ed9b1b40..4182f0342d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,7 +36,8 @@ endif(EXISTS "${PROJECT_SOURCE_DIR}/3rdparty")
# make common
if(common_libs)
- add_subdirectory(common)
+ add_subdirectory(common/src/Utilities)
+ add_subdirectory(common/src/x86emitter)
endif(common_libs)
# make tools
diff --git a/cmake/BuildParameters.cmake b/cmake/BuildParameters.cmake
index 2160b4cb82..89a3312c2a 100644
--- a/cmake/BuildParameters.cmake
+++ b/cmake/BuildParameters.cmake
@@ -8,8 +8,36 @@
### Add some flags to the build process
# control C flags : -DUSER_CMAKE_C_FLAGS="cflags"
# control C++ flags : -DUSER_CMAKE_CXX_FLAGS="cxxflags"
+# control link flags : -DUSER_CMAKE_LD_FLAGS="ldflags"
#-------------------------------------------------------------------------------
+#-------------------------------------------------------------------------------
+# if no build type is set, use Devel as default
+# Note without the CMAKE_BUILD_TYPE options the value is still defined to ""
+# Ensure that the value set by the User is correct to avoid some bad behavior later
+#-------------------------------------------------------------------------------
+if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release")
+ set(CMAKE_BUILD_TYPE Devel)
+ message(STATUS "BuildType set to ${CMAKE_BUILD_TYPE} by default")
+endif(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release")
+#-------------------------------------------------------------------------------
+
+#-------------------------------------------------------------------------------
+# Set default strip option. Can be set with -DCMAKE_BUILD_STRIP=TRUE/FALSE
+#-------------------------------------------------------------------------------
+if(NOT DEFINED CMAKE_BUILD_STRIP)
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
+ set(CMAKE_BUILD_STRIP TRUE)
+ message(STATUS "Enable the stripping by default in ${CMAKE_BUILD_TYPE} build !!!")
+ else(CMAKE_BUILD_TYPE STREQUAL "Release")
+ set(CMAKE_BUILD_STRIP FALSE)
+ message(STATUS "Disable the stripping by default in ${CMAKE_BUILD_TYPE} build !!!")
+ endif(CMAKE_BUILD_TYPE STREQUAL "Release")
+endif(NOT DEFINED CMAKE_BUILD_STRIP)
+
+#-------------------------------------------------------------------------------
+# Control GCC flags
+#-------------------------------------------------------------------------------
### Cmake set default value for various compilation variable
### Here the list of default value for documentation purpose
# ${CMAKE_SHARED_LIBRARY_CXX_FLAGS} = "-fPIC"
@@ -46,46 +74,46 @@ set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
#-------------------------------------------------------------------------------
# Allow user to set some default flags
-# By default do not use any flags
+# Note: string STRIP must be used to remove trailing and leading spaces.
+# See policy CMP0004
#-------------------------------------------------------------------------------
+### linker flags
+if(DEFINED USER_CMAKE_LD_FLAGS)
+ message(STATUS "Pcsx2 is very sensible with gcc flags, so use USER_CMAKE_LD_FLAGS at your own risk !!!")
+ string(STRIP "${USER_CMAKE_LD_FLAGS}" USER_CMAKE_LD_FLAGS)
+else(DEFINED USER_CMAKE_LD_FLAGS)
+ set(USER_CMAKE_LD_FLAGS "")
+endif(DEFINED USER_CMAKE_LD_FLAGS)
+
+# ask the linker to strip the binary
+if(CMAKE_BUILD_STRIP)
+ string(STRIP "${USER_CMAKE_LD_FLAGS} -s" USER_CMAKE_LD_FLAGS)
+endif(CMAKE_BUILD_STRIP)
+
+
+### c flags
+# Note CMAKE_C_FLAGS is also send to the linker.
+# By default allow build on amd64 machine
if(DEFINED USER_CMAKE_C_FLAGS)
message(STATUS "Pcsx2 is very sensible with gcc flags, so use USER_CMAKE_C_FLAGS at your own risk !!!")
- set(CMAKE_C_FLAGS "${USER_CMAKE_C_FLAGS}")
+ string(STRIP "${USER_CMAKE_C_FLAGS} ${USER_CMAKE_LD_FLAGS} -m32" CMAKE_C_FLAGS)
else(DEFINED USER_CMAKE_C_FLAGS)
- set(CMAKE_C_FLAGS "")
+ string(STRIP "${USER_CMAKE_LD_FLAGS} -m32" CMAKE_C_FLAGS)
endif(DEFINED USER_CMAKE_C_FLAGS)
+
+### C++ flags
+# Note CMAKE_CXX_FLAGS is also send to the linker.
+# By default allow build on amd64 machine
if(DEFINED USER_CMAKE_CXX_FLAGS)
message(STATUS "Pcsx2 is very sensible with gcc flags, so use USER_CMAKE_CXX_FLAGS at your own risk !!!")
- set(CMAKE_CXX_FLAGS "${USER_CMAKE_CXX_FLAGS}")
+ string(STRIP "${USER_CMAKE_CXX_FLAGS}" CMAKE_CXX_FLAGS)
+ string(STRIP "${USER_CMAKE_CXX_FLAGS} ${USER_CMAKE_LD_FLAGS} -m32" CMAKE_CXX_FLAGS)
else(DEFINED USER_CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "")
+ string(STRIP "${USER_CMAKE_LD_FLAGS} -m32" CMAKE_CXX_FLAGS)
endif(DEFINED USER_CMAKE_CXX_FLAGS)
-#-------------------------------------------------------------------------------
-# if no build type is set, use Devel as default
-# Note without the CMAKE_BUILD_TYPE options the value is still defined to ""
-# Ensure that the value set by the User is correct to avoid some bad behavior later
-#-------------------------------------------------------------------------------
-if(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release")
- set(CMAKE_BUILD_TYPE Devel)
- message(STATUS "BuildType set to ${CMAKE_BUILD_TYPE} by default")
-endif(NOT CMAKE_BUILD_TYPE MATCHES "Debug|Devel|Release")
-#-------------------------------------------------------------------------------
-
-#-------------------------------------------------------------------------------
-# Set default strip option. Can be set with -DCMAKE_BUILD_STRIP=TRUE/FALSE
-#-------------------------------------------------------------------------------
-if(NOT DEFINED CMAKE_BUILD_STRIP)
- if(CMAKE_BUILD_TYPE STREQUAL "Release")
- set(CMAKE_BUILD_STRIP TRUE)
- message(STATUS "Enable the stripping by default in ${CMAKE_BUILD_TYPE} build !!!")
- else(CMAKE_BUILD_TYPE STREQUAL "Release")
- set(CMAKE_BUILD_STRIP FALSE)
- message(STATUS "Disable the stripping by default in ${CMAKE_BUILD_TYPE} build !!!")
- endif(CMAKE_BUILD_TYPE STREQUAL "Release")
-endif(NOT DEFINED CMAKE_BUILD_STRIP)
-
#-------------------------------------------------------------------------------
# Select library system vs 3rdparty
#-------------------------------------------------------------------------------
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
deleted file mode 100644
index 84e33ce195..0000000000
--- a/common/CMakeLists.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-# src
-add_subdirectory(src)
-
-
diff --git a/common/build/Utilities/Utilities.cbp b/common/build/Utilities/Utilities.cbp
index 0d7fbbe596..cfcfeb77ea 100644
--- a/common/build/Utilities/Utilities.cbp
+++ b/common/build/Utilities/Utilities.cbp
@@ -64,8 +64,6 @@
-
-
@@ -110,8 +108,6 @@
-
-
@@ -134,6 +130,7 @@
+
@@ -208,10 +205,7 @@
-
-
-
-
+
diff --git a/common/build/Utilities/utilities.vcproj b/common/build/Utilities/utilities.vcproj
index 9451b1a18c..d97f085b52 100644
--- a/common/build/Utilities/utilities.vcproj
+++ b/common/build/Utilities/utilities.vcproj
@@ -227,6 +227,10 @@
RelativePath="..\..\src\Utilities\x86\MemcpyFast.cpp"
>
+
+
diff --git a/common/include/Utilities/MemcpyFast.h b/common/include/Utilities/MemcpyFast.h
index fa3b017746..c8f7e64b2f 100644
--- a/common/include/Utilities/MemcpyFast.h
+++ b/common/include/Utilities/MemcpyFast.h
@@ -125,10 +125,14 @@
// Only used in the Windows version of memzero.h. But it's in Misc.cpp for some reason.
void _memset16_unaligned( void* dest, u16 data, size_t size );
-#define memcpy_fast memcpy_amd_ // Fast memcpy
-#define memcpy_aligned(d,s,c) memcpy_amd_(d,s,c) // Memcpy with 16-byte Aligned addresses
-#define memcpy_const memcpy_amd_ // Memcpy with constant size
-#define memcpy_constA memcpy_amd_ // Memcpy with constant size and 16-byte aligned
+// MemcpyVibes.cpp functions
+extern void memcpy_vibes(void * dest, const void * src, int size);
+extern void gen_memcpy_vibes();
+#define memcpy_fast memcpy_amd_ // Fast memcpy
+#define memcpy_aligned(d,s,c) memcpy_amd_(d,s,c) // Memcpy with 16-byte Aligned addresses
+#define memcpy_const memcpy_amd_ // Memcpy with constant size
+#define memcpy_constA memcpy_amd_ // Memcpy with constant size and 16-byte aligned
+#define memcpy_qwc_ memcpy_vibes // Memcpy in aligned qwc increments, with 0x400 qwc or less
#define memcpy_qwc(d,s,c) memcpy_amd_qwc(d,s,c)
//#define memcpy_qwc(d,s,c) memcpy_amd_(d,s,c*16)
diff --git a/common/include/Utilities/win_memzero.h b/common/include/Utilities/win_memzero.h
index 5207002cdc..639fba6b71 100644
--- a/common/include/Utilities/win_memzero.h
+++ b/common/include/Utilities/win_memzero.h
@@ -73,6 +73,10 @@ static __forceinline void memzero_ptr( void *dest )
return;
}
+#if 0
+ // SSE-based memory clear. Currently disabled so to avoid unnecessary dependence on
+ // SSE cpu instruction sets. (memzero typically isn't used in any performance critical
+ // situations anyway)
enum
{
remainder = MZFbytes & 127,
@@ -86,8 +90,6 @@ static __forceinline void memzero_ptr( void *dest )
if( (MZFbytes & 0xf) == 0 )
{
- u64 _xmm_backup[2];
-
if( ((uptr)dest & 0xf) != 0 )
{
// UNALIGNED COPY MODE.
@@ -97,24 +99,21 @@ static __forceinline void memzero_ptr( void *dest )
{
__asm
{
- movups _xmm_backup,xmm0;
mov ecx,dest
pxor xmm0,xmm0
mov eax,bytes128
- align 16
-
_loop_6:
- movups [ecx],xmm0;
- movups [ecx+0x10],xmm0;
- movups [ecx+0x20],xmm0;
- movups [ecx+0x30],xmm0;
- movups [ecx+0x40],xmm0;
- movups [ecx+0x50],xmm0;
- movups [ecx+0x60],xmm0;
- movups [ecx+0x70],xmm0;
+ movups [ecx],xmm0
+ movups [ecx+0x10],xmm0
+ movups [ecx+0x20],xmm0
+ movups [ecx+0x30],xmm0
+ movups [ecx+0x40],xmm0
+ movups [ecx+0x50],xmm0
+ movups [ecx+0x60],xmm0
+ movups [ecx+0x70],xmm0
sub ecx,-128
- dec eax;
+ sub eax,1
jnz _loop_6;
}
if( remainder != 0 )
@@ -130,10 +129,6 @@ static __forceinline void memzero_ptr( void *dest )
jnz _loop_5;
}
}
- __asm
- {
- movups xmm0,[_xmm_backup];
- }
return;
}
}
@@ -145,24 +140,21 @@ static __forceinline void memzero_ptr( void *dest )
__asm
{
- movups _xmm_backup,xmm0;
mov ecx,dest
pxor xmm0,xmm0
mov eax,bytes128
- align 16
-
_loop_8:
- movaps [ecx],xmm0;
- movaps [ecx+0x10],xmm0;
- movaps [ecx+0x20],xmm0;
- movaps [ecx+0x30],xmm0;
- movaps [ecx+0x40],xmm0;
- movaps [ecx+0x50],xmm0;
- movaps [ecx+0x60],xmm0;
- movaps [ecx+0x70],xmm0;
+ movaps [ecx],xmm0
+ movaps [ecx+0x10],xmm0
+ movaps [ecx+0x20],xmm0
+ movaps [ecx+0x30],xmm0
+ movaps [ecx+0x40],xmm0
+ movaps [ecx+0x50],xmm0
+ movaps [ecx+0x60],xmm0
+ movaps [ecx+0x70],xmm0
sub ecx,-128
- dec eax;
+ sub eax,1
jnz _loop_8;
}
if( remainder != 0 )
@@ -173,18 +165,15 @@ static __forceinline void memzero_ptr( void *dest )
mov eax, remainder
_loop_10:
- movaps [ecx+eax],xmm0;
+ movaps [ecx+eax],xmm0
sub eax,16;
jnz _loop_10;
}
}
- __asm
- {
- movups xmm0,[_xmm_backup];
- }
return;
}
}
+ #endif
// This function only works on 32-bit alignments.
pxAssume( (MZFbytes & 0x3) == 0 );
@@ -271,8 +260,6 @@ static __forceinline void memset_8( void *dest )
return;
}
- //u64 _xmm_backup[2];
-
/*static const size_t remainder = MZFbytes & 127;
static const size_t bytes128 = MZFbytes / 128;
if( bytes128 > 32 )
@@ -283,7 +270,6 @@ static __forceinline void memset_8( void *dest )
__asm
{
- movups _xmm_backup,xmm0;
mov eax,bytes128
mov ecx,dest
movss xmm0,data
@@ -316,10 +302,6 @@ static __forceinline void memset_8( void *dest )
jnz _loop_10;
}
}
- __asm
- {
- movups xmm0,[_xmm_backup];
- }
}*/
// This function only works on 32-bit alignments of data copied.
diff --git a/common/include/x86emitter/x86types.h b/common/include/x86emitter/x86types.h
index e007cfb837..04b791a6f6 100644
--- a/common/include/x86emitter/x86types.h
+++ b/common/include/x86emitter/x86types.h
@@ -16,9 +16,9 @@
#pragma once
// Register counts for x86/32 mode:
-static const int iREGCNT_XMM = 8;
-static const int iREGCNT_GPR = 8;
-static const int iREGCNT_MMX = 8;
+static const uint iREGCNT_XMM = 8;
+static const uint iREGCNT_GPR = 8;
+static const uint iREGCNT_MMX = 8;
enum XMMSSEType
{
diff --git a/common/src/CMakeLists.txt b/common/src/CMakeLists.txt
deleted file mode 100644
index a1b0c9706c..0000000000
--- a/common/src/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-# Check that people use the good file
-if(NOT TOP_CMAKE_WAS_SOURCED)
- message(FATAL_ERROR "
- You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
- It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
-endif(NOT TOP_CMAKE_WAS_SOURCED)
-
-
-# make Utilities
-add_subdirectory(Utilities)
-
-# make x86emitter
-add_subdirectory(x86emitter)
diff --git a/common/src/Utilities/CMakeLists.txt b/common/src/Utilities/CMakeLists.txt
index c077440f17..19e21482b4 100644
--- a/common/src/Utilities/CMakeLists.txt
+++ b/common/src/Utilities/CMakeLists.txt
@@ -12,7 +12,6 @@ set(UtilitiesName Utilities)
# set common flags
set(CommonFlags
-pthread
- -m32
-march=i486
-msse
-msse2
@@ -124,6 +123,7 @@ set(UtilitiesSources
wxAppWithHelpers.cpp
wxGuiTools.cpp
wxHelpers.cpp
+ x86/MemcpyVibes.cpp
# x86/MemcpyFast.cpp
)
@@ -160,6 +160,8 @@ set(UtilitiesHeaders
../../include/Utilities/wxGuiTools.h
PrecompiledHeader.h)
+include_directories(.)
+
# change language of .S-files to c++
set_source_files_properties(${UtilitiesSSources} PROPERTIES LANGUAGE CXX)
@@ -168,11 +170,3 @@ add_library(${UtilitiesName} STATIC ${UtilitiesSources} ${UtilitiesHeaders} ${Ut
# link target with wx
target_link_libraries(${UtilitiesName} ${wxWidgets_LIBRARIES})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${UtilitiesName} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${UtilitiesName} -s)
-endif (CMAKE_BUILD_STRIP)
diff --git a/common/src/Utilities/x86/MemcpyVibes.cpp b/common/src/Utilities/x86/MemcpyVibes.cpp
new file mode 100644
index 0000000000..11ac0c10fd
--- /dev/null
+++ b/common/src/Utilities/x86/MemcpyVibes.cpp
@@ -0,0 +1,158 @@
+/* PCSX2 - PS2 Emulator for PCs
+ * Copyright (C) 2002-2010 PCSX2 Dev Team
+ *
+ * PCSX2 is free software: you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Found-
+ * ation, either version 3 of the License, or (at your option) any later version.
+ *
+ * PCSX2 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 PCSX2.
+ * If not, see .
+ */
+
+#include "PrecompiledHeader.h"
+#include "x86emitter/x86emitter.h"
+#include
+
+using namespace x86Emitter;
+
+// Max Number of qwc supported
+#define _maxSize 0x400
+
+typedef void (__fastcall *_memCpyCall)(void*, void*);
+__aligned16 _memCpyCall _memcpy_vibes[_maxSize+1];
+
+#if 1
+
+// this version uses SSE intrinsics to perform an inline copy. MSVC disasm shows pretty
+// decent code generation on whole, but it hasn't been benchmarked at all yet --air
+__forceinline void memcpy_vibes(void * dest, const void * src, int size) {
+
+ float (*destxmm)[4] = (float(*)[4])dest, (*srcxmm)[4] = (float(*)[4])src;
+ size_t count = size & ~15, extra = size & 15;
+
+ destxmm -= 8 - extra, srcxmm -= 8 - extra;
+ switch (extra) {
+ do {
+ destxmm += 16, srcxmm += 16, count -= 16;
+ _mm_store_ps(&destxmm[-8][0], _mm_load_ps(&srcxmm[-8][0]));
+ case 15:
+ _mm_store_ps(&destxmm[-7][0], _mm_load_ps(&srcxmm[-7][0]));
+ case 14:
+ _mm_store_ps(&destxmm[-6][0], _mm_load_ps(&srcxmm[-6][0]));
+ case 13:
+ _mm_store_ps(&destxmm[-5][0], _mm_load_ps(&srcxmm[-5][0]));
+ case 12:
+ _mm_store_ps(&destxmm[-4][0], _mm_load_ps(&srcxmm[-4][0]));
+ case 11:
+ _mm_store_ps(&destxmm[-3][0], _mm_load_ps(&srcxmm[-3][0]));
+ case 10:
+ _mm_store_ps(&destxmm[-2][0], _mm_load_ps(&srcxmm[-2][0]));
+ case 9:
+ _mm_store_ps(&destxmm[-1][0], _mm_load_ps(&srcxmm[-1][0]));
+ case 8:
+ _mm_store_ps(&destxmm[ 0][0], _mm_load_ps(&srcxmm[ 0][0]));
+ case 7:
+ _mm_store_ps(&destxmm[ 1][0], _mm_load_ps(&srcxmm[ 1][0]));
+ case 6:
+ _mm_store_ps(&destxmm[ 2][0], _mm_load_ps(&srcxmm[ 2][0]));
+ case 5:
+ _mm_store_ps(&destxmm[ 3][0], _mm_load_ps(&srcxmm[ 3][0]));
+ case 4:
+ _mm_store_ps(&destxmm[ 4][0], _mm_load_ps(&srcxmm[ 4][0]));
+ case 3:
+ _mm_store_ps(&destxmm[ 5][0], _mm_load_ps(&srcxmm[ 5][0]));
+ case 2:
+ _mm_store_ps(&destxmm[ 6][0], _mm_load_ps(&srcxmm[ 6][0]));
+ case 1:
+ _mm_store_ps(&destxmm[ 7][0], _mm_load_ps(&srcxmm[ 7][0]));
+ case 0: NULL;
+ } while (count);
+ }
+}
+
+#else
+#if 1
+// This version creates one function with a lot of movaps
+// It jumps to the correct movaps entry-point while adding
+// the proper offset for adjustment...
+
+static __pagealigned u8 _memCpyExec[__pagesize*16];
+
+void gen_memcpy_vibes() {
+ HostSys::MemProtectStatic(_memCpyExec, Protect_ReadWrite, false);
+ memset (_memCpyExec, 0xcc, sizeof(_memCpyExec));
+ xSetPtr(_memCpyExec);
+
+ int off =-(((_maxSize & 0xf) - 7) << 4);
+ for (int i = _maxSize, x = 0; i > 0; i--, x=(x+1)&7, off+=16) {
+
+ _memcpy_vibes[i] = (_memCpyCall)xGetPtr();
+
+ if (off >= 128) {
+ off = -128;
+ xADD(edx, 256);
+ xADD(ecx, 256);
+ }
+ const xRegisterSSE xmm_t(x);
+ xMOVAPS(xmm_t, ptr32[edx+off]);
+ xMOVAPS(ptr32[ecx+off], xmm_t);
+ }
+
+ _memcpy_vibes[0] = (_memCpyCall)xGetPtr();
+
+ xRET();
+ pxAssert(((uptr)xGetPtr() - (uptr)_memCpyExec) < sizeof(_memCpyExec));
+
+ HostSys::MemProtectStatic(_memCpyExec, Protect_ReadOnly, true);
+}
+
+__forceinline void memcpy_vibes(void * dest, const void * src, int size) {
+ int offset = ((size & 0xf) - 7) << 4;
+ _memcpy_vibes[size]((void*)((uptr)dest + offset), (void*)((uptr)src + offset));
+}
+
+#else
+
+// This version creates '_maxSize' number of different functions,
+// and calls the appropriate one...
+
+static __pagealigned u8 _memCpyExec[__pagesize*_maxSize*2];
+
+void gen_memcpy_vibes() {
+ HostSys::MemProtectStatic(_memCpyExec, Protect_ReadWrite, false);
+ memset (_memCpyExec, 0xcc, sizeof(_memCpyExec));
+ xSetPtr(_memCpyExec);
+
+ for (int i = 0; i < _maxSize+1; i++)
+ {
+ int off = 0;
+ _memcpy_vibes[i] = (_memCpyCall)xGetAlignedCallTarget();
+
+ for (int j = 0, x = 0; j < i; j++, x=(x+1)&7, off+=16) {
+ if (off >= 128) {
+ off = -128;
+ xADD(edx, 256);
+ xADD(ecx, 256);
+ }
+ const xRegisterSSE xmm_t(x);
+ xMOVAPS(xmm_t, ptr32[edx+off]);
+ xMOVAPS(ptr32[ecx+off], xmm_t);
+ }
+
+ xRET();
+ pxAssert(((uptr)xGetPtr() - (uptr)_memCpyExec) < sizeof(_memCpyExec));
+ }
+
+ HostSys::MemProtectStatic(_memCpyExec, Protect_ReadOnly, true);
+}
+
+__forceinline void memcpy_vibes(void * dest, const void * src, int size) {
+ _memcpy_vibes[size](dest, src);
+}
+
+#endif
+#endif
diff --git a/common/src/x86emitter/CMakeLists.txt b/common/src/x86emitter/CMakeLists.txt
index 7be8c48439..ac0ffa0b4d 100644
--- a/common/src/x86emitter/CMakeLists.txt
+++ b/common/src/x86emitter/CMakeLists.txt
@@ -16,7 +16,6 @@ set(CommonFlags
-fno-dse
-fno-tree-dse
-fno-strict-aliasing
- -m32
-march=i486
-msse
-msse2
@@ -144,11 +143,3 @@ add_library(${x86emitterName} STATIC ${x86emitterSources} ${x86emitterHeaders})
# link target with wx
target_link_libraries(${x86emitterName} ${wxWidgets_LIBRARIES})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${x86emitterName} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${x86emitterName} -s)
-endif (CMAKE_BUILD_STRIP)
diff --git a/debian-unstable-upstream/control b/debian-unstable-upstream/control
index 549371298e..40d446e7b2 100644
--- a/debian-unstable-upstream/control
+++ b/debian-unstable-upstream/control
@@ -4,24 +4,24 @@ Priority: optional
Maintainer: Gregory Hainaut
Build-Depends: debhelper (>= 7.0.50), dpkg-dev (>= 1.15.5.6), cmake (>=2.8),
gcc-multilib [amd64], g++-multilib [amd64],
- zlib1g-dev (>=1:1.2.3.3) | lib32z1-dev (>=1.2.3.3) [amd64],
+ zlib1g-dev (>= 1:1.2.3.3) | lib32z1-dev (>= 1.2.3.3) [amd64],
libbz2-dev (>= 1.0.4),
libsdl1.2-dev,
libjpeg-dev,
- libwxbase2.8-dev (>=2.8.0),
- libwxgtk2.8-dev (>=2.8.0),
- libgtk2.0-dev (>=2.10),
+ libwxbase2.8-dev (>= 2.8.10), libwxbase2.8-dev (<< 2.8.11),
+ libwxgtk2.8-dev (>= 2.8.10), libwxgtk2.8-dev (<< 2.8.11),
+ libgtk2.0-dev (>= 2.16),
liba52-0.7.4-dev,
- libasound2-dev | lib32asound2 [amd64],
+ libasound2-dev | lib32asound2-dev [amd64],
portaudio19-dev,
# version not yet in debian
# libsoundtouch1-dev (>= 1.5),
# I patch the source (remove feature) to compile with version 1.3
libsoundtouch1-dev (>= 1.3),
- libsparsehash-dev (>=1.6),
+ libsparsehash-dev (>= 1.6),
libx11-dev,
libxxf86vm-dev,
- libglew1.5-dev (>=1.5.1),
+ libglew1.5-dev (>= 1.5.1),
libgl1-mesa-dev,
libglu1-mesa-dev,
# my nmu: add 32bits packages
@@ -68,7 +68,9 @@ Package: pcsx2-plugins-unstable
# Warning amd64 need additional ia32libs
Architecture: i386 amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
-Recommends: pcsx2-unstable (>= ${binary:Version}), pcsx2-data-unstable (>= ${binary:Version})
+Recommends: pcsx2-unstable (>= ${binary:Version}), pcsx2-data-unstable (>= ${binary:Version}),
+# manually add nvidia-cg-toolkit for zzogl. Do not why is not found by shlibs !!!
+ nvidia-cg-toolkit-pcsx2 | nvidia-cg-toolkit (>= 2.1), ia32-nvidia-cg-toolkit-pcsx2 [amd64]
Conflicts: pcsx2-plugins
Description: Various plugins for pcsx2
PCSX2 is a PlayStation 2 emulator for Windows and
diff --git a/debian-unstable-upstream/control_ppa b/debian-unstable-upstream/control_ppa
index 7a0257b98a..e820ff7a9a 100644
--- a/debian-unstable-upstream/control_ppa
+++ b/debian-unstable-upstream/control_ppa
@@ -3,13 +3,13 @@ Section: games
Priority: optional
Maintainer: Gregory Hainaut
Build-Depends: debhelper (>= 7.0.50), dpkg-dev (>= 1.15.5.6), cmake (>=2.8),
- zlib1g-dev (>=1:1.2.3.3),
+ zlib1g-dev (>= 1:1.2.3.3),
libbz2-dev (>= 1.0.4),
libsdl1.2-dev,
libjpeg-dev,
- libwxbase2.8-dev (>=2.8.0),
- libwxgtk2.8-dev (>=2.8.0),
- libgtk2.0-dev (>=2.10),
+ libwxbase2.8-dev (>= 2.8.10), libwxbase2.8-dev (<< 2.8.11),
+ libwxgtk2.8-dev (>= 2.8.10), libwxgtk2.8-dev (<< 2.8.11),
+ libgtk2.0-dev (>= 2.16),
liba52-0.7.4-dev,
libasound2-dev,
portaudio19-dev,
@@ -17,10 +17,10 @@ Build-Depends: debhelper (>= 7.0.50), dpkg-dev (>= 1.15.5.6), cmake (>=2.8),
# libsoundtouch1-dev (>= 1.5),
# I patch the source (remove feature) to compile with version 1.3
libsoundtouch1-dev (>= 1.3),
- libsparsehash-dev (>=1.6),
+ libsparsehash-dev (>= 1.6),
libx11-dev,
libxxf86vm-dev,
- libglew1.5-dev (>=1.5.1),
+ libglew1.5-dev (>= 1.5.1),
libgl1-mesa-dev,
libglu1-mesa-dev,
nvidia-cg-toolkit-pcsx2
@@ -62,7 +62,9 @@ Description: data for pcsx2
Package: pcsx2-plugins-unstable
Architecture: i386
Depends: ${shlibs:Depends}, ${misc:Depends}
-Recommends: pcsx2-unstable (>= ${binary:Version}), pcsx2-data-unstable (>= ${binary:Version})
+Recommends: pcsx2-unstable (>= ${binary:Version}), pcsx2-data-unstable (>= ${binary:Version}),
+# manually add nvidia-cg-toolkit for zzogl. Do not why is not found by shlibs !!!
+ nvidia-cg-toolkit-pcsx2 | nvidia-cg-toolkit (>= 2.1)
Conflicts: pcsx2-plugins
Description: Various plugins for pcsx2
PCSX2 is a PlayStation 2 emulator for Windows and
diff --git a/debian-unstable-upstream/copyright b/debian-unstable-upstream/copyright
index 0a700cce54..57d75fbf88 100644
--- a/debian-unstable-upstream/copyright
+++ b/debian-unstable-upstream/copyright
@@ -34,7 +34,7 @@ On Debian systems, the complete text of the GNU Lesser General
Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3".
-Files: pcsx2/Mdec.cpp, pcsx2/Mdec.h, pcsx2/RDebug/deci2_drfp.cpp, pcsx2/IPU/mpeg2lib/*, pcsx2/cheatscpp.h, common/include/api/*, plugins/onepad/*, plugins/PadNull/Linux/*, plugins/SPU2null/*, plugins/FWnull/FW.cpp, plugins/zerospu2/*, plugins/CDVDnull/Linux/*, plugins/zzogl-pg/*, plugins/GSnull/Registers.h, plugins/GSnull/Linux/Linux*, plugins/GSnull/Linux/Config*, plugins/dev9null/DEV9.h, plugins/dev9null/Config.*
+Files: pcsx2/Mdec.cpp, pcsx2/Mdec.h, pcsx2/RDebug/deci2_drfp.cpp, pcsx2/IPU/mpeg2lib/*, pcsx2/cheatscpp.h, common/include/api/*, plugins/onepad/*, plugins/PadNull/Linux/*, plugins/SPU2null/*, plugins/FWnull/FW.cpp, plugins/zerospu2/*, plugins/zzogl-pg/*, plugins/GSnull/Registers.h, plugins/GSnull/Linux/Linux*, plugins/GSnull/Linux/Config*, plugins/dev9null/DEV9.h, plugins/dev9null/Config.*
License: GPL-2+
This program is free software: you can redistribute it and/or modify
diff --git a/debian-unstable-upstream/create_pcsx2_tarball_from_svn_repository.sh b/debian-unstable-upstream/create_pcsx2_tarball_from_svn_repository.sh
index 66f993a346..14ef3f2fbe 100755
--- a/debian-unstable-upstream/create_pcsx2_tarball_from_svn_repository.sh
+++ b/debian-unstable-upstream/create_pcsx2_tarball_from_svn_repository.sh
@@ -115,8 +115,6 @@ find $NEW_DIR -name "configure.ac" -exec rm -f {} \;
find $NEW_DIR -name "Makefile.am" -exec rm -f {} \;
echo "Remove 3rd party directory"
find $NEW_DIR -name "3rdparty" -exec rm -fr {} \; 2> /dev/null
-# echo "Remove plugins/zzogl-pg/opengl/ZeroGSShaders (some zlib source in the middle)"
-# rm -fr $NEW_DIR/plugins/zzogl-pg/opengl/ZeroGSShaders
echo "Remove windows file (useless & copyright issue)"
find $NEW_DIR -iname "windows" -exec rm -fr {} \; 2> /dev/null
rm -fr "${NEW_DIR}/plugins/zzogl-pg/opengl/Win32"
@@ -125,6 +123,7 @@ rm -fr "${NEW_DIR}/common/vsprops"
echo "Remove useless file (copyright issue)"
rm -fr "${NEW_DIR}/plugins/zzogl-pg/opengl/ZeroGSShaders/zlib"
rm -fr "${NEW_DIR}/common/src/Utilities/x86/MemcpyFast.cpp"
+rm -fr "${NEW_DIR}/plugins/CDVDnull/Linux"
## BUILD
diff --git a/pcsx2/CMakeLists.txt b/pcsx2/CMakeLists.txt
index 9f7360b4ba..1d628db601 100644
--- a/pcsx2/CMakeLists.txt
+++ b/pcsx2/CMakeLists.txt
@@ -13,7 +13,6 @@ set(CommonFlags
-fno-dse
-fno-tree-dse
-fno-strict-aliasing
- -m32
-march=i486
-msse
-msse2
@@ -642,11 +641,3 @@ endif(Linux)
# link target with zlib
target_link_libraries(${pcsx2Name} ${ZLIB_LIBRARIES})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${pcsx2Name} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${pcsx2Name} -s)
-endif (CMAKE_BUILD_STRIP)
diff --git a/pcsx2/IPU/IPU.cpp b/pcsx2/IPU/IPU.cpp
index c981cbdae0..10593fbd2c 100644
--- a/pcsx2/IPU/IPU.cpp
+++ b/pcsx2/IPU/IPU.cpp
@@ -1158,7 +1158,7 @@ void __fastcall ipu_csc(macroblock_8 *mb8, macroblock_rgb32 *rgb32, int sgn)
int i;
u8* p = (u8*)rgb32;
- yuv2rgb_sse2();
+ yuv2rgb();
if (s_thresh[0] > 0)
{
diff --git a/pcsx2/IPU/yuv2rgb.cpp b/pcsx2/IPU/yuv2rgb.cpp
index 6ba8a27751..423cacc71c 100644
--- a/pcsx2/IPU/yuv2rgb.cpp
+++ b/pcsx2/IPU/yuv2rgb.cpp
@@ -23,10 +23,38 @@
#include "IPU.h"
#include "yuv2rgb.h"
+#define IPU_Y_BIAS 16
+#define IPU_C_BIAS 128
+#define IPU_Y_COEFF 0x95 // 1.1640625
+#define IPU_GCR_COEFF -0x68 // -0.8125
+#define IPU_GCB_COEFF -0x32 // -0.390625
+#define IPU_RCR_COEFF 0xcc // 1.59375
+#define IPU_BCB_COEFF 0x102 // 2.015625
+
+// conforming implementation for reference, do not optimise
+void yuv2rgb_reference(void)
+{
+ for (int y = 0; y < 16; y++)
+ for (int x = 0; x < 16; x++)
+ {
+ s32 lum = (IPU_Y_COEFF * (max(0, (s32)mb8.Y[y][x] - IPU_Y_BIAS))) >> 6;
+ s32 rcr = (IPU_RCR_COEFF * ((s32)mb8.Cr[y>>1][x>>1] - 128)) >> 6;
+ s32 gcr = (IPU_GCR_COEFF * ((s32)mb8.Cr[y>>1][x>>1] - 128)) >> 6;
+ s32 gcb = (IPU_GCB_COEFF * ((s32)mb8.Cb[y>>1][x>>1] - 128)) >> 6;
+ s32 bcb = (IPU_BCB_COEFF * ((s32)mb8.Cb[y>>1][x>>1] - 128)) >> 6;
+
+ rgb32.c[y][x].r = max(0, min(255, (lum + rcr + 1) >> 1));
+ rgb32.c[y][x].g = max(0, min(255, (lum + gcr + gcb + 1) >> 1));
+ rgb32.c[y][x].b = max(0, min(255, (lum + bcb + 1) >> 1));
+ rgb32.c[y][x].a = 0x80; // the norm to save doing this on the alpha pass
+ }
+}
+
// Everything below is bit accurate to the IPU specification (except maybe rounding).
// Know the specification before you touch it.
-#define SSE_COEFFICIENTS(x) \
- {(x)<<2,(x)<<2,(x)<<2,(x)<<2,(x)<<2,(x)<<2,(x)<<2,(x)<<2}
+#define SSE_BYTES(x) {x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x}
+#define SSE_WORDS(x) {x, x, x, x, x, x, x, x}
+#define SSE_COEFFICIENTS(x) SSE_WORDS((x)<<2)
struct SSE2_Tables
{
@@ -58,19 +86,19 @@ enum
static const __aligned16 SSE2_Tables sse2_tables =
{
- {0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000,0x8000}, // c_bias
- {16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16}, // y_bias
- {0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00}, // y_mask
+ SSE_WORDS(0x8000), // c_bias
+ SSE_BYTES(IPU_Y_BIAS), // y_bias
+ SSE_WORDS(0xff00), // y_mask
// Specifying round off instead of round down as everywhere else
// implies that this is right
- {1,1,1,1,1,1,1,1}, // round_1bit
+ SSE_WORDS(1), // round_1bit
- SSE_COEFFICIENTS(0x95), // 1.1640625 [Y_coefficients]
- SSE_COEFFICIENTS(-0x68), // -0.8125 [GCr_coefficients]
- SSE_COEFFICIENTS(-0x32), // -0.390625 [GCb_coefficients]
- SSE_COEFFICIENTS(0xcc), // 1.59375 [RCr_coefficients]
- SSE_COEFFICIENTS(0x102), // 2.015625 [BCb_coefficients]
+ SSE_COEFFICIENTS(IPU_Y_COEFF),
+ SSE_COEFFICIENTS(IPU_GCR_COEFF),
+ SSE_COEFFICIENTS(IPU_GCB_COEFF),
+ SSE_COEFFICIENTS(IPU_RCR_COEFF),
+ SSE_COEFFICIENTS(IPU_BCB_COEFF),
};
static __aligned16 u16 yuv2rgb_temp[3][8];
diff --git a/pcsx2/IPU/yuv2rgb.h b/pcsx2/IPU/yuv2rgb.h
index 7b46f969d9..37d1049028 100644
--- a/pcsx2/IPU/yuv2rgb.h
+++ b/pcsx2/IPU/yuv2rgb.h
@@ -15,5 +15,8 @@
#pragma once
+#define yuv2rgb yuv2rgb_sse2
+
+extern void yuv2rgb_reference(void);
extern void yuv2rgb_sse2(void);
extern void yuv2rgb_init(void);
diff --git a/pcsx2/missing b/pcsx2/missing
deleted file mode 100644
index 894e786e16..0000000000
--- a/pcsx2/missing
+++ /dev/null
@@ -1,360 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2005-06-08.21
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case "$1" in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Send bug reports to ."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).
-case "$1" in
- lex|yacc)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case "$1" in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case "$f" in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te)
- echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
- You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
- test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison|yacc)
- echo 1>&2 "\
-WARNING: \`$1' $msg. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if [ $# -ne 1 ]; then
- eval LASTARG="\${$#}"
- case "$LASTARG" in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if [ ! -f y.tab.h ]; then
- echo >y.tab.h
- fi
- if [ ! -f y.tab.c ]; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex|flex)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if [ $# -ne 1 ]; then
- eval LASTARG="\${$#}"
- case "$LASTARG" in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if [ -f "$SRCFILE" ]; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if [ ! -f lex.yy.c ]; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
- if test -z "$file"; then
- file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
- fi
- if [ -f "$file" ]; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit 1
- fi
- ;;
-
- makeinfo)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- # The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
- if test -z "$file"; then
- # ... or it is the one specified with @setfilename ...
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
- fi
- # If the file does not exist, the user really needs makeinfo;
- # let's fail without touching anything.
- test -f $file || exit 1
- touch $file
- ;;
-
- tar)
- shift
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case "$firstarg" in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case "$firstarg" in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
- You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequisites for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
diff --git a/pcsx2/ps2/GIFpath.cpp b/pcsx2/ps2/GIFpath.cpp
index bced656f13..a0e8ac58a5 100644
--- a/pcsx2/ps2/GIFpath.cpp
+++ b/pcsx2/ps2/GIFpath.cpp
@@ -257,7 +257,7 @@ __forceinline void GIFPath::Reset()
__forceinline bool GIFPath::StepReg()
{
- if ((++curreg & 0xf) == tag.NREG) {
+ if (++curreg >= numregs) {
curreg = 0;
if (--nloop == 0) {
return false;
diff --git a/pcsx2/x86/microVU.cpp b/pcsx2/x86/microVU.cpp
index 01cf82c5b8..70a9a62b9f 100644
--- a/pcsx2/x86/microVU.cpp
+++ b/pcsx2/x86/microVU.cpp
@@ -106,6 +106,7 @@ _f void mVUinit(VURegs* vuRegsPtr, int vuIndex) {
// Allocates rec-cache and calls mVUreset()
mVUresizeCache(mVU, mVU->cacheSize + mVUcacheSafeZone);
+ //if (vuIndex) gen_memcpy_vibes();
}
// Resets Rec Data
diff --git a/plugins/CDVDiso/build.sh b/plugins/CDVDiso/build.sh
deleted file mode 100644
index fbc599f31d..0000000000
--- a/plugins/CDVDiso/build.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-echo ----------------
-echo Building CDVDiso
-echo ----------------
-
-curdir=`pwd`
-
-
-if test "${CDVDisoOPTIONS+set}" != set ; then
-export CDVDisoOPTIONS=""
-fi
-
-cd src
-
-if [ $# -gt 0 ] && [ $1 = "all" ]
-then
-
-aclocal
-automake -a
-autoconf
-
-./configure ${CDVDisoOPTIONS} --prefix=${PCSX2PLUGINS}
-make clean
-make install
-
-else
-make $@
-fi
-
-if [ $? -ne 0 ]
-then
-exit 1
-fi
diff --git a/plugins/CDVDiso/src/CMakeLists.txt b/plugins/CDVDiso/src/CMakeLists.txt
index cf48730395..8eb98ca3ff 100644
--- a/plugins/CDVDiso/src/CMakeLists.txt
+++ b/plugins/CDVDiso/src/CMakeLists.txt
@@ -11,7 +11,6 @@ set(CDVDisoName CDVDiso)
set(CommonFlags
-Wall
- -m32
-fpermissive
)
@@ -80,11 +79,3 @@ set_target_properties(${CDVDisoName} PROPERTIES
# Link with bz2
target_link_libraries(${CDVDisoName} ${BZIP2_LIBRARIES})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${CDVDisoName} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${CDVDisoName} -s)
-endif (CMAKE_BUILD_STRIP)
diff --git a/plugins/CDVDiso/src/Makefile.am b/plugins/CDVDiso/src/Makefile.am
deleted file mode 100755
index 01b772801a..0000000000
--- a/plugins/CDVDiso/src/Makefile.am
+++ /dev/null
@@ -1,31 +0,0 @@
-# Create a shared library libCDVDiso
-AUTOMAKE_OPTIONS = foreign
-noinst_LIBRARIES = libCDVDiso.a
-INCLUDES = $(shell pkg-config --cflags gtk+-2.0) -I@srcdir@/../../../common/include -I@srcdir@/../../../3rdparty -I@srcdir@/Linux -I../../../../3rdparty/zlib
-
-# Create a shared object by faking an exe (thanks to ODE makefiles)
-traplibdir=$(prefix)
-
-if DEBUGBUILD
-preext=d
-endif
-
-EXEEXT=$(preext)@so_ext@
-
-traplib_PROGRAMS=libCDVDiso
-libCDVDiso_SOURCES=
-libCDVDiso_DEPENDENCIES = libCDVDiso.a
-libCDVDiso_LDFLAGS= @SHARED_LDFLAGS@
-libCDVDiso_LDFLAGS+=-Wl,-soname,@libCDVDiso_SONAME@
-libCDVDiso_LDADD=$(libCDVDiso_a_OBJECTS)
-
-libCDVDiso_a_SOURCES = CDVDisop.cpp CDVDiso.h libiso.cpp libiso.h mkiso/mkiso.cpp
-
-libCDVDiso_a_SOURCES += \
-Linux/Config.cpp Linux/Config.h Linux/Linux.cpp \
-Linux/interface.h Linux/support.c \
-Linux/interface.c Linux/support.h \
-Linux/callbacks.h
-#Linux/callbacks.c
-
-#SUBDIRS = Linux
\ No newline at end of file
diff --git a/plugins/CDVDiso/src/configure.ac b/plugins/CDVDiso/src/configure.ac
deleted file mode 100755
index dc83464151..0000000000
--- a/plugins/CDVDiso/src/configure.ac
+++ /dev/null
@@ -1,86 +0,0 @@
-AC_INIT(CDVDiso, 0.9,arcum42@gmail.com)
-
-AM_INIT_AUTOMAKE(CDVDiso,0.9)
-
-AC_PROG_CC([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
-AC_PROG_CXX([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
-AC_PROG_CPP([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
-
-AC_PROG_INSTALL
-AC_PROG_RANLIB
-
-dnl necessary for compiling assembly
-AM_PROG_AS
-
-AC_SUBST(CDVDiso_CURRENT, 0)
-AC_SUBST(CDVDiso_REVISION, 9)
-AC_SUBST(CDVDiso_AGE, 0)
-AC_SUBST(CDVDiso_RELEASE,[$CDVDiso_CURRENT].[$CDVDiso_REVISION].[$CDVDiso_AGE])
-AC_SUBST(CDVDiso_SONAME,libCDVDiso.so.[$CDVDiso_CURRENT].[$CDVDiso_REVISION].[$CDVDiso_AGE])
-
-CFLAGS=
-CPPFLAGS=
-CXXFLAGS=
-CCASFLAGS=
-
-dnl Check for debug build
-AC_MSG_CHECKING(debug build)
-AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
-debug=$enableval,debug=no)
-if test "x$debug" == xyes
-then
- AC_DEFINE(PCSX2_DEBUG,1,[PCSX2_DEBUG])
- CFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
- CPPFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
- CXXFLAGS+=" -g -fPIC -Wall -Wno-unused-value -fpermissive -m32 "
- CCASFLAGS+=" -m32 "
-else
- AC_DEFINE(NDEBUG,1,[NDEBUG])
- CFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
- CPPFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
- CXXFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -fpermissive -m32 "
- CCASFLAGS+=" -m32 "
-fi
-AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
-AC_MSG_RESULT($debug)
-
-AC_DEFINE(__LINUX__,1,[__LINUX__])
-AC_DEFINE(_FILE_OFFSET_BITS,64,[_FILE_OFFSET_BITS])
-
-dnl Check for dev build
-AC_MSG_CHECKING(for development build...)
-AC_ARG_ENABLE(devbuild, AC_HELP_STRING([--enable-devbuild], [Special Build for developers that simplifies testing and adds extra checks]),
- devbuild=$enableval,devbuild=no)
-if test "x$devbuild" == xyes
-then
- AC_DEFINE(CDVDiso_DEVBUILD,1,[CDVDiso_DEVBUILD])
-fi
-AC_MSG_RESULT($devbuild)
-AM_CONDITIONAL(RELEASE_TO_PUBLIC, test x$devbuild = xno)
-
-AC_CHECK_FUNCS([ _aligned_malloc _aligned_free ], AC_DEFINE(HAVE_ALIGNED_MALLOC))
-
-dnl gtk
-AC_MSG_CHECKING(gtk2+)
-AC_CHECK_PROG(GTK_CONFIG, pkg-config, pkg-config)
-LIBS+=$(pkg-config --libs gtk+-2.0)
-
-dnl bindir = pcsx2exe
-
-dnl assuming linux environment
-so_ext=".so.$CDVDiso_RELEASE"
-SHARED_LDFLAGS="-shared"
-AC_SUBST(so_ext)
-AC_SUBST(SHARED_LDFLAGS)
-
-AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"])
-AC_CHECK_LIB(z,main,[LIBS="$LIBS -lz"])
-AC_CHECK_LIB(bz2,main,[LIBS="$LIBS -lbz2"])
-
-AC_OUTPUT([
- Makefile
- ])
-
-echo "Configuration:"
-echo " Debug build? $debug"
-echo " Dev build? $devbuild"
\ No newline at end of file
diff --git a/plugins/CDVDiso/src/install-sh b/plugins/CDVDiso/src/install-sh
deleted file mode 100755
index a5897de6ea..0000000000
--- a/plugins/CDVDiso/src/install-sh
+++ /dev/null
@@ -1,519 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2006-12-25.00
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
- test "$posix_glob" != "?" || {
- if (set -f) 2>/dev/null; then
- posix_glob=
- else
- posix_glob=:
- fi
- }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
- --help display this help and exit.
- --version display version info and exit.
-
- -c (ignored)
- -C install only if different (preserve the last data modification time)
- -d create directories instead of installing files.
- -g GROUP $chgrpprog installed files to GROUP.
- -m MODE $chmodprog installed files to MODE.
- -o USER $chownprog installed files to USER.
- -s $stripprog installed files.
- -t DIRECTORY install into DIRECTORY.
- -T report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
- RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) ;;
-
- -C) copy_on_change=true;;
-
- -d) dir_arg=true;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- shift;;
-
- -o) chowncmd="$chownprog $2"
- shift;;
-
- -s) stripcmd=$stripprog;;
-
- -t) dst_arg=$2
- shift;;
-
- -T) no_target_directory=true;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
- shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dst_arg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dst_arg"
- shift # fnord
- fi
- shift # arg
- dst_arg=$arg
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-if test -z "$dir_arg"; then
- trap '(exit $?); exit' 1 2 13 15
-
- # Set umask so as not to create temps with too-generous modes.
- # However, 'strip' requires both read and write access to temps.
- case $mode in
- # Optimize common cases.
- *644) cp_umask=133;;
- *755) cp_umask=22;;
-
- *[0-7])
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw='% 200'
- fi
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
- *)
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw=,u+rw
- fi
- cp_umask=$mode$u_plus_rw;;
- esac
-fi
-
-for src
-do
- # Protect names starting with `-'.
- case $src in
- -*) src=./$src;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- dstdir=$dst
- test -d "$dstdir"
- dstdir_status=$?
- else
-
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dst_arg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
-
- dst=$dst_arg
- # Protect names starting with `-'.
- case $dst in
- -*) dst=./$dst;;
- esac
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dst_arg: Is a directory" >&2
- exit 1
- fi
- dstdir=$dst
- dst=$dstdir/`basename "$src"`
- dstdir_status=0
- else
- # Prefer dirname, but fall back on a substitute if dirname fails.
- dstdir=`
- (dirname "$dst") 2>/dev/null ||
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$dst" : 'X\(//\)[^/]' \| \
- X"$dst" : 'X\(//\)$' \| \
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$dst" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'
- `
-
- test -d "$dstdir"
- dstdir_status=$?
- fi
- fi
-
- obsolete_mkdir_used=false
-
- if test $dstdir_status != 0; then
- case $posix_mkdir in
- '')
- # Create intermediate dirs using mode 755 as modified by the umask.
- # This is like FreeBSD 'install' as of 1997-10-28.
- umask=`umask`
- case $stripcmd.$umask in
- # Optimize common cases.
- *[2367][2367]) mkdir_umask=$umask;;
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
- *[0-7])
- mkdir_umask=`expr $umask + 22 \
- - $umask % 100 % 40 + $umask % 20 \
- - $umask % 10 % 4 + $umask % 2
- `;;
- *) mkdir_umask=$umask,go-w;;
- esac
-
- # With -d, create the new directory with the user-specified mode.
- # Otherwise, rely on $mkdir_umask.
- if test -n "$dir_arg"; then
- mkdir_mode=-m$mode
- else
- mkdir_mode=
- fi
-
- posix_mkdir=false
- case $umask in
- *[123567][0-7][0-7])
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
- ;;
- *)
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
- if (umask $mkdir_umask &&
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
- then
- if test -z "$dir_arg" || {
- # Check for POSIX incompatibilities with -m.
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
- # other-writeable bit of parent directory when it shouldn't.
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
- case $ls_ld_tmpdir in
- d????-?r-*) different_mode=700;;
- d????-?--*) different_mode=755;;
- *) false;;
- esac &&
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
- }
- }
- then posix_mkdir=:
- fi
- rmdir "$tmpdir/d" "$tmpdir"
- else
- # Remove any dirs left behind by ancient mkdir implementations.
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
- fi
- trap '' 0;;
- esac;;
- esac
-
- if
- $posix_mkdir && (
- umask $mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
- )
- then :
- else
-
- # The umask is ridiculous, or mkdir does not conform to POSIX,
- # or it failed possibly due to a race condition. Create the
- # directory the slow way, step by step, checking for races as we go.
-
- case $dstdir in
- /*) prefix='/';;
- -*) prefix='./';;
- *) prefix='';;
- esac
-
- eval "$initialize_posix_glob"
-
- oIFS=$IFS
- IFS=/
- $posix_glob set -f
- set fnord $dstdir
- shift
- $posix_glob set +f
- IFS=$oIFS
-
- prefixes=
-
- for d
- do
- test -z "$d" && continue
-
- prefix=$prefix$d
- if test -d "$prefix"; then
- prefixes=
- else
- if $posix_mkdir; then
- (umask=$mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
- # Don't fail if two instances are running concurrently.
- test -d "$prefix" || exit 1
- else
- case $prefix in
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
- *) qprefix=$prefix;;
- esac
- prefixes="$prefixes '$qprefix'"
- fi
- fi
- prefix=$prefix/
- done
-
- if test -n "$prefixes"; then
- # Don't fail if two instances are running concurrently.
- (umask $mkdir_umask &&
- eval "\$doit_exec \$mkdirprog $prefixes") ||
- test -d "$dstdir" || exit 1
- obsolete_mkdir_used=true
- fi
- fi
- fi
-
- if test -n "$dir_arg"; then
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
- else
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
- # Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
- { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
- { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
- # If -C, don't bother to copy if it wouldn't change the file.
- if $copy_on_change &&
- old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
- new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
-
- eval "$initialize_posix_glob" &&
- $posix_glob set -f &&
- set X $old && old=:$2:$4:$5:$6 &&
- set X $new && new=:$2:$4:$5:$6 &&
- $posix_glob set +f &&
-
- test "$old" = "$new" &&
- $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
- then
- rm -f "$dsttmp"
- else
- # Rename the file to the real destination.
- $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
-
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
- {
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- test ! -f "$dst" ||
- $doit $rmcmd -f "$dst" 2>/dev/null ||
- { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
- { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
- } ||
- { echo "$0: cannot unlink or rename $dst" >&2
- (exit 1); exit 1
- }
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dst"
- }
- fi || exit 1
-
- trap '' 0
- fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
diff --git a/plugins/CDVDiso/src/missing b/plugins/CDVDiso/src/missing
deleted file mode 100755
index 1c8ff7049d..0000000000
--- a/plugins/CDVDiso/src/missing
+++ /dev/null
@@ -1,367 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2006-05-10.23
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Send bug reports to ."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).
-case $1 in
- lex|yacc)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $1 in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case $f in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te)
- echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
- You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison|yacc)
- echo 1>&2 "\
-WARNING: \`$1' $msg. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if test ! -f y.tab.h; then
- echo >y.tab.h
- fi
- if test ! -f y.tab.c; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex|flex)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if test ! -f lex.yy.c; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit 1
- fi
- ;;
-
- makeinfo)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- # The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -z "$file"; then
- # ... or it is the one specified with @setfilename ...
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '
- /^@setfilename/{
- s/.* \([^ ]*\) *$/\1/
- p
- q
- }' $infile`
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
- fi
- # If the file does not exist, the user really needs makeinfo;
- # let's fail without touching anything.
- test -f $file || exit 1
- touch $file
- ;;
-
- tar)
- shift
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case $firstarg in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case $firstarg in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
- You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequisites for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
diff --git a/plugins/CDVDlinuz/Src/CMakeLists.txt b/plugins/CDVDlinuz/Src/CMakeLists.txt
index 5c1093dbc5..1e74e8df07 100644
--- a/plugins/CDVDlinuz/Src/CMakeLists.txt
+++ b/plugins/CDVDlinuz/Src/CMakeLists.txt
@@ -5,7 +5,6 @@ set(CDVDlinuzName CDVDlinuz)
set(CommonFlags
-Wall
- -m32
-fPIC
-D_LARGEFILE64_SOURCE
)
@@ -92,11 +91,3 @@ add_library(${CDVDlinuzName} SHARED
# set output directory
set_target_properties(${CDVDlinuzName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
-
-# Set link flags
-target_link_libraries(${CDVDlinuzName} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${CDVDlinuzName} -s)
-endif (CMAKE_BUILD_STRIP)
diff --git a/plugins/CDVDnull/CDVD.cpp b/plugins/CDVDnull/CDVD.cpp
index 5401fca47e..a5bda27b85 100644
--- a/plugins/CDVDnull/CDVD.cpp
+++ b/plugins/CDVDnull/CDVD.cpp
@@ -38,20 +38,6 @@ EXPORT_C_(u32) CALLBACK PS2EgetLibVersion2(u32 type)
return (version << 16) | (revision << 8) | build;
}
-#ifdef _WIN32
-void SysMessage(const char *fmt, ...)
-{
- va_list list;
- char tmp[512];
-
- va_start(list, fmt);
- vsprintf(tmp, fmt, list);
- va_end(list);
-
- MessageBox(GetActiveWindow(), tmp, "CDVDnull Msg", MB_SETFOREGROUND | MB_OK);
-}
-#endif
-
EXPORT_C_(s32) CDVDinit()
{
return 0;
diff --git a/plugins/CDVDnull/CDVD.h b/plugins/CDVDnull/CDVD.h
index 533fa10441..99c996a1ff 100644
--- a/plugins/CDVDnull/CDVD.h
+++ b/plugins/CDVDnull/CDVD.h
@@ -23,6 +23,7 @@
#define CDVDdefs
#include "PS2Edefs.h"
+#include "PS2Eext.h"
#ifdef __LINUX__
#include
diff --git a/plugins/CDVDnull/CMakeLists.txt b/plugins/CDVDnull/CMakeLists.txt
index 24b0899b77..61742904d8 100644
--- a/plugins/CDVDnull/CMakeLists.txt
+++ b/plugins/CDVDnull/CMakeLists.txt
@@ -11,7 +11,6 @@ set(CDVDnullName CDVDnull)
set(CommonFlags
-Wall
- -m32
)
set(OptimizationFlags
@@ -45,20 +44,6 @@ set(CDVDnullSources
set(CDVDnullHeaders
CDVD.h)
-# CDVDnull Linux sources
-set(CDVDnullLinuxSources
- Linux/callbacks.c
- Linux/Config.cpp
- Linux/interface.c
- Linux/support.c)
-
-# CDVDnull Linux headers
-set(CDVDnullLinuxHeaders
- Linux/callbacks.h
- Linux/Config.h
- Linux/interface.h
- Linux/support.h)
-
# CDVDnull Windows sources
set(CDVDnullWindowsSources
Windows/CDVDnull.def
@@ -75,18 +60,8 @@ include_directories(.)
add_library(${CDVDnullName} SHARED
${CDVDnullSources}
${CDVDnullHeaders}
- ${CDVDnullLinuxSources}
- ${CDVDnullLinuxHeaders})
-
-# Force the linker into 32 bits mode
-target_link_libraries(${CDVDnullName} -m32)
-
-# Linker strip option
-if (CMAKE_BUILD_STRIP)
- target_link_libraries(${CDVDnullName} -s)
-endif (CMAKE_BUILD_STRIP)
+ )
# set output directory
set_target_properties(${CDVDnullName} PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin/plugins)
-
diff --git a/plugins/CDVDnull/Linux/CDVDnull.cbp b/plugins/CDVDnull/Linux/CDVDnull.cbp
index 47e51d6601..34125156a7 100644
--- a/plugins/CDVDnull/Linux/CDVDnull.cbp
+++ b/plugins/CDVDnull/Linux/CDVDnull.cbp
@@ -48,20 +48,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/CDVDnull/Linux/CDVDnull.depend b/plugins/CDVDnull/Linux/CDVDnull.depend
deleted file mode 100644
index d9c4a11f02..0000000000
--- a/plugins/CDVDnull/Linux/CDVDnull.depend
+++ /dev/null
@@ -1,1980 +0,0 @@
-# depslib dependency file v1.0
-1251410354 source:/usr/local/src/pcsx2/plugins/CDVDnull/CDVD.cpp
-
- "CDVD.h"
-
-1251410354 /usr/local/src/pcsx2/plugins/CDVDnull/CDVD.h
-
- "PS2Edefs.h"
-
-
-
-
-1252273249 /usr/local/src/pcsx2/common/include/PS2Edefs.h
- "Pcsx2Defs.h"
-
-1252273249 /usr/local/src/pcsx2/common/include/Pcsx2Defs.h
- "Pcsx2Types.h"
-
-
-
-1252273249 /usr/local/src/pcsx2/common/include/Pcsx2Types.h
- "stdint.h"
-
-1251410471 /usr/local/src/pcsx2/common/include/intrin_x86.h
-
-1251387311 /usr/include/gtk-2.0/gtk/gtk.h
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1251387304 /usr/include/gtk-2.0/gdk/gdk.h
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-1251387304 /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h
-
-
-
-1252047550 /usr/include/glib-2.0/gio/gio.h
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-