Commit Graph

695 Commits

Author SHA1 Message Date
Henrik Rydgård
ddf5b695ac Update ArmEmitter with Sonic1's new NEON emitters. Thanks! 2013-11-13 11:34:47 +01:00
Henrik Rydgård
a0c6b18134 CPUDetect x86: Detect FMA support 2013-11-13 10:47:05 +01:00
Sacha
04b338f39e Buildfix for sse2 builds. 2013-11-13 12:08:46 +10:00
Sacha
08803c101e Remove MathUtil.{cpp,h} 2013-11-13 11:26:12 +10:00
The Dax
0b609b72fb Fix Windows build. 2013-11-12 18:26:32 -05:00
Sacha
8597893e14 Fix Blackberry QWERTY default values. 2013-11-13 04:22:21 +10:00
Sacha
ba28ece947 Remove unused StdConditionalVar 2013-11-13 03:52:12 +10:00
Sacha
91ddddc2ef Remove unused Thread.{cpp,h} 2013-11-13 02:50:46 +10:00
Sacha
1d9f6e5c0c Code clean up for atomics. Remove glib usage in Symbian as the kernel calls actually fit nicer. 2013-11-13 00:30:26 +10:00
Sacha
2fb7a77135 Code cleanup. Use lambdas in Thread.h (port from Dolphin). 2013-11-13 00:30:26 +10:00
Sacha
a8a8223c06 Symbian: Fix incorrect define. Wasn't showing correct # cores. 2013-11-12 16:00:43 +10:00
Unknown W. Brackets
1a98691c57 armjit: Fix ANDI2R() clearing low bits incorrectly. 2013-11-11 19:07:16 -08:00
Sacha
d50b01a778 Doesn't really 'free', so called 'reset' instead. 2013-11-12 02:13:34 +10:00
Sacha
3bc8adf426 Fix crashes on Symbian related to memory allocation. 2013-11-12 02:06:12 +10:00
Unknown W. Brackets
ee492099b5 Avoid a literal in ORI2R where possible. 2013-11-10 14:38:08 -08:00
Sacha
2c795907b2 Symbian: Handle multiple executable memory allocations.
Windows: Remove MemUsage (from Dolphin) as it was unused.
Fix some tabbing.
2013-11-11 02:55:45 +10:00
Unknown W. Brackets
92d5643423 Implement SetCurrentThreadAffinity on Android.
But, it doesn't really seem to improve performance.
2013-11-09 23:08:45 -08:00
Unknown W. Brackets
83fe874dcc armjit: Use multiple BICs in ANDI2R if possible.
Rather than a temporary.
2013-11-09 08:42:31 -08:00
Unknown W. Brackets
6038d96b46 armjit: Flush regs using STMIA where possible. 2013-11-09 08:25:07 -08:00
Henrik Rydgard
1bf83efe9e ARM optimization in ADDI2R: Dual adds instead of MOVI2R, ADD when possible 2013-11-08 12:43:47 +01:00
Henrik Rydgård
a03e5c6de0 Merge pull request #4460 from hrydgard/vertex-decoder-jit
Vertex decoder JIT
2013-11-05 07:30:58 -08:00
Unknown W. Brackets
f6662054bd Fix arm emitter bug in LDRH and friends. 2013-11-05 00:32:08 -08:00
Unknown W. Brackets
732ae13ebb Fast path CallSyscall where possible.
It seems we're spending a decent amount of time there, which isn't
entirely unexpected.  We can eliminate some things easily.
2013-11-04 07:59:37 -08:00
Unknown W. Brackets
7a8671f8a2 Add a TSTI2R helper for readability mainly. 2013-11-03 21:58:26 -08:00
Unknown W. Brackets
5de7181b36 Add other forms of LDM/STM to the emitter. 2013-11-03 21:31:05 -08:00
Sacha
52eb46c291 Buildfix for Symbian. Remove unused swap code.
Symbian didn't like the -= even though Linux did.
2013-11-03 20:40:40 +10:00
Sacha
3abeb62230 Use new OS10.2 APIs for detecting some CPU info on Blackberry. 2013-11-02 00:35:39 +10:00
Henrik Rydgård
5b58497b0d Flip the default Y-axis stick mapping for Ouya 2013-11-01 12:03:38 +01:00
Henrik Rydgård
bf7f582c3c If an input (axis or key) is mapped to multiple targets, trigger them
all, not just the first one.
2013-10-31 16:50:27 +01:00
Henrik Rydgård
43240515de Fix weird axis mapping issue on Ouya 2013-10-31 11:06:54 +01:00
Henrik Rydgård
cdee118c60 Make the default control mapping on Ouya a bit more workable:
Start/Select are now mapped to the analog triggers instead of
non-existing buttons.
2013-10-31 10:51:03 +01:00
Sacha
e411968dc9 Remove duplicate thread library (StdThread) 2013-10-29 11:50:29 +10:00
Henrik Rydgård
0e54e24b24 Revert "Use swap code from native instead. Remove all other versions of it."
Broke movie playback.

