182 Commits

Author SHA1 Message Date
jpd002
ea60d6f8b6 Added additional log when loading module from memory in LOADCORE.
git-svn-id: http://svn.purei.org/purei/trunk@1003 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-19 01:36:08 +00:00
jpd002
ca6646d65b Implemented SifSetDmaCallback (probably not the official name) in SIFMAN module.
git-svn-id: http://svn.purei.org/purei/trunk@1002 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-18 06:33:33 +00:00
jpd002
c718ed6c5c Added in-order module loading in IopBios. This was required to make the real DbcMan work properly.
git-svn-id: http://svn.purei.org/purei/trunk@1001 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-18 03:21:43 +00:00
jpd002
4ba7a20b32 Changed assert to log entry in Cdvdfsv when SearchFile structure sizes don't match the ones we know about.
Cleaned up Iop_Modload.

git-svn-id: http://svn.purei.org/purei/trunk@1000 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-18 01:27:34 +00:00
jpd002
9d6326ef5f Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@999 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-16 00:28:14 +00:00
jpd002
b93a620bfc Added work-in-progress SIO2 emulation module.
git-svn-id: http://svn.purei.org/purei/trunk@998 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-12 04:53:08 +00:00
jpd002
e472f37056 Added ReferThreadStatus and ExitThread in Iop_Thbase.
Added support for optional data when creating threads.
Threads are properly marked as "dormant" when they exit so that they can be restarted using StartThread.
Consolidated event flag processing in a single function.

git-svn-id: http://svn.purei.org/purei/trunk@997 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-12 04:03:41 +00:00
jpd002
3182d98813 Moved clock frequency constant in Ps2Const and normalized some of the names in there.
git-svn-id: http://svn.purei.org/purei/trunk@996 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-12 01:03:53 +00:00
jpd002
1e7c77e0e3 Changed names of Iop::Ioman and Iop::McServ's open flags because it was conflicting with POSIX definitions.
git-svn-id: http://svn.purei.org/purei/trunk@987 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-05 20:40:23 +00:00
jpd002
7a4a6cc4aa Cleanup/Compilation fixes.
git-svn-id: http://svn.purei.org/purei/trunk@979 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-08-22 06:09:29 +00:00
jpd002
1c11b74def Fixed some static asserts.
git-svn-id: http://svn.purei.org/purei/trunk@978 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-08-22 05:03:08 +00:00
jpd002
9fad1a2c0d Added support for %p in Iop_Stdio printf.
git-svn-id: http://svn.purei.org/purei/trunk@964 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-07-29 19:37:36 +00:00
jpd002
311b5352bb IopBios:
Allowed ChangeThreadPriority to change the current thread's priority by passing 0 as the thread ID.
Added basic support for message boxes.
Stop counting arguments when loading a module if we find an empty one.
Minor cleanup.


