m68k: enable inlined get_frame for m68k

git-svn-id: trunk@36577 -
This commit is contained in:
Károly Balogh 2017-06-22 17:43:24 +00:00
parent cf8aebf00f
commit 30176f3116
2 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,7 @@
{$define cpuneedsdivhelper}
{$define cpu_uses_separate_address_registers}
{$define SUPPORT_SAFECALL}
{$define SUPPORT_GET_FRAME}
{$endif m68k}
{$ifdef avr}

View File

@ -54,11 +54,13 @@ procedure fpc_cpuinit;
SysInitFPU;
end;
{$ifndef INTERNAL_BACKTRACE}
{$define FPC_SYSTEM_HAS_GET_FRAME}
function get_frame : pointer; assembler;nostackframe;
asm
move.l fp,d0
end;
{$endif not INTERNAL_BACKTRACE}
{$define FPC_SYSTEM_HAS_GET_CALLER_ADDR}