Commit graph

41 commits

Author SHA1 Message Date
Jean-Philip Desjardins
f7e84ea26b Store maxAddress and change way subTableCount is computed. 2017-08-09 23:05:30 -04:00
Jean-Philip Desjardins
a3d53f6a14 Cleanup. 2017-08-09 23:05:29 -04:00
Mahmood(Thunder07)
97c229ec98 Cleanup
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Mahmood(Thunder07)
342fca4aa0 Cleanup/Update for loops 2017-05-08 19:11:51 +01:00
Jean-Philip Desjardins
295da9f66c Added EE executor that handles block cache invalidation using virtual memory mechanisms. 2015-06-07 23:44:46 -04:00
Jean-Philip Desjardins
516f294f43 Revert "Fixed blocks still being linked to old blocks after ClearActiveBlocks is called."
This reverts commit e5d9f6afe9.
2014-10-18 18:32:42 -04:00
Jean-Philip Desjardins
f7778de2c2 Revert "Added prediction for next block to be executed in BasicBlock and MipsExecutor."
This reverts commit b0e3693195.
2014-10-18 18:32:26 -04:00
Jean-Philip Desjardins
95a26460f6 Use make_shared to create basic block. 2014-10-18 18:22:35 -04:00
Jean-Philip Desjardins
e5d9f6afe9 Fixed blocks still being linked to old blocks after ClearActiveBlocks is called. 2014-10-18 00:16:19 -04:00
Jean-Philip Desjardins
b0e3693195 Added prediction for next block to be executed in BasicBlock and MipsExecutor. 2014-10-15 02:37:57 -04:00
Jean-Philip Desjardins
af369931f7 Added comment about something that should be done later. 2014-09-18 01:04:46 -04:00
jpd002
372740688f Removed intrusive_ptr stuff from BasicBlock and use move operator = instead of allocating a new CMemoryFunction.
MipsExecutor now manages its blocks with unique_ptrs.

git-svn-id: http://svn.purei.org/purei/trunk@1096 b36208d7-6611-0410-8bec-b1987f11c4a2
2013-04-12 02:35:55 +00:00
jpd002
91f6d7d10f Added a way to flush parts of the instruction cache when loading data from disk.
git-svn-id: http://svn.purei.org/purei/trunk@1091 b36208d7-6611-0410-8bec-b1987f11c4a2
2013-03-10 05:11:53 +00:00
jpd002
3b56af1456 Made breakpoints handling more reliable by moving the breakpoint checking code after function partitioning because a breakpoint inside a non-partitioned function could never be hit.
Also added a different "first run" check for breakpoints that is only enabled when we come back from paused virtual machine state.
Moved more stuff between "DEBUGGER_INCLUDED" ifdefs.

git-svn-id: http://svn.purei.org/purei/trunk@1010 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-09-29 01:28:23 +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
b1afb8abee Added new way to search for blocks in the compiled block list which is O(1).
Removed some useless params in MIPS constructor.
Removed the need for the _PSX preprocessor def.

git-svn-id: http://svn.purei.org/purei/trunk@860 b36208d7-6611-0410-8bec-b1987f11c4a2
2012-03-13 06:16:33 +00:00
jpd002
e83a427c11 Added a generic way to distinguish branch instructions that don't have a delay slot (needed for VCALLMS, ERET and SYSCALL) from those who have.
Added a real COP_SCU_Reflection file.

git-svn-id: http://svn.purei.org/purei/trunk@821 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-12-10 20:49:50 +00:00
jpd002
d66aed7028 Fixed Vagrant Story PSF calling function at 0x0.
Added missing PSX system calls for Vagrant Story and Granstream Saga.
Added COP0 to the IOP subsystem for FF6 and Chrono Trigger PSF.
Added non-default char encoding handling in PSF tags.
Now patches the PSX-EXE header of loaded PSF files because Grandstream Saga specifies bad text section size in its header.

git-svn-id: http://svn.purei.org/purei/trunk@769 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-06-06 00:18:33 +00:00
jpd002
89f7b32300 Improved some IOP modules for Shadow Hearts PSF set.
Added a patch in IopBios for Shadow Hearts.
Fixed annoying breakpoint problem.