git-svn-id: http://svn.purei.org/purei/trunk@963 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-30 02:31:22 +00:00
jpd002
f43f131c81 Added support for passing arguments in Iop Loadcore.
git-svn-id: http://svn.purei.org/purei/trunk@962 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-30 02:02:41 +00:00
jpd002
4de9d48816 Added GetOtherData in SifCmd IOP module.
git-svn-id: http://svn.purei.org/purei/trunk@961 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-29 04:39:59 +00:00
jpd002
e4c9c9a1d7 Removed using namespace std;
git-svn-id: http://svn.purei.org/purei/trunk@960 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-28 06:06:55 +00:00
jpd002
089232a091 Write errors to log instead of stdout in Iop_Thsema.
git-svn-id: http://svn.purei.org/purei/trunk@959 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-28 06:06:30 +00:00
jpd002
b8e2e2cf55 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@955 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-25 18:28:43 +00:00
jpd002
bd8ca82f58 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@954 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-24 23:10:12 +00:00
jpd002
625ff1e42f Force thread rescheduling when receiving SIF method invocation.
git-svn-id: http://svn.purei.org/purei/trunk@948 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-24 19:06:02 +00:00
jpd002
9cdc88881b Added support for an additional PADDATA structure that is 128 bytes long used in Dynasty Warriors 2. Also did some cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@944 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-06-17 19:13:30 +00:00
jpd002
dd93e6bf69 Added AddDrv function in IoMan and made sure it returns -1 (to make sure we don't get random results).
git-svn-id: http://svn.purei.org/purei/trunk@934 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-29 01:08:09 +00:00
jpd002
521f7bc544 Improved RootCounters emulation (added more counters used in IOP and fixed counting modes).
Improved Timrman IOP module emulation (removed lots of hardcoded stuff).
Added a way to switch from PSX's CPU frequency to IOP's CPU frequency (needed for proper PSX/PS2 PSF playing).

git-svn-id: http://svn.purei.org/purei/trunk@933 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-29 01:01:02 +00:00
jpd002
34f9725cdd Reserved the thread priority ordering because it was wrong. (smaller prio number -> highest priority)
Also changed the "default" priority of threads created when modules are loaded to 64 because it was causing problems with FFX. It's probably not the right value though.

git-svn-id: http://svn.purei.org/purei/trunk@931 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-27 00:54:16 +00:00
jpd002
29a15f7f01 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@930 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-26 18:37:09 +00:00
jpd002
d9763416a1 Fixed compilation problems in PsfPlayer, added DebugWithDebugger config and did some cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@929 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-26 18:31:31 +00:00
jpd002
a209df2316 Fixed compilation.
git-svn-id: http://svn.purei.org/purei/trunk@928 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-25 03:31:42 +00:00
jpd002
3c74d837e0 Changed the way stack crawling works to give better information.
Got rid of MIPSModule and DebugThreadInfo and created BiosDebugInfoProvider.


git-svn-id: http://svn.purei.org/purei/trunk@927 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-24 05:57:31 +00:00
jpd002
e8b6f2541b Removed OsEventViewWnd (wasn't even being used)
Added ThreadViewWnd and moved some of the stack crawling stuff in MIPSAnalysis.

git-svn-id: http://svn.purei.org/purei/trunk@926 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-05-21 06:31:50 +00:00
jpd002
269f5efb1b Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@919 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-26 06:29:34 +00:00
jpd002
f935a2df60 Added THEVENT:ReferEventFlagStatus.
git-svn-id: http://svn.purei.org/purei/trunk@918 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-26 05:50:37 +00:00
jpd002
a25b6750ed Clear IOP analysis when resetting.
git-svn-id: http://svn.purei.org/purei/trunk@914 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-23 02:45:37 +00:00
jpd002
d6ba1bdf6e Added placeholder for iLink registers.
git-svn-id: http://svn.purei.org/purei/trunk@913 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-21 21:20:14 +00:00
jpd002
5fd26ba083 Made address translation take a 32-bits address instead of a 64-bits one. We probably won't ever need to use 64-bits addresses.
git-svn-id: http://svn.purei.org/purei/trunk@909 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-16 02:34:36 +00:00
jpd002
4d5a6c962b Removed some uses of BasicBlockPtr.
git-svn-id: http://svn.purei.org/purei/trunk@908 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-15 22:10:11 +00:00
jpd002
367c0d1153 Added support for different structure sizes used in commands in Iop_Cdvdfsv.
git-svn-id: http://svn.purei.org/purei/trunk@904 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-14 21:18:59 +00:00
jpd002
563a03541d Added a stub for Iop_Thbase::SetAlarm.
Removed HLE version of libsd since SPU emulation isn't really a problem now.
Added support for event flags in IOP bios.

git-svn-id: http://svn.purei.org/purei/trunk@899 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-12 04:52:26 +00:00
jpd002
2e057adbfd In Iop_Dynamic, return "unknown_xxxx" instead of just "unknown" to better distinguish the unknown functions.
git-svn-id: http://svn.purei.org/purei/trunk@898 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-12 03:50:09 +00:00
jpd002
a6c9616d7f Added support for bcopy in Iop_Sysclib.
git-svn-id: http://svn.purei.org/purei/trunk@897 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-12 03:04:32 +00:00
jpd002
d3be610e1e Renamed Iop_Sifman to Iop_SifMan.
git-svn-id: http://svn.purei.org/purei/trunk@891 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 23:47:04 +00:00
jpd002
7620b1be4c Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@890 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 23:44:10 +00:00
jpd002
7ba771bbb8 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@889 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 23:36:53 +00:00
jpd002
e63ed58475 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@888 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 20:38:41 +00:00
jpd002
1e6553f73a Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@887 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 20:33:13 +00:00
jpd002
424142c17c Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@886 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 20:04:47 +00:00
jpd002
76d9733577 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@885 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-04-07 18:56:00 +00:00
jpd002
7c8a4caca9 Added support for parsing %i in printf.
git-svn-id: http://svn.purei.org/purei/trunk@878 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-03-31 23:37:42 +00:00
jpd002
67521c5d4d Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@877 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-03-31 23:24:25 +00:00
jpd002
a733b5071f Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@876 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-03-31 20:13:58 +00:00
jpd002
c4e3392712 Cleanup.
git-svn-id: http://svn.purei.org/purei/trunk@875 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-03-30 05:41:11 +00:00