Thread Closed 
 
Thread Rating:
  • 14 Votes - 4.07 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PPSSPP iOS Port
02-27-2013, 08:44 AM
Post: #151
RE: PPSSPP iOS Port
There is progress with Jit(dynarec)?
Find all posts by this user
02-27-2013, 12:28 PM
Post: #152
RE: PPSSPP iOS Port
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
Visit this user's website Find all posts by this user
02-27-2013, 12:44 PM (This post was last modified: 02-27-2013 01:17 PM by the avenger.)
Post: #153
RE: PPSSPP iOS Port
(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
   
Find all posts by this user
02-27-2013, 01:19 PM
Post: #154
RE: PPSSPP iOS Port
It's grey because it can't find assets/ppge_atlas.zim
Find all posts by this user
02-27-2013, 01:33 PM
Post: #155
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-27-2013, 02:12 PM
Post: #156
RE: PPSSPP iOS Port
(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
Find all posts by this user
02-27-2013, 02:27 PM
Post: #157
RE: PPSSPP iOS Port
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.
Visit this user's website Find all posts by this user
02-27-2013, 03:55 PM (This post was last modified: 02-27-2013 04:00 PM by theCreed.)
Post: #158
RE: PPSSPP iOS Port
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
Find all posts by this user
02-27-2013, 11:20 PM (This post was last modified: 02-27-2013 11:31 PM by xsacha.)
Post: #159
RE: PPSSPP iOS Port
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.
Find all posts by this user
02-28-2013, 07:30 AM
Post: #160
RE: PPSSPP iOS Port
(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?
Find all posts by this user
02-28-2013, 04:11 PM (This post was last modified: 02-28-2013 04:33 PM by brujo55.)
Post: #161
RE: PPSSPP iOS Port
@the avenger

same question,so jit working now?
Find all posts by this user
02-28-2013, 05:36 PM
Post: #162
RE: PPSSPP iOS Port
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
Find all posts by this user
03-01-2013, 01:24 AM
Post: #163
RE: PPSSPP iOS Port
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).
Find all posts by this user
03-01-2013, 01:57 AM (This post was last modified: 03-01-2013 01:59 AM by brujo55.)
Post: #164
RE: PPSSPP iOS Port
actually any emu for ios using JIT.

i think maybe robert brogglia emplement JIT in future update for satur emu ios.
Find all posts by this user
03-01-2013, 05:27 AM
Post: #165
RE: PPSSPP iOS Port
(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]
Find all posts by this user
Thread Closed 


Forum Jump: