diff --git a/.gitignore b/.gitignore
index 7e50d2692b..ef982616ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@
*.suo
*.aps
*.exp
+*.qdact
Debug
Release
Windows/x64
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aba6a9d71a..cfc00885ea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -746,6 +746,7 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/CwCheat.h
Core/HDRemaster.cpp
Core/HDRemaster.h
+ Core/ThreadEventQueue.h
Core/Debugger/Breakpoints.cpp
Core/Debugger/Breakpoints.h
Core/Debugger/DebugInterface.h
@@ -897,6 +898,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/scePauth.h
Core/HW/atrac3plus.cpp
Core/HW/atrac3plus.h
+ Core/HW/AsyncIOManager.cpp
+ Core/HW/AsyncIOManager.h
Core/HW/MediaEngine.cpp
Core/HW/MediaEngine.h
Core/HW/MpegDemux.cpp
@@ -931,6 +934,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/MIPS/MIPSInt.h
Core/MIPS/MIPSIntVFPU.cpp
Core/MIPS/MIPSIntVFPU.h
+ Core/MIPS/MIPSStackWalk.cpp
+ Core/MIPS/MIPSStackWalk.h
Core/MIPS/MIPSTables.cpp
Core/MIPS/MIPSTables.h
Core/MIPS/MIPSVFPUUtils.cpp
diff --git a/Common/ArmEmitter.cpp b/Common/ArmEmitter.cpp
index de0c644f19..0e6d829242 100644
--- a/Common/ArmEmitter.cpp
+++ b/Common/ArmEmitter.cpp
@@ -951,7 +951,7 @@ extern const VFPEnc VFPOps[16][2] = {
{{ -1, -1}, {0x3B, 0x30}}, // 14: VABSi
};
-extern const char *VFPOpNames[16] = {
+const char *VFPOpNames[16] = {
"VMLA",
"VNMLA",
"VMLS",
diff --git a/Common/ArmEmitter.h b/Common/ArmEmitter.h
index 0bfe679d35..6da4dbc81e 100644
--- a/Common/ArmEmitter.h
+++ b/Common/ArmEmitter.h
@@ -272,8 +272,8 @@ public:
u32 Imm12Mod()
{
- // This is a IMM12 with the top four bits being rotation and the
- // bottom eight being a IMM. This is for instructions that need to
+ // This is an IMM12 with the top four bits being rotation and the
+ // bottom eight being an IMM. This is for instructions that need to
// expand a 8bit IMM to a 32bit value and gives you some rotation as
// well.
// Each rotation rotates to the right by 2 bits
diff --git a/Common/Common.h b/Common/Common.h
index 5dafca92bc..7e5597aead 100644
--- a/Common/Common.h
+++ b/Common/Common.h
@@ -96,7 +96,7 @@ private:
#define CHECK_HEAP_INTEGRITY()
// Alignment
- #define GC_ALIGNED16(x) __declspec(align(16)) x
+ #define MEMORY_ALIGNED16(x) __declspec(align(16)) x
#define GC_ALIGNED32(x) __declspec(align(32)) x
#define GC_ALIGNED64(x) __declspec(align(64)) x
#define GC_ALIGNED128(x) __declspec(align(128)) x
@@ -137,7 +137,7 @@ private:
#endif
#define __forceinline inline __attribute__((always_inline))
-#define GC_ALIGNED16(x) __attribute__((aligned(16))) x
+#define MEMORY_ALIGNED16(x) __attribute__((aligned(16))) x
#define GC_ALIGNED32(x) __attribute__((aligned(32))) x
#define GC_ALIGNED64(x) __attribute__((aligned(64))) x
#define GC_ALIGNED128(x) __attribute__((aligned(128))) x
diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp
index 46e17cf53d..d84f3056f0 100644
--- a/Common/KeyMap.cpp
+++ b/Common/KeyMap.cpp
@@ -424,7 +424,9 @@ const KeyMap_IntStrPair axis_names[] = {
{JOYSTICK_AXIS_GAS, "Gas"},
{JOYSTICK_AXIS_BRAKE, "Brake"},
{JOYSTICK_AXIS_DISTANCE, "Distance"},
- {JOYSTICK_AXIS_TILT, "Tilt"}
+ {JOYSTICK_AXIS_TILT, "Tilt"},
+ {JOYSTICK_AXIS_MOUSE_REL_X, "MouseDX"},
+ {JOYSTICK_AXIS_MOUSE_REL_Y, "MouseDY"},
};
static std::string unknown_key_name = "??";
diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt
index 9d1b4bf89c..dad4011183 100644
--- a/Core/CMakeLists.txt
+++ b/Core/CMakeLists.txt
@@ -15,6 +15,7 @@ set(SRCS
MIPS/MIPSDisVFPU.cpp
MIPS/MIPSInt.cpp
MIPS/MIPSIntVFPU.cpp
+ MIPS/MIPSStackWalk.cpp
MIPS/MIPSTables.cpp
MIPS/MIPSVFPUUtils.cpp
MIPS/JitCommon/JitCommon.cpp
@@ -74,6 +75,7 @@ set(SRCS
HLE/sceParseHttp.cpp
HLE/sceVaudio.cpp
HLE/sceAudiocodec.cpp
+ HW/AsyncIOManager.cpp
HW/MemoryStick.cpp
HW/MediaEngine.cpp
HW/SasAudio.cpp
diff --git a/Core/Config.cpp b/Core/Config.cpp
index 28953d0647..efe3c1ca45 100644
--- a/Core/Config.cpp
+++ b/Core/Config.cpp
@@ -89,6 +89,8 @@ void Config::Load(const char *iniFileName)
#else
cpu->Get("Jit", &bJit, true);
#endif
+ cpu->Get("SeparateCPUThread", &bSeparateCPUThread, false);
+ cpu->Get("SeparateIOThread", &bSeparateIOThread, false);
cpu->Get("FastMemory", &bFastMemory, false);
cpu->Get("CPUSpeed", &iLockedCPUSpeed, false);
@@ -99,7 +101,14 @@ void Config::Load(const char *iniFileName)
#else
graphics->Get("ResolutionScale", &iWindowZoom, 1);
#endif
- graphics->Get("RenderingMode", &iRenderingMode, 1); // default is buffered rendering mode
+ graphics->Get("RenderingMode", &iRenderingMode,
+ // Many ARMv6 devices have serious problems with buffered rendering.
+#if defined(ARM) && !defined(ARMV7)
+ 0
+#else
+ 1
+#endif
+ ); // default is buffered rendering mode
graphics->Get("HardwareTransform", &bHardwareTransform, true);
graphics->Get("TextureFiltering", &iTexFiltering, 1);
graphics->Get("SSAA", &bAntiAliasing, 0);
@@ -137,7 +146,7 @@ void Config::Load(const char *iniFileName)
sound->Get("VolumeSFX", &iSFXVolume, 7);
IniFile::Section *control = iniFile.GetOrCreateSection("Control");
- control->Get("ShowStick", &bShowAnalogStick, false);
+ control->Get("ShowAnalogStick", &bShowAnalogStick, true);
#ifdef BLACKBERRY
control->Get("ShowTouchControls", &bShowTouchControls, pixel_xres != pixel_yres);
#elif defined(USING_GLES2)
@@ -226,6 +235,8 @@ void Config::Save()
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
cpu->Set("Jit", bJit);
+ cpu->Set("SeparateCPUThread", bSeparateCPUThread);
+ cpu->Set("SeparateIOThread", bSeparateIOThread);
cpu->Set("FastMemory", bFastMemory);
cpu->Set("CPUSpeed", iLockedCPUSpeed);
diff --git a/Core/Config.h b/Core/Config.h
index 05905d8b5b..094e08dc4c 100644
--- a/Core/Config.h
+++ b/Core/Config.h
@@ -56,6 +56,9 @@ public:
bool bIgnoreBadMemAccess;
bool bFastMemory;
bool bJit;
+ // Definitely cannot be changed while game is running.
+ bool bSeparateCPUThread;
+ bool bSeparateIOThread;
int iLockedCPUSpeed;
bool bAutoSaveSymbolMap;
std::string sReportHost;
diff --git a/Core/Core.vcxproj b/Core/Core.vcxproj
index 2ac6129b66..604058db6f 100644
--- a/Core/Core.vcxproj
+++ b/Core/Core.vcxproj
@@ -251,6 +251,7 @@
+
@@ -335,6 +336,7 @@
+
@@ -437,6 +439,7 @@
+
@@ -485,7 +488,9 @@
+
+
diff --git a/Core/Core.vcxproj.filters b/Core/Core.vcxproj.filters
index ae1395a957..3d79f6093d 100644
--- a/Core/Core.vcxproj.filters
+++ b/Core/Core.vcxproj.filters
@@ -451,6 +451,12 @@
FileSystems
+
+ HW
+
+
+ MIPS
+
@@ -837,6 +843,15 @@
FileSystems
+
+ Core
+
+
+ HW
+
+
+ MIPS
+
diff --git a/Core/CoreParameter.h b/Core/CoreParameter.h
index f06ffd3834..64ad61c890 100644
--- a/Core/CoreParameter.h
+++ b/Core/CoreParameter.h
@@ -40,6 +40,7 @@ struct CoreParameter
std::string fileToStart;
std::string mountIso; // If non-empty, and fileToStart is an ELF or PBP, will mount this ISO in the background.
+ std::string errorString;
bool startPaused;
bool disableG3Dlog;
diff --git a/Core/CoreTiming.cpp b/Core/CoreTiming.cpp
index a080adb17e..1879a4869f 100644
--- a/Core/CoreTiming.cpp
+++ b/Core/CoreTiming.cpp
@@ -74,7 +74,7 @@ volatile u32 hasTsEvents = false;
// as we can already reach that structure through a register.
int slicelength;
-s64 globalTimer;
+MEMORY_ALIGNED16(s64) globalTimer;
s64 idledCycles;
static std::recursive_mutex externalEventSection;
diff --git a/Core/Debugger/SymbolMap.cpp b/Core/Debugger/SymbolMap.cpp
index c9a277e98b..b3fa7a9145 100644
--- a/Core/Debugger/SymbolMap.cpp
+++ b/Core/Debugger/SymbolMap.cpp
@@ -52,7 +52,8 @@ static u32 ComputeHash(u32 start, u32 size)
void SymbolMap::SortSymbols()
{
- std::sort(entries.begin(), entries.end());
+ lock_guard guard(lock_);
+ std::sort(entries.begin(), entries.end());
}
void SymbolMap::AnalyzeBackwards()
@@ -104,6 +105,7 @@ void SymbolMap::AnalyzeBackwards()
void SymbolMap::ResetSymbolMap()
{
+ lock_guard guard(lock_);
#ifdef BWLINKS
for (int i=0; i
#include
#include