Posts: 5
Threads: 0
Joined: Feb 2013
Reputation:
0
There is progress with Jit(dynarec)?
Posts: 40
Threads: 1
Joined: Nov 2012
Reputation:
6
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: oJit(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
Posts: 132
Threads: 2
Joined: Feb 2013
Reputation:
5
02-27-2013, 12:44 PM
(This post was last modified: 02-27-2013, 01:17 PM by the avenger.)
(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: oJit(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
Posts: 2,073
Threads: 62
Joined: Jun 2012
Reputation:
153
It's grey because it can't find assets/ppge_atlas.zim
Posts: 132
Threads: 2
Joined: Feb 2013
Reputation:
5
(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
Posts: 33
Threads: 1
Joined: Feb 2013
Reputation:
0
(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
Posts: 40
Threads: 1
Joined: Nov 2012
Reputation:
6
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.
Posts: 69
Threads: 1
Joined: Feb 2013
Reputation:
1
02-27-2013, 03:55 PM
(This post was last modified: 02-27-2013, 04:00 PM by theCreed.)
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
Posts: 726
Threads: 4
Joined: Nov 2012
Reputation:
29
02-27-2013, 11:20 PM
(This post was last modified: 02-27-2013, 11:31 PM by xsacha.)
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.
Posts: 651
Threads: 71
Joined: Nov 2012
Reputation:
12
(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?
Posts: 583
Threads: 12
Joined: Feb 2013
Reputation:
5
02-28-2013, 04:11 PM
(This post was last modified: 02-28-2013, 04:33 PM by brujo55.)
@the avenger
same question,so jit working now?
Posts: 1
Threads: 0
Joined: Feb 2013
Reputation:
0
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?
Posts: 726
Threads: 4
Joined: Nov 2012
Reputation:
29
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).
Posts: 583
Threads: 12
Joined: Feb 2013
Reputation:
5
03-01-2013, 01:57 AM
(This post was last modified: 03-01-2013, 01:59 AM by brujo55.)
actually any emu for ios using JIT.
i think maybe robert brogglia emplement JIT in future update for satur emu ios.
Posts: 583
Threads: 12
Joined: Feb 2013
Reputation:
5
(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]
|