forums.PPSSPP.org
PPSSPP iOS Port - Printable Version

+- forums.PPSSPP.org (https://forums.ppsspp.org)
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Builds, releases and ports (/forumdisplay.php?fid=4)
+---- Forum: iOS port (/forumdisplay.php?fid=26)
+---- Thread: PPSSPP iOS Port (/showthread.php?tid=200)



RE: PPSSPP iOS Port - infernoxzx - 02-27-2013 08:44 AM

There is progress with Jit(dynarec)?


RE: PPSSPP iOS Port - rock88 - 02-27-2013 12:28 PM

I modify Jit::RunLoopUntil function to
Code:
void Jit::RunLoopUntil(u64 globalticks)
{
    // TODO: copy globalticks somewhere
    mprotect((void *)enterCode, 1024, PROT_READ | PROT_EXEC);
    ((void (*)())enterCode)();
}
I do not know correctly it was to do, but now app crashing in other function, log -
Quote:thread #1: tid = 0x2403, 0x000f5eec PPSSPP`ArmGen::ARMXEmitter::Write32(this=0x1eafe800, value=3003122476) + 12 at ArmEmitter.h:353, stop reason = EXC_BAD_ACCESS (code=2, address=0x8a6c0a0)
frame #0: 0x000f5eec PPSSPP`ArmGen::ARMXEmitter::Write32(this=0x1eafe800, value=3003122476) + 12 at ArmEmitter.h:353
frame #1: 0x000f562e PPSSPP`ArmGen::ARMXEmitter::WriteInstruction(this=0x1eafe800, Op=16, Rd=R0, Rn=R0, Rm=(null), SetFlags=false) + 302 at ArmEmitter.cpp:457
frame #2: 0x000f4d14 PPSSPP`ArmGen::ARMXEmitter::MOVW(this=0x1eafe800, Rd=R0, Rm=(null)) + 116 at ArmEmitter.cpp:432
frame #3: 0x000f4b6c PPSSPP`ArmGen::ARMXEmitter::MOVI2R(this=0x1eafe800, reg=R0, val=142607148, optimize=true) + 428 at ArmEmitter.cpp:112
frame #4: 0x00195bc4 PPSSPP`MIPSComp::Jit::DoJit(this=0x1eafe800, em_address=142607148, b=0x0836c000) + 188 at ArmJit.cpp:148
frame #5: 0x00195ae0 PPSSPP`MIPSComp::Jit::Compile(this=0x1eafe800, em_address=142607148) + 172 at ArmJit.cpp:125
frame #6: 0x00191e8c PPSSPP`JitAt() + 48 at ArmAsm.cpp:64
frame #7: 0x08a6c080
frame #8: 0x0019c590 PPSSPP`MIPSState::RunLoopUntil(this=0x002246b0, globalTicks=22200000) + 64 at MIPS.cpp:148



RE: PPSSPP iOS Port - the avenger - 02-27-2013 12:44 PM

(02-27-2013 12:28 PM)rock88 Wrote:  I modify Jit::RunLoopUntil function to
Code:
void Jit::RunLoopUntil(u64 globalticks)
{
    // TODO: copy globalticks somewhere
    mprotect((void *)enterCode, 1024, PROT_READ | PROT_EXEC);
    ((void (*)())enterCode)();
}
I do not know correctly it was to do, but now app crashing in other function, log -
Quote:thread #1: tid = 0x2403, 0x000f5eec PPSSPP`ArmGen::ARMXEmitter::Write32(this=0x1eafe800, value=3003122476) + 12 at ArmEmitter.h:353, stop reason = EXC_BAD_ACCESS (code=2, address=0x8a6c0a0)
frame #0: 0x000f5eec PPSSPP`ArmGen::ARMXEmitter::Write32(this=0x1eafe800, value=3003122476) + 12 at ArmEmitter.h:353
frame #1: 0x000f562e PPSSPP`ArmGen::ARMXEmitter::WriteInstruction(this=0x1eafe800, Op=16, Rd=R0, Rn=R0, Rm=(null), SetFlags=false) + 302 at ArmEmitter.cpp:457
frame #2: 0x000f4d14 PPSSPP`ArmGen::ARMXEmitter::MOVW(this=0x1eafe800, Rd=R0, Rm=(null)) + 116 at ArmEmitter.cpp:432
frame #3: 0x000f4b6c PPSSPP`ArmGen::ARMXEmitter::MOVI2R(this=0x1eafe800, reg=R0, val=142607148, optimize=true) + 428 at ArmEmitter.cpp:112
frame #4: 0x00195bc4 PPSSPP`MIPSComp::Jit::DoJit(this=0x1eafe800, em_address=142607148, b=0x0836c000) + 188 at ArmJit.cpp:148
frame #5: 0x00195ae0 PPSSPP`MIPSComp::Jit::Compile(this=0x1eafe800, em_address=142607148) + 172 at ArmJit.cpp:125
frame #6: 0x00191e8c PPSSPP`JitAt() + 48 at ArmAsm.cpp:64
frame #7: 0x08a6c080
frame #8: 0x0019c590 PPSSPP`MIPSState::RunLoopUntil(this=0x002246b0, globalTicks=22200000) + 64 at MIPS.cpp:148
did you give it root access?
EDIT:also any idea why it is grey like this everytime i build it
[attachment=1478]


RE: PPSSPP iOS Port - Henrik - 02-27-2013 01:19 PM

It's grey because it can't find assets/ppge_atlas.zim


RE: PPSSPP iOS Port - the avenger - 02-27-2013 01:33 PM

(02-27-2013 01:19 PM)Henrik Wrote:  It's grey because it can't find assets/ppge_atlas.zim
so what do i need to do,i added the whole assets folder to the project but it didn't work


RE: PPSSPP iOS Port - V6ser - 02-27-2013 02:12 PM

(02-27-2013 01:33 PM)the avenger Wrote:  
(02-27-2013 01:19 PM)Henrik Wrote:  It's grey because it can't find assets/ppge_atlas.zim
so what do i need to do,i added the whole assets folder to the project but it didn't work

I didn't read the whole source, but you have to see if there is any file which calls ppge_atlas.zim, with all of these mods you made to the source trying to get JIT working it maybe have been lost Smile


RE: PPSSPP iOS Port - rock88 - 02-27-2013 02:27 PM

the avenger,
See my previous post
Also you can add some printf function to VFSReadFile in native/file/zip_read.cpp, for print full file path, and view if something is wrong.


RE: PPSSPP iOS Port - theCreed - 02-27-2013 03:55 PM

I have managed to get crisis core working on iPhone. I have screens if anyone is interested. I don't no much about emulation (backend anyway) but if jit gets working on iOS then this game will run pretty well


RE: PPSSPP iOS Port - xsacha - 02-27-2013 11:20 PM

The mprotect function you gave removes the PROT_EXEC flag. So now it doesn't have permission to execute (which defeats the purpose).

Yes, crisis core works.

Merged your assets fix rock88.


RE: PPSSPP iOS Port - livisor - 02-28-2013 07:30 AM

(02-27-2013 11:20 PM)xsacha Wrote:  The mprotect function you gave removes the PROT_EXEC flag. So now it doesn't have permission to execute (which defeats the purpose).

Yes, crisis core works.

Merged your assets fix rock88.

Just saw this in git builds list "Fix iOS assets. Thanks rock88".The cydia repo is not updated so where exactly do all the iOS fixes go?


RE: PPSSPP iOS Port - brujo55 - 02-28-2013 04:11 PM

@the avenger

same question,so jit working now?


RE: PPSSPP iOS Port - nmzik - 02-28-2013 05:36 PM

Hello!When xcode "linking" app i have 96 errors!
Quote:ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libCommon.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libCommon.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libetcpack.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libetcpack.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libsha1.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libsha1.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libstb_image.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libstb_image.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libstb_vorbis.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libstb_vorbis.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libzlib.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libzlib.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libsnappy.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libsnappy.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libkirk.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libkirk.a
ld: warning: ignoring file /Users/nmzik/ppsspp/build-ios/lib/Debug/libcityhash.a, file was built for archive which is not the architecture being linked (armv7): /Users/nmzik/ppsspp/build-ios/lib/Debug/libcityhash.a


How to fix it?Undecided


RE: PPSSPP iOS Port - xsacha - 03-01-2013 01:24 AM

Try cleaning and then compile again.

And no, JIT not working. But it's nothing to do with PPSSPP. It's to do with packaging/how you run it. Needs to be done like other emus that use JIT (but I couldn't actually find any).


RE: PPSSPP iOS Port - brujo55 - 03-01-2013 01:57 AM

actually any emu for ios using JIT.

i think maybe robert brogglia emplement JIT in future update for satur emu ios.


RE: PPSSPP iOS Port - brujo55 - 03-01-2013 05:27 AM

(02-27-2013 02:27 PM)rock88 Wrote:  the avenger,
See my previous post
Also you can add some printf function to VFSReadFile in native/file/zip_read.cpp, for print full file path, and view if something is wrong.

is possible to add custum frameskip [selectable 0,1,2,3,etc]