14866 Commits
Author SHA1 Message Date
Unknown W. Brackets 7726b95037 Reschedule / async in sceIoWrite as well. 2013-03-11 02:50:35 -07:00
Unknown W. Brackets 0fe7f3e8d3 Add delays for open, close, and getstat.
Actual delays for these seem much higher, but not sure.
2013-03-11 02:50:34 -07:00
Unknown W. Brackets fff8d0c7c4 Add a memory stick devctl to check writable.
Final Fantasy 4 seemed to want this.
2013-03-11 02:50:34 -07:00
Unknown W. Brackets f8d9846179 Add a few more umd devctl commands.
With help from jpcsp and testing.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets 4a18ace1aa Cleanup some sceIoDevctl() umd commands.
Based on tests.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets 70cbe30e45 Clean up sceIoIoctl() async and add delay.
A low estimate based on tests.
2013-03-11 02:50:33 -07:00
Unknown W. Brackets 0b9c248856 Reschedule in sceIoLseek() etc.
Also make it so we can return u64s easily in places...
2013-03-11 02:50:32 -07:00
Unknown W. Brackets feba421566 Make sceIoLseekAsync() etc. work better + cleanup.
No need to have this logic duplicated.
2013-03-11 02:50:32 -07:00
Unknown W. Brackets 0b097fb67b Make async IO actually wait for completion. 2013-03-11 02:50:32 -07:00
Unknown W. Brackets 2b8cb0011c sceIoRead() always reschedules, and handle async.
Tried to estimate some rough timing.  Fixes Unchained Blades.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets 99240914ea sceIoLseek() should sign extend error codes.
< 0 means error, and 0x0000000080000000 is not < 0.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets da7dfb07c3 Correctly notify callbacks on sceIoCloseAsync().
And remove defAction, it was the wrong way.
2013-03-11 02:50:31 -07:00
Unknown W. Brackets 56d369b4d7 Tests show async result is a sign-extended s64.
Errors become fffffff80010002, etc.
2013-03-11 02:50:30 -07:00
Unknown W. Brackets 60e6fa514a Start with sceIoOpenAsync() cleaning up async io.
Now it actually fires the callback as necessary.  Some games care.
2013-03-11 02:50:30 -07:00
Henrik Rydgård e0241e6574 Merge pull request #944 from unknownbrackets/jit-minor
Fix jit bug with jal found in Phantasy Star Portable 2
2013-03-11 02:25:45 -07:00
Henrik Rydgård b770ba7809 Merge pull request #940 from unknownbrackets/logging
Add a VERBOSE logging level + show thread name in log
2013-03-11 02:21:25 -07:00
Unknown W. Brackets ed76563973 Don't bother checking nice, just do it after. 2013-03-11 02:18:27 -07:00
Unknown W. Brackets b5fe67eb3d If the out is RA, delay slot isn't nice for jal.
Fixes Phantasy Star Portable 2 in jit.
2013-03-11 02:14:38 -07:00
Unknown W. Brackets 4f1d2f0584 Also clear the logging thread name on shutdown. 2013-03-11 00:18:59 -07:00
Unknown W. Brackets 9c6cfeeb26 Fix logging during savestate. 2013-03-10 23:52:11 -07:00
Unknown W. Brackets da3af79f3b Turn down logging for LwMutexes.
No one seems to have run into issues with these for a while, and they are
quite noisy, since games use them as lightweight locks.
2013-03-10 22:57:27 -07:00
Unknown W. Brackets 913dca69ef Turn down logging for things that can be inferred.
If you see a thread switch for a vblank wait, you know what happened.
2013-03-10 22:56:24 -07:00
Unknown W. Brackets 118050485f Show the current thread name in the log file.
This is very useful, although it kinda entwines the logging a bit
more than might be desired.
2013-03-10 22:25:03 -07:00
Henrik Rydgard 5b015dd788 Set default pixel mode for sceMpeg to 8888 2013-03-10 23:38:54 +01:00
Henrik Rydgard 94e485e695 Slightly improved OpenGL error handling on Windows 2013-03-10 23:09:52 +01:00
raven02 85920312c2 Cleanup sceMpegQueryStreamOffset/sceMpegQueryStreamSize 2013-03-11 03:55:19 +08:00
Henrik Rydgard 34c0c204bc Simple tilt controls (horizontal axis only, good for racing games) 2013-03-10 13:22:38 +01:00
Henrik Rydgård 11c730890e Merge pull request #927 from hrydgard/armjit-opt
ARMJIT: Optimize some common ops for immediates
2013-03-10 00:30:14 -08:00
Henrik Rydgård 075f7bbe0f Merge pull request #931 from sum2012/patch-3
Correct WrapI_UUUI and IMP sceMpegAvcConvertToYuv420
2013-03-10 00:30:06 -08:00
sum2012 bb82ad1685 Correct WrapI_UUUI and IMP sceMpegAvcConvertToYuv420 2013-03-10 15:21:55 +08:00
xsacha 1871c4e8bd Merge pull request #900 from xsacha/master
Rounding Mode Handling
2013-03-09 20:30:39 -08:00
Sacha ac3f3099e1 Fix the conditional rounding for round to zero. Implement ctc1, cfc1. 2013-03-10 11:25:24 +10:00
Henrik Rydgard 216dc7ad65 Optimize some common ops for immediates 2013-03-10 00:48:44 +01:00
Henrik Rydgård 5983925fc5 Merge pull request #926 from unknownbrackets/armjit-minor
Call GetImm() before Map* in case of overlap
2013-03-09 14:43:46 -08:00
Unknown W. Brackets a589361b82 Call GEtImm() before Map* in case of overlap. 2013-03-09 14:39:17 -08:00
Henrik Rydgård 0d196bcdc5 Merge pull request #925 from unknownbrackets/perf
Improve perf for thread switching / callbacks
2013-03-09 14:26:21 -08:00
Unknown W. Brackets 6b7ff47617 Improve perf of __KernelExecutePendingMipsCalls().
This was using ~3% in many games with fast forward.  It was all
the RTL type lookup, so avoiding it is an easy win.
2013-03-09 14:21:21 -08:00
Henrik Rydgård 5048829f61 Merge pull request #924 from unknownbrackets/hle-delay
Add dedicated HLE delay/eat cycle funcs
2013-03-09 14:17:56 -08:00
Unknown W. Brackets f9fc1af5c8 Improve perf of sceKernelCheckCallback().
Some games seem to call this a lot.
2013-03-09 14:11:53 -08:00
Henrik Rydgård b77d965e56 Merge pull request #917 from unknownbrackets/jit-memcheck
Memory breakpoints (jit x86 only)
2013-03-09 13:55:05 -08:00
Unknown W. Brackets dba04a7e22 Add a function for HLE to consume cycles.
Needed sometimes to make timing match better for tight loops.
Also removes the Puyo Puyo Fever hack.
2013-03-09 13:53:19 -08:00
Unknown W. Brackets 806ee13b61 Add a delay to sceUtilityLoadAvModule() as well. 2013-03-09 12:53:53 -08:00
Unknown W. Brackets 9100c4a5a2 armjit: Don't MapReg before checking for IsImm(). 2013-03-09 11:57:02 -08:00
Unknown W. Brackets d2be407223 Make HLE func delayed results more generic. 2013-03-09 11:42:15 -08:00
Unknown W. Brackets 9cf2bcd06c Fix register memcheck to respect offset. 2013-03-09 09:01:23 -08:00
Unknown W. Brackets 81db6aaf92 Properly pause the emu on memcheck hit. 2013-03-09 02:41:50 -08:00
Unknown W. Brackets d051ea3106 Flush when checking for memcheck coreStates.
Trouble is this has to be done outside the lock.  So, moved out.
2013-03-09 02:41:50 -08:00
Unknown W. Brackets a926ef6776 Respect read/write only mem breakpoints in x86 jit. 2013-03-09 02:41:49 -08:00
Unknown W. Brackets 15ff927d4d And now the dynamic memory breakpoints in x86 jit.
And add notes that this is interpreter/HLE only for now.
2013-03-09 02:41:49 -08:00
Unknown W. Brackets 68aaac25c6 Use unsigned compares in slowmem x86 jit. 2013-03-09 02:41:48 -08:00