Commit Graph

111 Commits

Author SHA1 Message Date
Henrik Rydgard
2430c283a5 More GPU cleaning, removing uses of GPUState.h where not needed.
Want to get rid of direct accesses to GPUState in modules that may be reused in
my future next-gen backends, that will reformat display lists into command lists that will
then be optimized and executed, out of sync with the real GPUState.

Candidate modules that may be reused in full are Framebuffer and Depal, possibly TextureCache to some degree.
2015-07-29 12:37:49 +02:00
Henrik Rydgard
cde585a29a Include dependency cleanup 2015-07-29 11:48:20 +02:00
Henrik Rydgard
d1bbc1d3c0 More regcache fixes. ML_IMM works now although there is another stability issue somewhere. 2015-07-11 16:59:13 +02:00
Jan Beich
a4eb49f009 Unbreak build with FakeJit
Core/MIPS/fake/FakeJit.cpp:141:46: error:
      unknown type name 'FakeJitBlock'; did you mean 'JitBlock'?
const u8 *FakeJit::DoFakeJit(u32 em_address, FakeJitBlock *b)
                                             ^~~~~~~~~~~~
                                             JitBlock
Core/MIPS/JitCommon/JitBlockCache.h:59:8: note:
      'JitBlock' declared here
struct JitBlock {
       ^
Core/MIPS/fake/FakeJit.cpp:141:20: error:
      out-of-line definition of 'DoFakeJit' does not match any declaration in
      'MIPSComp::FakeJit'
const u8 *FakeJit::DoFakeJit(u32 em_address, FakeJitBlock *b)
                   ^~~~~~~~~
Core/HLE/ReplaceTables.cpp:1044:29: error:
      use of undeclared identifier 'JITFUNC'
        { "fabsf", &Replace_fabsf, JITFUNC(Replace_fabsf), REPFLAG_ALLOWINLI...
                                   ^
Core/HLE/ReplaceTables.cpp:1101:27: error:
      invalid application of 'sizeof' to an incomplete type 'const
      ReplacementTableEntry []'
        for (int i = 0; i < (int)ARRAY_SIZE(entries); i++) {
                                 ^~~~~~~~~~~~~~~~~~~
native/math/../base/basictypes.h:67:30: note:
      expanded from macro 'ARRAY_SIZE'
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
                             ^~~
Core/HLE/ReplaceTables.cpp:1117:9: error:
      invalid application of 'sizeof' to an incomplete type 'const
      ReplacementTableEntry []'
        return ARRAY_SIZE(entries);
               ^~~~~~~~~~~~~~~~~~~
native/math/../base/basictypes.h:67:30: note:
      expanded from macro 'ARRAY_SIZE'
 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
                             ^~~
Core/MIPS/JitCommon/JitCommon.cpp:31:2: error:
      unknown type name 'Jit'
        Jit *jit;
        ^
Core/MIPS/JitCommon/JitCommon.cpp💯21: error:
      no member named 'Asm' in 'MIPSComp::FakeJit'
        if (MIPSComp::jit->Asm().IsInSpace((u8 *)(intptr_t)addr)) {
            ~~~~~~~~~~~~~  ^
Core/MIPS/JitCommon/JitCommon.cpp:101:45: error:
      no member named 'Asm' in 'MIPSComp::FakeJit'
                *offset = addr - (uint64_t)MIPSComp::jit->Asm().GetBasePtr();
                                           ~~~~~~~~~~~~~  ^
Core/MemMap.cpp:197:57: error:
      use of undeclared identifier 'MEMVIEW32_MASK'
  ...position, view.size, base + (view.virtual_address & MEMVIEW32_MASK));
                                                             ^
2015-05-26 15:20:10 +03:00
daniel229
af9e04dc97 Replace framebuffer download in Youkoso Hitsuji-Mura Portable 2015-04-20 16:36:07 +08:00
Henrik Rydgård
70fa830ba5 Split out the ReplaceJalTo test logic.
This makes it so the IR, in the future, can work correctly for
replacements.
2015-04-12 13:35:10 -07:00
Henrik Rydgard
b309c83973 Initial work on ARM64, based on the ARM jit. 2015-04-06 18:13:01 +02:00
Henrik Rydgard
f7215c39ee Add missing memcheck to Replace_memcpy_jak 2015-03-19 23:09:39 +01:00
daniel229
a4d8be5023 Fixes saveicon in Gakuen Heaven. 2015-03-18 11:43:31 +08:00
Unknown W. Brackets
4c15afa905 Allow multiple replacements on the same func.
Or, more specifically, hooks.  This allows enter and exit on the same
func, which can obviously be useful for debugging.
2015-02-21 15:48:09 -08:00
Henrik Rydgard
879baec692 With this, Jak and Daxter works again (but does warn at startup and has one illegal GetPointer later).
I really don't understand what's going on..
2015-02-21 13:07:13 +01:00
Henrik Rydgard
1ecfd6cebc More replacement function accuracy improvements. Makes J&D happy, "fixing" #7502. 2015-02-20 00:17:47 +01:00
Henrik Rydgard
23492d8d90 Jak and Daxter relies on implementation details of memcpy (scary!), fix our replacement. Fixes #7502 2015-02-19 11:16:16 +01:00
daniel229
aec9e25be9 Another replace frame download in Photo Kano. 2015-02-12 20:36:17 +08:00
daniel229
4d304737d8 Replace frame download in Photo Kano. 2015-02-09 14:08:36 +08:00
daniel229
0bd6d74996 Replace frame download in Utawarerumono portable 2015-01-14 17:27:14 +08:00
daniel229
c4d4aaab11 Replace frame download in MotorStorm: Arctic Edge 2015-01-13 15:42:25 +08:00
Henrik Rydgard
222802524c Oops 2015-01-11 00:35:43 +01:00
Henrik Rydgard
604abe933e Update submodules, add x64Emitter bugfix from Dolphin (plus a few new instrs), misc 2015-01-11 00:12:32 +01:00
daniel229
e2b52b38d7 Replace frame download in Flowers 2015-01-09 14:36:48 +08:00
daniel229
c59ad888a1 Another replace frame download in To Heart 2 Portable 2015-01-09 14:34:03 +08:00
daniel229
6ff5084b8b Update as unknownbrackets' suggestion. 2015-01-06 17:37:33 +08:00
daniel229
f0b6826d67 Replace frame download in To Heart 2 Portable 2015-01-06 15:22:44 +08:00
daniel229
be8f9f50e4 Replace frame download in Kokoro Connect Yochi Random 2015-01-06 15:13:53 +08:00
daniel229
f288cd04a9 Replace frame download in Grisaia no Kajitsu La Fruit de la Grisaia 2015-01-06 15:05:30 +08:00
daniel229
c5aafb3be4 Replace frame download in Sangoku Koi Senki Otome no Heihou 2015-01-06 14:48:56 +08:00
daniel229
923f398d0d Replace frame download in Amatsumi Sora ni Kumo no Hatate ni 2015-01-06 14:39:06 +08:00
daniel229
daa145d282 Replace frame download in Kud Wafter 2015-01-06 14:30:45 +08:00
daniel229
a66423dfa3 Replace frame download in "Rewrite Portable" 2015-01-06 14:19:36 +08:00
Henrik Rydgård
76b1313ed9 Merge pull request #7164 from daniel229/func_replace_orenoimouto_2
Another replace frame download in Ore no Imouto ga Konnani Kawaii Wake g...
2014-12-18 22:22:20 +01:00
Henrik Rydgard
a54e0cf244 Goodbye PowerPC, you can always be resurrected when the time comes 2014-12-16 21:58:38 +01:00
Lioncash
2f269ac8c0 ReplaceTables: Fix null checks 2014-12-11 14:34:10 -05:00
daniel229
eee73607b5 Another replace frame download in Ore no Imouto ga Konnani Kawaii Wake ga Nai 2014-12-11 11:13:59 +08:00
Henrik Rydgard
4457dca4c9 Rename the ARM Jit class to ArmJit 2014-12-07 14:25:22 +01:00
daniel229
6846e8b140 Replace frame download in Kenka Banchou Bros: Tokyo Battle Royale 2014-12-03 18:44:04 +08:00
daniel229
5ff098efb9 Another replace frame download in danganronpa 1 2014-10-05 13:46:47 +08:00
daniel229
ef1484da65 Replace frame download in danganronpa 1 2014-10-05 13:44:39 +08:00
daniel229
a7cf3aeafc Another replace frame download in danganronpa 2 2014-10-05 13:42:03 +08:00
daniel229
d7927009d0 Replace frame download in danganronpa 2 2014-10-05 13:39:15 +08:00
daniel229
aad301a97a Replace download frame in Boku no Natsuyasumi 2 and 4 2014-09-27 14:00:37 +08:00
daniel229
4de7e89330 Replace download frame in Sora no kiseki SC,and a comment for Sora no kiseki 3rd 2014-09-26 17:13:01 +08:00
daniel229
ea9a0182e4 Replace download frame in Sora no kiseki FC 2014-09-26 16:55:37 +08:00
daniel229
d452d02aba Update replace function for Toaru Majutsu to Kagaku no Ensemble. 2014-09-21 10:58:56 +08:00
daniel229
a657da91c3 Replace download frame in Toaru Majutsu to Kagaku no Ensemble 2014-09-18 15:37:12 +08:00
daniel229
48b774d143 Replace download frame in Rezel Cross 2014-09-18 15:29:59 +08:00
daniel229
2dd3ab6c20 Replace frame download in suikoden1&2 2014-09-15 00:19:22 +08:00
Unknown W. Brackets
a892779f89 Merge pull request #6880 from daniel229/func_replace_sakurasou
Replace frame download in Sakurasou No Pet Na Kanojo

Conflicts:
	Core/HLE/ReplaceTables.cpp
2014-09-12 22:28:27 -07:00
daniel229
5f4a95cdd5 Update as unknown's suggestion 2014-09-13 10:21:00 +08:00
Unknown W. Brackets
4bad83b12b Move a couple funcs outside of loops.
Will cut down on the performance hit.
2014-09-11 22:56:53 -07:00
daniel229
7c1d4234ab Replace frame download in Sakurasou No Pet Na Kanojo 2014-09-11 15:32:07 +08:00