Gpsp Port To Maemo


Figa

Still Fresh
Joined
Jun 13, 2010
Messages
10
Hi, I want to try port this emu from gp2x to N900. I am using this source from notaz http://notaz.gp2x.de/other.php Building is ok I have done only small adjustments. I use dynarec from gp2x and others from pc_build and common code. When i want run any rom i get this from debugger:
Code:
0x003104bc in rom_translation_cache()
0x003104bc <rom_translation_cache+8>: add r12,r12 #16; 0x6
(gdb) n
Program received signal DIGILL, Illegal instruction.
0x41002a5c in ? () from /lib/ld-linux.so.3
0x41002a5c:  undefined
Do you have any idea what is wrong? Thank you very much for your reply.
 
Thanks for reply. This:
Code:
#define translate_invalidate_dcache_one(which)                                \
  if (which##_translation_ptr > last_##which##_translation_ptr)               \
  {                                                                           \
    warm_cache_op_range(WOP_D_CLEAN, last_##which##_translation_ptr,          \
      which##_translation_ptr - last_##which##_translation_ptr);              \
    warm_cache_op_range(WOP_I_INVALIDATE, last_##which##_translation_ptr, 32);\
    last_##which##_translation_ptr = which##_translation_ptr;                 \
  }

#define translate_invalidate_dcache()                                         \
{                                                                             \
  translate_invalidate_dcache_one(rom)                                        \
  translate_invalidate_dcache_one(ram)                                        \
  translate_invalidate_dcache_one(bios)                                       \
}
I use your warm. I have to add #include "warm.h"; to cpu_threaded.c because I was getting undeclared errors.
 
Did you modify warm.c?
Is __ARM_EABI__ defined by your compiler?

I assume this is the same problem someone had when doing pandora port, not sure why it wouldn't work, the code looks correct.
 
No, I didn´t. Is it necessary? I am not sure, but I am trying to find it(I don´t know how exectly I should, but some people say that it is included).
 
Do you have any dea what is wrong? Why is your video_blend and warm better? THX for your reply.
 
Hi I get new errors from debugger. Maybe it helps.
Code:
Program receiced signal SIGILL, Illegal instruction.
0x41002a5c in dl_main () from /lib/ld-linux.so.3
0x41002a5c <dl_main+2136>;:    bne   0x410029b8 <dl_main+1972>
(gdb) bt
#0 0x41002a5c id dl_main () from /lib/ld-linux.so.3
#1 0x40018f30 in SDL_iconv_string() from /usr/lib/libSDL-1.2.so.0
#2 0x40046f9c in ?? () from /usr/lib/libSDL-1.2.so.0
#3 0x40046f9c in ?? () from /usr/lib/libSDL-1.2.so.0
and this:
Code:
365	in ../main.c
(gdb) n

Program received signal SIGILL, Illegal instruction.
0x41002a5c in dl_main () from /lib/ld-linux.so.3
0x41002a5c <dl_main+2136>:	bne	0x410029b8 <dl_main+1972>
(gdb) bt
#0  0x41002a5c in dl_main () from /lib/ld-linux.so.3
#1  0x40018f30 in SDL_iconv_string (tocode=0xbef38c62 "", 
    fromcode=0x3 <Address 0x3 out of bounds>, 
    inbuf=0x2f <Address 0x2f out of bounds>, inbytesleft=0)
    at ../../src/stdlib/SDL_iconv.c:824
#2  0x40046f9c in X11_SetCaptionNoLock (this=0x40058f84, 
    title=0x5c9878 "gpSP: 0.0ms 9003566411160715858597450622732103438288037522974083117273892862791949918142464.0fps", 
    icon=0x5ce3d0 "gpSP")
    at ../../src/video/x11/SDL_x11wm.c:260
#3  0x400471ec in X11_SetCaption (this=0x5b3c60, 
    title=0x5c9878 "gpSP: 0.0ms 90035664111607158585974506227321034382880375229740831
17273892862791949918142464.0fps",
Any idea? THX for reply.
 
No offense, but you should really be able to figure this one out :/ The FPS calculation is weird here (maybe because it's the first sample) and it's exhausting the string size for title. Just change the sprintf entirely.
 
Ok, I know it I only wanted to post whole print. I firstly wrote and after I started think. I am really sorry my bad. Now It is working. Thank you very much.
 
Hi guys, I have little problem again. The problem is sound. It produces only horrible sounds. I have tried some edits, but with no success. Do you have any idea or is there anything what I would give high attention? Thx for help.
 
Back
Top