Commit Graph

152 Commits

Author SHA1 Message Date
Unknown W. Brackets 80cc9d8c0e Mirror memory for VRAM mirrors.
For a long time we've done this with GetPointer() only, but it's better if
it's the same for all methods of memory access.

Technically, we should do the swizzling (and also swizzle the depth data in
softgpu), but there's no indication games depend on this, and GetPointer
would need changes anyway.
2014-05-06 00:45:47 -07:00
Unknown W. Brackets 996fa39684 Reduce some unnecessary includes in Core/. 2014-03-15 10:41:07 -07:00
Unknown W. Brackets eca06c60c7 Spend a bit less time in Read_Instruction on load. 2014-03-02 10:20:40 -08:00
Unknown W. Brackets d2108a962e Switch from USING_GLES2 to MOBILE_DEVICE.
Still using USING_GLES2 for, well, GLES2.  But for things that are really
about mobile, we need a new define.  Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Unknown W. Brackets d09575f25e When loading a savestate with more ram, realloc.
Also, I'm not sure the extra ram is being handled correctly, I think it's
not meant to be exposed to games except homebrew, not sure of the exact
method...
2014-01-08 00:06:27 -08:00
Henrik Rydgård e5e17fbc6e More include cleanup. Hoping for very slightly faster compile times.. 2013-12-30 10:49:05 +01:00
Unknown W. Brackets be55be7dcb Fix some formatting warnings. 2013-12-29 16:08:06 -08:00
Henrik Rydgård ce378b231f Delete CPU.cpp/h , cleanup 2013-12-30 00:11:29 +01:00
Henrik Rydgard a53a032120 Prevent hashes from coming out differently after replacement. 2013-12-20 13:53:03 +01:00
Henrik Rydgard 1e300447e1 Fix some replace-related bugs. Add "jal" replace inlining, not activated. 2013-12-18 16:27:23 +01:00
Henrik Rydgard 2d4c28826a Show replaced instructions correctly in disassembly 2013-12-18 11:42:19 +01:00
Henrik Rydgard 2eab4aa1bf Play around with function replacement. Turned off by default of course. 2013-12-17 23:40:27 +01:00
Unknown W. Brackets 13bf4d83fa Add memchecks for common HLE copy operations.
Better to catch some than miss everything.
2013-12-14 14:56:05 -08:00
Henrik Rydgård ebe2009124 Buildfix VS 2013 (see #4793) 2013-12-11 13:55:57 +01:00
Henrik Rydgard 1b770cc316 Typo fix 2013-12-11 11:00:01 +01:00
Unknown W. Brackets 5b0ece85da Use additional memory map mirrors for 32-bit.
Well, use them always for simplicity, but this works around 32-bit
limitations on mmap() size for Android and Linux.
2013-12-10 23:40:37 -08:00
Henrik Rydgard 2d8429ac48 Assorted cleanup in the MIPS emulation 2013-12-10 13:15:16 +01:00
Henrik Rydgård 9e42086e21 Logspam reduction 2013-12-09 13:45:17 +01:00
The Dax eff74892b0 Fix a styling issue, and allow shader names to be translated in the Win32 menubar. 2013-11-29 12:52:10 -05:00
The Dax e0f0409f82 Minimum version for the memory savestate section is 1, not 0. 2013-11-28 17:46:33 -05:00
The Dax 3e07e88e43 Don't break savestates made by HD Remasters. 2013-11-28 16:28:25 -05:00
The Dax 998a6f6fdb Load the model from the savestate before deciding the memory size. 2013-11-28 15:36:24 -05:00
The Dax ba31e18060 Perform savestate actions more intelligently. 2013-11-28 15:34:11 -05:00
The Dax 1b8df0d826 Save the model into the save state. 2013-11-28 14:58:59 -05:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets 478d007f96 I'm a typo machine. 2013-09-09 00:35:38 -07:00
Unknown W. Brackets 38e30e5a67 Fix bugs when memory size is 0x04C00000/etc.
Was experimenting with trying to match my non-phat's ram size.
2013-09-09 00:25:10 -07:00
Unknown W. Brackets 109ad17ac6 Use a typesafe struct for opcodes.
Also, correctly read delayslots using Read_Instruction on ARM.
2013-08-24 15:36:24 -07:00
Henrik Rydgard 9109882c04 More microoptimization 2013-08-11 22:12:14 +02:00
The Dax e4ed0f2d3e Various small code cleanups. 2013-07-17 17:49:57 -04:00
Henrik Rydgård 996c1642f2 Merge pull request #2697 from thedax/hdRemasterSupport
HD Remaster Support: Remove non-required variables from Savestate
2013-07-08 00:47:38 -07:00
Unknown W. Brackets bc6feed6a0 Fix memory allocation when swapping to a remaster. 2013-07-07 20:28:47 -07:00
The Dax a2c8ac5dbe Remove HD Remaster variables from the savestate; they don't seem to be required for it to function correctly. 2013-07-07 22:05:10 -04:00
The Dax da9472c486 Simplify the HDRemaster struct, eliminating the need for the g_MemoryEnd variable. 2013-07-07 03:07:51 -04:00
The Dax bd0944fc49 Remove a few more unneeded includes and change a loop to use ARRAY_SIZE instead of a variable. 2013-06-26 16:02:53 -04:00
The Dax d11deba3cd Fix HD Remasters and tidy up. This should be the final commit for the preliminary support, no further coding style issues withstanding. 2013-06-26 16:02:53 -04:00
The Dax 695f7eeec5 Fix more style issues, and abstract most of the init code from MemMap.cpp. 2013-06-26 16:02:52 -04:00
The Dax 1260d76167 Remove magic numbers from loop, thus fixing more coding style issues. 2013-06-26 16:02:52 -04:00
The Dax 51f387eee7 Remove unnecessary include. 2013-06-26 16:02:52 -04:00
The Dax 8ab734d516 Restructure the hack to be more correct, and add support for double texture coordinates. Fixes #2314.
Also address various coding style issues.
2013-06-26 16:02:52 -04:00
The Dax 96401eae1e Make the hack less intrusive, but there's a chicken and egg problem: Memory::Init is called before LOAD_PSP_ISO, so I'm slightly perplexed on how to proceed at the moment. 2013-06-26 16:02:52 -04:00
The Dax f8d309ec99 Add HD Remaster support. It's a HUGE hack right now, and needs to be properly rewritten so that allocation and stuff work better. This is based off the work of BlackDaemon, and I added in the auto check to switch the code on/off depending on if the game is a remaster or not. It does not affect or break any games that I know of. 2013-06-26 16:02:52 -04:00
Unknown W. Brackets fcfcadaef2 Fix potential crash looking up block_num. 2013-04-28 20:59:13 -07:00
Henrik Rydgard 2a39a3b972 JIT: Get rid of one memory access per dispatch, and get rid of blockcodepointers. 2013-04-27 01:32:03 +02:00
Unknown W. Brackets 78d14ecd04 Remove some unused/undefined memmap funcs. 2013-03-16 19:46:24 -07:00
Henrik Rydgard d8d2246236 Implement sceGeGetMtx and sceGeGetCmd 2013-01-05 19:26:37 +01:00
Xele02 61d116b5f1 Copy right size of save request. 2012-12-24 01:22:28 +01:00
Henrik Rydgard 48bc1afe26 Add vcmp ES condition code, uncached mirror of scratchpad 2012-11-06 16:01:41 +01:00
Henrik Rydgard ac910d7e75 Fix Windows and Android builds. 2012-11-05 15:42:21 +01:00
Henrik Rydgard 64cc573703 Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00