This reverts commit 9fcb08a326.

Conflicts:
	native
2013-10-28 17:24:03 +01:00
Henrik Rydgard
9df2025c4f Azerty L/R fix 2013-10-28 11:25:18 +01:00
Henrik Rydgård
e5d802e82f Merge pull request #4339 from unknownbrackets/linux-minor
Fix Linux x86 pic build (Qt) for some versions of gcc
2013-10-27 11:54:15 -07:00
Sacha
9fcb08a326 Use swap code from native instead. Remove all other versions of it. 2013-10-28 03:07:32 +10:00
Unknown W. Brackets
443c719744 Support i386 PIC Linux builds (for Qt.) 2013-10-27 16:40:44 +00:00
Unknown W. Brackets
95c8ee5089 Missing stddef library (Linux buildfix.) 2013-10-27 15:52:40 +00:00
Sacha
484cb8211c Removed unused OpenSSL code and don't compile it. 2013-10-28 01:18:29 +10:00
Unknown W. Brackets
ffa0f2fb44 Fix some arm emitter warnings on win64.
We link it in for debugging purposes.
2013-10-26 17:57:40 -07:00
Sacha
0282b505b0 Fix CPUDetect for i386 devices. Thanks @Sonic1. Confirmed by ganoo. 2013-10-26 01:18:59 +10:00
Sacha
cc5934a588 Blackberry threading optimisations. 2013-10-25 21:52:50 +10:00
Sacha
4c52346063 Use Blackberry/UNIX time functions instead of fallbacks. 2013-10-25 21:52:50 +10:00
Henrik Rydgard
6c5a2ea91a Windows: Try to autodetect and adjust for QWERTZ and AZERTY keyboard layouts.
Might not have all the layout codes necessary yet.
2013-10-24 12:45:44 +02:00
Unknown W. Brackets
a1c280f46b Simplify __cpuidex().
Wasn't building 32-bit for me on Ubuntu.
2013-10-20 23:45:56 -07:00
adrian17
d71fc887a9 Simplified MsgHandler 2013-10-20 17:42:07 +02:00
adrian17
2752e65727 Removed some unused content from Common.h 2013-10-20 16:32:09 +02:00
Henrik Rydgård
4426f84067 Merge pull request #4238 from skardach/master
Fix i386 crash at Qt startup
2013-10-19 15:19:18 -07:00
Unknown W. Brackets
3e18027b8d Fix some type comparison warnings. 2013-10-19 14:57:45 -07:00
Unknown W. Brackets
f68f1e2482 Avoid an unused variable. 2013-10-19 14:57:45 -07:00
Stan Kardach
4c3a7f414e Fix __cpuid bug on i386 CPU family 2013-10-19 10:04:30 +02:00
Sacha
8de3d882a1 Buildfix for Qt, Qt5, Windows on Qt. 2013-10-19 05:22:32 +10:00
The Dax
c955e07712 Clean up FileUtil.h. Remove GetBundleDirectory(I searched master and nothing uses it either). 2013-10-18 10:35:28 -04:00
The Dax
26e17e0e7f Disable default logging(--log still works fine), delete CommonPaths.h, and remove unused funcs in FileUtil. 2013-10-18 10:35:28 -04:00
The Dax
a9a6e7b384 Move default log file to g_Config.memCardDirectory/PSP/SYSTEM/Logs/ppsspp.log. 2013-10-18 10:35:28 -04:00
Unknown W. Brackets
267bf97834 Avoid a divide by zero error on non-Core i cpus.
Also support Linux and, why not, Android too.
2013-10-17 23:12:04 -07:00
Henrik Rydgård
850b5d2961 Merge pull request #4228 from thedax/i7CPUDetection
System Info screen: Add correct core count detection for i7(and maybe i5/i3?) CPUs.
2013-10-17 16:27:01 -07:00
The Dax
2e58f04fee Ifdef away the detection on non-Windows for now. 2013-10-17 19:16:18 -04:00
The Dax
0400a61d51 Add correct core count detection for i7(and maybe i5/i3?) CPUs, and update the SysInfo screen to show more information about threads on x86/x64. 2013-10-17 19:03:33 -04:00
Unknown W. Brackets
01f97b1662 Get cpu info from /sys where possible.
Fixes #4215.  May impact texture scaling performance.
2013-10-16 22:56:20 -07:00
Unknown W. Brackets
77913c2d56 Don't flash open the console when disabled. 2013-10-15 22:27:03 -07:00
Sacha
be47964ff2 Use 'Cores' instead of 'Threads' for ARM. 2013-10-15 15:28:19 +10:00
Sacha
2d7b58d64a Add CPU info for ARM-based devices. 2013-10-15 15:05:52 +10:00
Sacha
18b7503dd5 Fix rounding errors in armjit. 2013-10-14 19:24:13 +10:00
The Dax
54de8739f1 Fix critical bug with GetSysDirectories. 2013-10-13 19:30:07 -04:00
Sacha
d49b4fad9a Miscellaneous changes for Blackberry. 2013-10-12 17:19:02 +10:00
Henrik Rydgård
ef2d188a68 Merge pull request #4035 from shenweip/patch-12
Implemented sceJpegDecodeMJpegYCbCr and sceJpegMJpegCsc.
2013-10-08 02:52:42 -07:00
Henrik Rydgard
fc8aa7bd8f Crashfix dumping display lists that start at the start of VRAM (seems to hit this in GTA).
Add a couple of comments.
2013-10-07 22:58:46 +02:00
Unknown W. Brackets
607f19b6a4 Savestate tm differently for crossplat.
Especially Linux 32/64, but really all are nice.
2013-10-06 22:09:51 -07:00
Unknown W. Brackets
0ec09f9700 Move parts of ChunkFile into a cpp, cleanup. 2013-10-06 22:09:50 -07:00
shenweip
54492732b5 Rename u24 to u24_be. 2013-10-05 02:52:33 +08:00
shenweip
a7d3b8f710 Add a new type u24. 2013-10-04 23:33:03 +08:00
Unknown W. Brackets
06ae016782 Savestates now work okay between git versions. 2013-09-29 20:27:51 -07:00
Unknown W. Brackets
3dee91f68f Separate a quick interface to savestate to memory. 2013-09-29 14:26:14 -07:00
Henrik Rydgård
4582902cf2 Make the ARM stuff build on clang so we can later get the unit test to
work there. also fixes the build.
2013-09-29 20:01:38 +02:00
Henrik Rydgard
b661ae6c41 Add very simple jit viewer screen to dev menu. Add untested emitter for cvt.f32.f16 & c:o. 2013-09-29 13:41:56 +02:00
The Dax
d0cdcdfe28 Fix Android(and probably others) build. 2013-09-28 22:15:02 -04:00
adrian17
58d8bc86c5 Removed two functions as they are also in Native/file.
Also, removed TabsToSpaces() from the header as it no longer exists.
2013-09-28 23:05:36 +02:00
adrian17
6fc2ad56a4 Cleaned up CommonPaths some more and removed BuildCompleteFilename() 2013-09-28 00:21:44 +02:00
adrian17
5f86bc44d4 Deleted some doubled #includes. 2013-09-27 21:38:07 +02:00
adrian17
d8adf95b24 Removed some unused content from Common 2013-09-27 17:35:06 +02:00
adrian17
db6ed6f399 Removed unused files from Common. 2013-09-27 16:47:21 +02:00
Unknown W. Brackets
2751da1cec Cut down on work in regcache init on x86.
Very tiny tiny optimization for games, but 8-10% optimization for tests.
2013-09-19 00:29:50 -07:00
Unknown W. Brackets
3e6df2d7aa Just save XMM0-XMM15 on x64.
Not really sure why but seems like VS2010 expects XMM4 to be preserved.