git-svn-id: http://svn.purei.org/purei/trunk@739 b36208d7-6611-0410-8bec-b1987f11c4a2
2011-02-26 22:42:59 +00:00
jpd002
75cb0db8f4 Changed basic block memory management to use intrusive_ptr and added a block caching mechanism in VuExecutor to speed things up.
git-svn-id: http://svn.purei.org/purei/trunk@719 b36208d7-6611-0410-8bec-b1987f11c4a2
2010-11-17 03:59:29 +00:00
jpd002
9ffbb7b432 Removed using namespace std.
git-svn-id: http://svn.purei.org/purei/trunk@693 b36208d7-6611-0410-8bec-b1987f11c4a2
2010-08-23 05:13:35 +00:00
jpd002
8273d783d1 Fixed memory corruption bug.
git-svn-id: http://svn.purei.org/purei/trunk@560 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-11-18 02:23:38 +00:00
jpd002
1b07b4716d Changes for Half-Life.
git-svn-id: http://svn.purei.org/purei/trunk@527 b36208d7-6611-0410-8bec-b1987f11c4a2
2009-06-06 15:38:03 +00:00
jpd002
646ee08ad2 Some stuff for Guilty Gear XX.
git-svn-id: http://svn.purei.org/purei/trunk@380 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-10-20 04:12:44 +00:00
jpd002
d030684e8c Changes to the core.
git-svn-id: http://svn.purei.org/purei/trunk@378 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-10-16 22:15:35 +00:00
jpd002
2a4451e3c7 Removed some test code and comments.
git-svn-id: http://svn.purei.org/purei/trunk@362 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-08-24 21:32:12 +00:00
jpd002
14129468e4 Removed uses of CList, CEvent, CEventEx, CEventHandler.
Fixed TR1 compilance.
Input configuration support for Win32.
Support for analog axis in PadMan.

git-svn-id: http://svn.purei.org/purei/trunk@361 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-08-24 21:28:42 +00:00
jpd002
2ab17d0778 Added block linking to the executor.
git-svn-id: http://svn.purei.org/purei/trunk@350 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-06-30 18:58:04 +00:00
jpd002
ffe5a4646e Added proper separation of code and data address spaces in MemoryMap.
Added DMA channels 0 and 8.
Added VU0 stuff.
Major tweakage of UNPACK in VPU.

git-svn-id: http://svn.purei.org/purei/trunk@342 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-06-15 19:55:28 +00:00
jpd002
93fac4df68 Removed some unused/old stuff.
Added a basic idle loop skipper.

git-svn-id: http://svn.purei.org/purei/trunk@272 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-03-19 11:30:45 +00:00
jpd002
154594faa0 First movie in Ys1&2 plays completely.
git-svn-id: http://svn.purei.org/purei/trunk@240 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-02-10 23:08:04 +00:00
jpd002
bdae54953b Reintegrated CDVDFSV and more conversion for Ys1&2.
git-svn-id: http://svn.purei.org/purei/trunk@227 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-01-20 23:08:56 +00:00
jpd002
b07241ba0d More conversion done for quake.elf.
git-svn-id: http://svn.purei.org/purei/trunk@222 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-01-12 01:27:04 +00:00
jpd002
eef9c370e9 Small fix in executor to allow saved states to work properly.
git-svn-id: http://svn.purei.org/purei/trunk@218 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-01-09 05:46:05 +00:00
jpd002
8b26b04f8b More conversion done for cubemastah.elf.
git-svn-id: http://svn.purei.org/purei/trunk@216 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-01-07 04:05:17 +00:00
jpd002
0f0fad5ab4 1987 runs completely (still a bug though).
Fixed FPS counter.

git-svn-id: http://svn.purei.org/purei/trunk@213 b36208d7-6611-0410-8bec-b1987f11c4a2
2008-01-03 07:42:54 +00:00
jpd002
5a20f4353c Some more work done with CodeGen rewrite
git-svn-id: http://svn.purei.org/purei/trunk@211 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-29 17:22:26 +00:00
jpd002
2c5b592126 New VM state engine
git-svn-id: http://svn.purei.org/purei/trunk@202 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-17 04:08:46 +00:00
jpd002
fdd1734ff0 MacOSX
git-svn-id: http://svn.purei.org/purei/trunk@197 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-12 03:09:57 +00:00
jpd002
9b21741059 Added some missing files
git-svn-id: http://svn.purei.org/purei/trunk@182 b36208d7-6611-0410-8bec-b1987f11c4a2
2007-12-06 23:05:38 +00:00