Commit Graph

287 Commits

Author SHA1 Message Date
zilmar 6067e5b0de Global Variable: rename _TLBLoadAddress to g_TLBLoadAddress 2012-11-17 21:50:11 +11:00
zilmar 7f00d50dc6 Global Variable: rename _NextTimer to g_NextTimer 2012-11-17 14:45:50 +11:00
zilmar 0410fafd3b Global Variable: rename _SystemEvents to g_SystemEvents 2012-11-17 14:43:02 +11:00
zilmar e8b96dd915 Global Variable: Rename _TransVaddr to g_TransVaddr 2012-11-17 13:35:36 +11:00
zilmar 2bebce913e Global Variable: Rename _SystemTimer to g_SystemTimer 2012-11-17 13:31:46 +11:00
zilmar 1bc60df9a1 Global Variable: Remove CMemoryLabel 2012-11-17 13:30:05 +11:00
zilmar bd84758450 Global Variable: Rename _Audio to g_Audio 2012-11-17 13:27:46 +11:00
zilmar 7f248146b2 Global Variable: rename _Rom to g_Rom 2012-11-17 13:24:42 +11:00
zilmar 1992505c7f Global Variable: Rename _Plugins to g_Plugins 2012-11-17 13:20:21 +11:00
zilmar 3a73b759ad Global Variable: Rename _Reg to g_Reg 2012-11-17 13:18:14 +11:00
zilmar c219c0ab6a Global Variable: rename _TLB to g_TLB 2012-11-17 13:16:38 +11:00
zilmar 7212599e24 Global Variable: Change so that local variable is not the same name as global 2012-11-17 12:26:00 +11:00
zilmar 6c954c690c Global Variable: Rename _MMU to g_MMU 2012-11-17 12:18:00 +11:00
zilmar 278f99cf39 Global Variable: Rename _Recompiler to g_Recompiler 2012-11-17 12:15:55 +11:00
zilmar 4e1d29d322 Global Variable: Rename _SyncSystem to g_SyncSystem 2012-11-17 12:12:54 +11:00
zilmar c3df4cf49d Global Variable: Rename _BaseSystem to g_BaseSystem 2012-11-17 12:09:19 +11:00
zilmar 299df0e293 Global Variable: rename _System to g_System 2012-11-17 12:07:04 +11:00
zilmar d09a8adf10 Global Variable: rename _Settings to g_Settings 2012-11-17 12:02:04 +11:00
zilmar ab57cdbc7e Global Variable: Rename _Notify to g_Notify 2012-11-17 11:58:31 +11:00
zilmar ca161dfd07 Recompiler: Add perm loop check for R4300i_REGIMM_BGEZ in CheckLoopRegisterUsage 2012-11-17 11:53:29 +11:00
zilmar 8242822aa1 Recompiler: Add R4300i_REGIMM_BLTZAL to Analyze Instruction 2012-11-17 11:52:23 +11:00
zilmar 0e21c8568c Memory: Ignore SB in 8mb space when on 4mb 2012-11-13 17:42:31 +11:00
zilmar 63bd2b5cb4 Recompiler: Fixed debug warnings for overflow 2012-11-13 17:38:48 +11:00
zilmar 7b3028cca2 Sync Core: Remove reduce memory size when sync core is on 2012-11-13 17:17:49 +11:00
zilmar d396763b71 Audio: Add AI Count Per Byte setting 2012-11-13 16:44:13 +11:00
zilmar 8401f62336 Audio: Add more logging 2012-11-13 16:06:46 +11:00
zilmar bb1f89d8a2 Fix bug in logging with missing .c_str() 2012-11-13 16:06:06 +11:00
zilmar 0f9ff4256b Tweak Fixed Audio 2012-11-06 21:23:47 +11:00
zilmar 3e99f09243 Fixes to protected memory 2012-11-06 19:23:59 +11:00
zilmar d23d06fa98 Renamed _int64 to __int64 2012-11-06 19:23:59 +11:00
zilmar b02959e7bb Changed function names for getting/setting reg information 2012-11-06 19:23:57 +11:00
zilmar 4a3fb18f6a Ignore large (negative) audio DMA buffer 2012-11-06 19:09:56 +11:00
zilmar 4b03d36b62 Change of initial block code with 64bit system 2012-11-05 21:09:15 +11:00
zilmar ef8c9b02c3 Added DSRAV and Clean up usages of SetJump8 2012-11-05 21:08:33 +11:00
zilmar c8dcf8643c force grp[0] always be 0 in Interpreter 2012-11-05 21:06:14 +11:00
zilmar 1cb9dd2575 fix run time fail check shown in mario kart 2012-11-05 06:49:57 +11:00
zilmar f1a0c788ed Fix loop analysis for BGEZ 2012-11-03 12:38:18 +11:00
zilmar 464c280fa6 Change some of the Reg Info functions to be get and setters 2012-11-03 12:18:08 +11:00
zilmar d995dddfaf removed unused m_LLAddr 2012-11-03 10:30:19 +11:00
zilmar ffb69091a1 Updated how Fixed audio works with dual buffers and AI Interrupts 2012-11-03 10:27:19 +11:00
zilmar 8af55ad6c0 cleaned up more warnings 2012-11-03 10:26:11 +11:00
zilmar 62efa0fa4a Updated tlb check in Compile LW 2012-11-03 10:25:23 +11:00
zilmar 9c245e3c39 Changed the RSP test to be one if statement 2012-11-02 17:05:08 +11:00
zilmar 6490277a31 compile TLB Miss with const 2012-10-25 19:38:58 +11:00
zilmar ec106c94b8 Cleaned up clear related to tlb write 2012-10-25 19:37:52 +11:00
zilmar 4be9e911b8 Cleaned up RSP audio setting and SW when const value is a tlb address 2012-10-25 19:36:47 +11:00
zilmar 9818ea1f8b Cleaned up warnings on warning level 4 2012-10-25 19:35:04 +11:00
zilmar d72f2c2c55 More bug fixes related to ABL change, paper mario now boots 2012-10-24 22:57:57 +11:00
zilmar 0cdb90fa6d If RSP did not halt, re run it after a few cycles 2012-10-24 22:56:58 +11:00
zilmar 14eff29e3a removed mention of CC_Core 2012-10-24 22:55:51 +11:00
zilmar 68d6692421 Merge branch 'ABL-Refactor' 2012-10-23 21:41:24 +11:00
zilmar 493831507d Merge remote-tracking branch 'remotes/origin/master' 2012-10-23 21:39:12 +11:00
zilmar 39d57a5750 More fixes related to changes in ABL 2012-10-23 19:06:13 +11:00
zilmar a75034a723 updated where counters get updated related to register writes 2012-10-23 19:03:43 +11:00
zilmar 3316e4736a Add sync to PC function and show fpu register in sync dump 2012-10-23 19:02:47 +11:00
zilmar 6e8b92d8bc Changed sqrt.s to use x86 asm version of sqrt 2012-10-23 19:01:42 +11:00
zilmar cf1ea3484e clean up jump check 2012-10-23 04:03:49 +11:00
zilmar f6e7199118 cleaning up type and formating 2012-10-22 21:36:57 +11:00
zilmar 4a3073af6d More bug fixing related to changes ABL 2012-10-22 19:02:53 +11:00
zilmar d8d5379e2a Changed how find the next block to analysis 2012-10-22 04:03:32 +11:00
zilmar 0a84d1a0a3 Keep track of register modified in loop analysis 2012-10-21 10:19:09 +11:00
zilmar 966349aeb4 changed how linking to enter section 2012-10-20 15:19:06 +11:00
zilmar de5f7d543f clean up pc == target for REGIMM_BGEZL 2012-10-20 09:15:58 +11:00
zilmar d6a1a8cf52 Reset compile PC on delay slot section 2012-10-20 09:06:15 +11:00
zilmar 5f41558e49 Fixed delay slot at edge condition 2012-10-20 06:06:30 +11:00
zilmar 5f09adbc49 More fixes to ABL core, mario now booting 2012-10-19 17:32:42 +11:00
zilmar e638b161f2 more bug fixes with ABL refactoring, mario now boots 2012-10-18 20:58:24 +11:00
zilmar 9ba2812062 fix analysis of BEQ and Perm Loop 2012-10-17 22:34:55 +11:00
zilmar 22fd128452 fixed bug where if fall in to next section, and section fails to compile then it was not working correctly. 2012-10-17 22:25:25 +11:00
zilmar 923576c93c Added tracking of end block to detect if block should be split 2012-10-17 20:04:11 +11:00
zilmar b5bee95acb More code cleanup with getting ABL to try and work for super mario 2012-10-16 22:17:18 +11:00
zilmar aad58b8866 Cleaned up more code related to ABL 2012-10-16 08:47:05 +11:00
zilmar ccb1de6682 Firedemo and n64 stars now runs under ABL 2012-10-15 18:41:30 +11:00
zilmar b83e4dcf7b Added more logging and fixes to the refactoring of ABL 2012-10-15 08:37:48 +11:00
zilmar 347d358e39 Cleaned up more code related to the code block 2012-10-14 17:33:51 +11:00
zilmar afedaf38d6 Initial refractoring of ABL 2012-10-14 12:05:52 +11:00
Emmet Young f3b672ec37 Fix some naming mistakes in Mempak.cpp from previous commit 2012-10-06 23:55:56 +10:00
Emmet Young c72f2150e3 Remove no longer used C files.
Clean up mempak.cpp's file loading method up.
2012-10-06 20:25:56 +10:00
zilmar 47f184d201 Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-10-06 14:10:49 +10:00
zilmar 9dd62a9998 Cleaned up more warnings (on warning level 4) 2012-10-06 14:09:17 +10:00
Emmet Young 25a0bd6f11 Add some entries to the RDB for recently leaked games
Remove the break point in COP1_S_CEIL_W  since Taz requires this function to work properly in recompiler, the function appears to be working properly.
2012-10-06 13:08:23 +10:00
zilmar ba27b5e423 Added delay DP interrupt + refractoring of some of the settings 2012-10-06 09:53:11 +10:00
zilmar 2708be5577 fixed change for mthi and mtlo in 32bit core 2012-10-05 19:22:32 +10:00
zilmar 0a320a2953 update cycles before SI dma read/write 2012-10-05 19:22:01 +10:00
zilmar ad10525303 Cleaned up more warnings (on warning level 4) 2012-10-05 19:20:53 +10:00
zilmar b809b57faa Clean up warning level (warning level 4) from profiling class 2012-10-05 19:18:02 +10:00
zilmar 856e9838dc clean up warnings (warning level 4) in debugger files 2012-10-05 19:16:54 +10:00
zilmar 18420c0e8b removed 32bit version of mthi & mtlo (only using 64bit version) 2012-10-05 19:11:30 +10:00
zilmar 74066e0b04 added trace protected memory (changed from error to protected memory) 2012-10-05 19:10:18 +10:00
zilmar 523b1eb3ff cleaned up warnings (warning level 4) in Reg Info.cpp 2012-10-05 06:28:59 +10:00
zilmar a3c225ecf5 changed some of the functions to set/get register information to be clearer setters and getters 2012-10-04 21:01:10 +10:00
zilmar 19cb5e0e6c fixed dsubu 2012-10-04 13:17:19 +10:00
zilmar 2b24f49b84 Merge remote-tracking branch 'origin/head'
Conflicts:
	Source/Project64/N64 System/Mips/FlashRam.cpp
