Simulator: Adds necessary functionality to build Simulator under ARM Linux. Tested only on Raspberry3. Currently setjmp/longjmp do not save/restore floating point registers. Patch provided by Bitbucket user nbkolchin.

This commit is contained in:
Gregory Nutt
2017-08-26 11:38:44 -06:00
parent 88a87f8e3f
commit 48c27f8ffc
4 changed files with 114 additions and 3 deletions
+3 -1
View File
@@ -57,10 +57,12 @@
/* Storage order: %rbx, %rsp, %rbp, %r12, %r13, %r14, %r15, %rip */
# define XCPTCONTEXT_REGS 8
#else
#elif defined(CONFIG_HOST_X86) || defined(CONFIG_SIM_M32)
/* Storage order: %ebx, %esi, %edi, %ebp, sp, and return PC */
# define XCPTCONTEXT_REGS 6
#elif defined(CONFIG_HOST_ARM)
# define XCPTCONTEXT_REGS 16
#endif
/****************************************************************************