From: Dave V. <va...@us...> - 2013-03-03 16:47:31
|
I'm working on some patches for SheepShaver, but I'm having trouble getting SS compiling and working on Linux. SS builds ok, but then running it always segfaults, I've pasted a backtrace below. This happens with both SDL and X builds, with or without the JIT. The only way I've been able to get it working is to build with -O0, but that's impossibly slow. Old builds of SS from emaculation seem to work ok. So maybe it has something to do with newer versions of GCC? I'm on Ubuntu 12.10 amd64, with uses GCC 4.7.2. Has anybody managed to build and run SS on modern Linux? -Dave powerpc_cpu::execute_loadstore<op_template_nop<unsigned int>, input_gpr_except<bit_field<11, 15>, 0>, immediate_operand<bit_field<16, 31>, op_sign_extend_16_32>, false, 4, false, false> (this=0x783ada70, opcode=<optimized out>) at ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp:585 585 memory_helper<SZ, RX>::store(ea, operand_RS::get(this, opcode)); (gdb) bt #0 powerpc_cpu::execute_loadstore<op_template_nop<unsigned int>, input_gpr_except<bit_field<11, 15>, 0>, immediate_operand<bit_field<16, 31>, op_sign_extend_16_32>, false, 4, false, false> (this=0x783ada70, opcode=<optimized out>) at ../kpx_cpu/src/cpu/ppc/ppc-execute.cpp:585 #1 0x0000000078096eac in nv_mem_fun1_t<void, powerpc_cpu, unsigned int>::operator() ( this=0x101407d0, p=0x783ada70, x=2424504320) at ../kpx_cpu/include/nvmemfun.hpp:88 #2 0x0000000078096049 in powerpc_cpu::execute (this=0x783ada70, entry=1085341696) at ../kpx_cpu/src/cpu/ppc/ppc-cpu.cpp:686 #3 0x00000000780a9160 in emul_ppc (entry=1085341696) at ../kpx_cpu/sheepshaver_glue.cpp:925 #4 0x000000007804f3da in jump_to_rom (entry=1085341696) at main_unix.cpp:1204 #5 0x000000007804f40b in emul_func (arg=0x0) at main_unix.cpp:1224 #6 0x000000007804f05a in main (argc=1, argv=0x7fffffffe178) at main_unix.cpp:1045 |