2012-10-04 12:33:04 +10:00
zilmar c291ab8457 Fail to start if sync core plugins fail to initialize 2012-10-04 11:43:42 +10:00
zilmar 236f2a1ddb do not fail on write invalid non memory address (failure should be for a tlb miss, not unhandled register 2012-10-04 10:07:26 +10:00
zilmar ff564bc11a Update changes to deal with debug warning 2012-10-04 10:04:08 +10:00
Emmet Young cf761b3f70 Fix up the Load and Save as options by using direct calls to the LoadState and SaveState function, pausing the cpu stops the event queue from being processed from the looks of it so we get stuck on trying to load and save a state. Zilmar you might want to tell me if I'm wrong here XD 2012-10-04 00:22:13 +10:00
Emmet Young ac0108a9b8 Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-10-03 16:34:21 +10:00
zilmar 0eacb90197 fixed typo in NOR 2012-10-03 09:17:13 +10:00
zilmar 2b83842076 Cleaned up NOR 2012-10-03 09:03:21 +10:00
Emmet Young 2e6fc68897 Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-10-03 06:44:52 +10:00
zilmar aa76a1d641 Cleaned up some of the initialization code from the C Core refactoring 2012-10-03 05:42:06 +10:00
zilmar 6dc3d85ff6 Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-10-02 21:15:40 +10:00
zilmar f973674718 Removed clear on write (needs to be refracted) 2012-10-02 21:04:14 +10:00
Emmet Young 721e56c94c Add a bitmask in FlashRam.cpp to resolve a potential loss of data error being caused in DOUBUTSU NO MORI (Animal Crossing) 2012-10-02 17:40:14 +10:00
Emmet Young 730655dda2 Finishing up on refactoring of the "C Core Interface.cpp" file
Added a 'header guard' to 7zip.h to stop multiple definitions

TODO: Refactor/clean up Mempak.cpp more
2012-10-02 01:32:32 +10:00
zilmar 15894a0e6c added more error checking around clearing code 2012-10-01 13:53:21 +10:00
zilmar 95e2b17796 Remove delay slot table 2012-10-01 13:49:31 +10:00
zilmar 977631bfd8 Add writing to PI DOMAIN2 registers 2012-10-01 13:47:35 +10:00
Emmet Young ee3abe73a8 Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development
Conflicts:
	Source/Project64/N64 System/Interpreter/Interpreter Ops.cpp
2012-10-01 00:52:47 +10:00
Emmet Young 74ea476d05 More refactoring 2012-10-01 00:37:40 +10:00
zilmar 021c76fce7 refracted code up code related div by zero 2012-09-30 23:07:00 +10:00
Emmet Young 90b0f6d60d More refactoring of the remaining C code 2012-09-30 22:24:07 +10:00
Emmet Young 5c8cad4b5d Core: More refactoring of the remaining C code 2012-09-30 16:07:08 +10:00
Emmet Young 76ca53f8f2 Core: [-] Remove the old C style display errors
[~] Move everything over to the newer notification system
2012-09-29 23:52:06 +10:00
Emmet Young 8d9e7df438 Core: [-] Remove the Win32Timer since it is not longer used 2012-09-29 23:23:40 +10:00
zilmar 076fecf43b Fixed sign issue in OR and NOR 2012-09-29 20:07:42 +10:00
zilmar 46bfe664aa fix issue with SDL and SDR using recompiler m_opcode 2012-09-29 19:46:13 +10:00
zilmar cece44d21c Added SDL and SDR for recompiler 2012-09-29 19:04:45 +10:00
zilmar 322c85802b Refracted and cleaned up code related to tlb read/write miss 2012-09-29 17:58:16 +10:00
zilmar 249d2a33f1 added tlb checking to syncing the cores 2012-09-29 06:17:44 +10:00
zilmar 42408d5b4b Fixed an issue with perm loop when advance block linking is on 2012-09-29 06:15:02 +10:00
zilmar ca4c7fd107 Fixed up COPO_MT wirded and TLBWR 2012-09-29 06:13:15 +10:00
zilmar 9a5865fea7 SLT 32 bit core should always only do a 32 bit comparison 2012-09-29 06:11:16 +10:00
zilmar f0c7291cd7 Make sure we are still doing a tlb miss when executing from a non valid tlb location (even if we have valid code there) 2012-09-29 06:09:27 +10:00
zilmar c6c80c0f04 Refracted some settings locations, removed some extra code from C Core, added a tlb miss menu option 2012-09-29 06:07:45 +10:00
zilmar b0c2626137 Add reset SP when SP is the target for ADD, ADDU, SUB 2012-09-28 09:02:01 +10:00
zilmar 48f661a6d6 Got SUBU to reset stack pointer if dest reg is SP 2012-09-28 08:55:45 +10:00
zilmar 77d68a5aad Optimized reset stack pointer when stack pointer was already mapped 2012-09-28 08:54:38 +10:00
zilmar 07286c302a Fixed delay overflow with jump instruction 2012-09-28 08:13:59 +10:00
zilmar 52427bb87f Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-09-27 14:10:37 +10:00
zilmar a1832f6928 Directly call timer done after perm loop, do not need to check the timer 2012-09-27 13:43:24 +10:00
Emmet Young 383446bdd3 Remove the extra IsValidRomImage from Rom browser, and make it use the one from within the n64 rom class.h file 2012-09-27 00:42:28 +10:00
Emmet Young a5befbcc87 Fix up a silly mistake of mine -.- 2012-09-26 20:42:12 +10:00
Emmet Young 8e1b58a7fa Merge branch 'master' of http://www.pj64-emu.com:8090/project64.development 2012-09-26 20:38:12 +10:00
Emmet Young 04e21bea16 Slightly re-order the PifRam.cpp file.
Add in support for the Real time clock, it reads the current time and date straight from the computer.
2012-09-26 20:36:52 +10:00
zilmar e12e24f572 Reset recompiler code when buffer gets to full 2012-09-26 20:32:39 +10:00
Emmet Young 920e376298 Change our PIF response to use X-scales algorithm, removes the requirement for the PIF responses to be stored in any way. 2012-09-26 20:26:17 +10:00
zilmar f391e1db6c Get it to always build the interpreter CPU 2012-09-26 17:11:56 +10:00
zilmar 3db4a1e595 added main look for the Recompiler where we are using Lookup and validate with TLB on 2012-09-26 17:10:47 +10:00
zilmar beb6b0c244 Fixed issues where JR did not check timer if jumping to constant 2012-09-26 14:01:27 +10:00
zilmar 5716e32ee8 cleaned up some code in Compile_Branch related to delay slot 4k overflow 2012-09-26 11:31:17 +10:00
zilmar 0976616c3c JALR now handles delay slot over 4k boundary 2012-09-26 10:55:09 +10:00
zilmar 4a52f9182c In overflow delay slot make sure TestTimer is set for jr 2012-09-26 10:38:29 +10:00
zilmar 89bc4087ef updated zlib, Moved and cleaned up the project settings in to property sheets also cleaned up some warnings 2012-09-26 09:23:20 +10:00
zilmar c07324ba53 fixed issue for sp hack where a jump delay slot which is on the 4k boundary modifies the stack pointer. 2012-09-26 08:07:49 +10:00
zilmar 47e8774315 fixed up interpreter use of tlb 2012-09-25 18:35:15 +10:00
zilmar 114bcfa35e Changed what X86Breakpoint displayed in the cpu out put log file 2012-09-25 15:59:07 +10:00
zilmar f52f82e8b5 Changed handling of delay slot which goes over a 4k boundary to be executed by the interpret code instead of trying to be compiler. This means we do not have to care about the self mod of the delay slot 2012-09-25 15:58:06 +10:00
zilmar 5344507496 Re-added buffer check on lookup core 2012-09-25 08:07:51 +10:00