Fixes headless on x64.
2013-09-16 23:17:34 -07:00
Henrik Rydgård
2ec10d5835 Merge pull request #3780 from unknownbrackets/savestates
Make it possible to add new sections optionally
2013-09-15 15:10:16 -07:00
shenweip
03197c376c Fix some double semicolon. 2013-09-15 23:17:22 +08:00
Unknown W. Brackets
887a61ae56 Make it possible to add new sections optionally. 2013-09-15 07:58:52 -07:00
Unknown W. Brackets
418d6c1e83 Reset the game when loading a state fails.
This way it doesn't crash.
2013-09-14 21:19:10 -07:00
Unknown W. Brackets
2cca2568c7 Make sure the saved git ver is null terminated.
strncpy() is a tricky beast.
2013-09-14 20:29:01 -07:00
Unknown W. Brackets
d2f2f8d7ad Make it possible to version DoState sections.
This will have the more important benefit of bailing if anything goes
awry.
2013-09-14 20:19:58 -07:00
Henrik Rydgard
499dbc05ee ArmEmitter: Merge a fix and some new instructions from Sonic1's emitter. 2013-09-14 12:04:55 +02:00
Ced2911
d1cfe83cee update emitter 2013-09-12 10:40:42 +02:00
Ced2911
17b8d5d813 More recompiled instruction (fpu/alu) 2013-09-12 10:40:14 +02:00
Ced2911
d4d0051199 fix fmin/fmax 2013-09-12 10:39:47 +02:00
Ced2911
b84cdbf17d new op 2013-09-12 10:38:18 +02:00
Ced2911
7795af3622 add somes instructions, some fixes 2013-09-12 10:38:03 +02:00
Ced2911
29b1a79065 Add fpu 2013-09-12 10:37:38 +02:00
Ced2911
a3c7ac8f1d add somes instructions 2013-09-12 10:37:22 +02:00
Ced2911
8b3bb9615c some cleanup + fixes 2013-09-12 10:37:08 +02:00
Ced2911
547b168dcb add some new instructions 2013-09-12 10:36:57 +02:00
Ced2911
f1b11c63fc add some shifs instruction, fixes some instructions 2013-09-12 10:36:44 +02:00
Ced2911
a107a9ded4 Jit Fix 2013-09-12 10:36:19 +02:00
Ced2911
8731b666cf add XORI 2013-09-12 10:36:07 +02:00
Ced2911
dd83a922bd add MFCR and MTCR 2013-09-12 10:35:53 +02:00
Unknown W. Brackets
c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00
Unknown W. Brackets
08b41df6a2 Change a few more log types. 2013-09-07 13:31:14 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Henrik Rydgard
324cde5a79 Let's actually use the log category mechanism. A first step. 2013-09-07 21:19:21 +02:00
Henrik Rydgard
26c5ee4a6d Add screen to control debug levels. Will make it easier to access later. 2013-09-07 13:38:37 +02:00
Henrik Rydgard
78d3ee3d6a Misc cleanup, mostly logging code 2013-09-07 13:01:19 +02:00
Henrik Rydgard
d21db0f852 Fix Xperia Play detection, hide touch controls on Ouya 2013-09-07 11:06:28 +02:00
Henrik Rydgard
c845da2887 Switch System_GetName to System_GetProperty 2013-09-04 11:31:40 +02:00
Henrik Rydgard
9dcd67fc31 Pass the new sha1/md5 test. 2013-09-03 00:36:55 +02:00
Unknown W. Brackets
7349de55d1 Fix some initialization/sprintf warnings. 2013-09-01 01:15:07 -07:00
Arthur Blot
f424155f50 Linux buildfix 2013-08-31 01:32:56 +02:00
kaienfr
9ea27dd7ba Disable log console close button and ctrl+C effect
Avoid closing the application when the log console is closed.
2013-08-30 16:10:35 +02:00
Henrik Rydgard
29a3a0650c Merge branch 'master' of https://github.com/papel/ppsspp into papel-master
Conflicts:
	pspautotests
