[Qemu-devel] [PATCH trivial] unicore32: convert get_sp_from_cpustate from macro to inline

2015-12-29 Thread Michael Tokarev
All other architectures define get_sp_from_cpustate as an inline function, only unicore32 uses a #define. With this, some usages are impossible, for example, enabling sigaltstack in linux-user/syscall.c results in linux-user/syscall.c: In function ‘do_syscall’: linux-user/syscall.c:8299:39:

Re: [Qemu-devel] [PATCH trivial] unicore32: convert get_sp_from_cpustate from macro to inline

2015-12-29 Thread Peter Maydell
On 29 December 2015 at 09:43, Michael Tokarev wrote: > All other architectures define get_sp_from_cpustate as an inline function, > only unicore32 uses a #define. With this, some usages are impossible, for > example, enabling sigaltstack in linux-user/syscall.c results in > >