MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

not6
MAME MAMIA
Reged: 03/13/14
Posts: 4
Send PM
Re: mame 0152 running on ARM produces segmentation fault
03/13/14 12:42 AM


I had the same pb when porting 0.151 to android using standalone toolchain (r8 and r9).
Some wise dev point me a fix for ARM port for
delegate.c & emualloc.c .

for emmullaoc.c in resource_pool::add

Code:


if (entry == NULL)
#ifdef USE_ARM_HACK
entry = memory_entry::find(reinterpret_cast(item.m_ptr) - 8);
#else
entry = memory_entry::find(reinterpret_cast(item.m_ptr) - sizeof(size_t));
#endif


and in delegate_mfp::convert_to_generic

Code:


#ifdef USE_ARM_HACK

object = reinterpret_cast(reinterpret_cast(object));
if (!(m_this_delta))
return reinterpret_cast(m_function);
UINT8 *vtable_base = *reinterpret_cast(object);
return *reinterpret_cast(vtable_base + m_function);

#else



with this patch , i was able to compile and execute fine on android .
anyways , Great if it will be not needed with 0.153 and then more ARM friendly .







Entire thread
Subject Posted by Posted on
* mame 0152 running on ARM produces segmentation fault ole 02/09/14 11:33 PM
. * Re: mame 0152 running on ARM produces segmentation fault MooglyGuy  02/12/14 10:34 AM
. * Re: mame 0152 running on ARM produces segmentation fault ole  02/16/14 03:56 AM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  02/12/14 05:51 PM
. * Re: mame 0152 running on ARM produces segmentation fault sz72  02/11/14 10:58 PM
. * Re: mame 0152 running on ARM produces segmentation fault ole  02/16/14 03:28 AM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  02/18/14 05:47 PM
. * Re: mame 0152 running on ARM produces segmentation fault AnonymousDeveloper  02/20/14 04:55 AM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  03/11/14 06:09 PM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  02/20/14 06:20 PM
. * Re: mame 0152 running on ARM produces segmentation fault ole  02/19/14 12:51 AM
. * Re: mame 0152 running on ARM produces segmentation fault not6  03/13/14 12:42 AM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  02/12/14 05:52 PM
. * Re: mame 0152 running on ARM produces segmentation fault R. Belmont  02/10/14 08:16 PM

Extra information Permissions
Moderator:  Pi 
0 registered and 41 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 6739