2013-08-29 20:18:36 +02:00
Henrik Rydgard
b19fe900bf Fixes for x86 android build 2013-08-29 20:06:24 +02:00
papel
d22e555e4f Fix volume and name of Latin American languages. 2013-08-29 13:25:29 -03:00
The Dax
1350236f4f Win32: Update some funcs in FileUtil.cpp for Unicode. 2013-08-28 10:28:25 -04:00
Henrik Rydgard
6360fcb0ae Add some stats to get some idea of much alpha tested drawing we do.
Turns out it's one hell of a lot and we really should fix this by
checking both vertices and textures to deduce when we can just skip
alpha testing safely, probably quite often.

I care about this because alpha testing drawing is very expensive
on some mobile chips.
2013-08-27 21:01:17 +02:00
Henrik Rydgard
cae5aef231 Detect Ouya correctly, for keymap assignment 2013-08-27 11:27:26 +02:00
Unknown W. Brackets
8ccd3773d9 Open files using wide functions on win32.
Fixes #3432.
2013-08-27 00:28:46 -07:00
Henrik Rydgard
55aa3d13c7 Win32: Switch to a UNICODE build. This took quite a bit of fixing. 2013-08-26 19:00:16 +02:00
The Dax
13f6c26b6b Fix a couple spacing things. 2013-08-25 16:55:00 -04:00
Unknown W. Brackets
1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
The Dax
59f878a3c4 Add space as a confirm key, and use a loop for hard-coded confirm keys, too. 2013-08-22 13:06:12 -04:00
The Dax
4beef2b877 Fix dumb copy and paste error. 2013-08-22 12:53:33 -04:00
The Dax
0c249f0084 Remove RMB as a default cancel key. We'll let the user bind it to cancel manually. 2013-08-22 12:38:04 -04:00
The Dax
57ab8aa611 Only hard-code keys if they're not bound. 2013-08-22 08:44:08 -04:00
The Dax
20166c7f4f Let the UI update the confirm cancel keys when the user presses back. They may have changed the O/X preference option. 2013-08-22 07:10:06 -04:00
The Dax
968150cc77 Rewrite the hard-coded removal of accept/cancel keys. It's much cleaner and simpler now. 2013-08-22 06:46:35 -04:00
Henrik Rydgard
6b48dda12f Fix a couple of keymap load/save/default bugs 2013-08-20 16:07:23 +02:00
The Dax
1fd2f1ab3d Do the default keymap for DirectInput, too. An oversight, I guess? 2013-08-20 03:34:30 -04:00
Henrik Rydgard
1559b4404a Fix some joystick mapping errors, a minor bug 2013-08-19 22:40:05 +02:00
Unknown W. Brackets
342bad8402 Fix audio crash on shutdown, log thread names more. 2013-08-18 23:25:14 -07:00
Sacha
ba030da663 Enable controllers and change keymapping for Blackberry. 2013-08-19 00:03:02 +10:00
Henrik Rydgard
e6ad305545 360 controller: Update default mapping. Put speed toggle on THUMBR instead of a trigger as the triggers are bouncy. 2013-08-18 11:47:11 +02:00
Henrik Rydgard
1fabe1f78e Fix loading of non-mapped keys 2013-08-18 01:04:49 +02:00
Henrik Rydgard
47f2efb0e5 Fixes to default key mappings, add default button, fix saving of mapped controls on Android, fixes #3213 2013-08-18 00:41:19 +02:00
Henrik Rydgard
47ac6c02fc Disable accelerometer as axis, fix some omissions in KeyMap (doesn't actually autoload all those maps yet) 2013-08-17 13:41:29 +02:00
Henrik Rydgard
82b59a7e9d Fix up/down/left/right ordering for analog sticks 2013-08-17 11:47:56 +02:00
Henrik Rydgard
edb0614a59 Fix analog axis names. Make L2/R2 on x360 controllers analog.
Also slightly nicer behaviour - don't create empty mapping, instead ask for mappings immediately.
2013-08-17 11:18:45 +02:00
Henrik Rydgard
c14fcfdae1 Merge branch 'master' into better-controlmap 2013-08-17 10:37:04 +02:00
Henrik Rydgard
3636f90902 Step 3: Replace current key mapping dialog with a list-based one which is much more workable. 2013-08-17 10:34:38 +02:00
Unknown W. Brackets
5787a2b9f7 KISS and Android buildfix. 2013-08-16 23:48:08 -07:00
Henrik Rydgard
3a8432373d Step 2: Multiple inputs can be mapped per psp key now, and save load works. 2013-08-16 21:25:36 +02:00
Henrik Rydgård
a678621caf Merge pull request #3191 from Ced2911/ppc_basic
ppc support + ppc jit
2013-08-16 12:16:49 -07:00
Ced2911
6296f2b75c fix endian struct 2013-08-16 20:44:23 +02:00
Henrik Rydgard
f1bc751eb9 Step 1: Go back to a single control map.
Break save/load for now, it will be redone.
2013-08-16 19:34:44 +02:00