[PATCH] Add support for Altera's Nios-II softcore architecture
Dmitry V. Levin
ldv at altlinux.org
Sat Apr 18 21:56:36 UTC 2015
On Sat, Apr 18, 2015 at 05:46:19PM -0300, Ezequiel Garcia wrote:
> On 04/18/2015 05:33 PM, Ezequiel Garcia wrote:
> > This commit adds strace support for Altera's Nios-II. The architecture
> > is supported by Linux since v3.19, and it implements the generic syscall ABI.
> >
> > * Makefile.am, configure.ac: add nios2 files and support
> > * cacheflush.c: support nios2 cacheflush syscall
> > * linux/nios2/: arch-specific port
> >
> > Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
> > ---
> > Makefile.am | 8 ++++++++
> > cacheflush.c | 12 ++++++++++++
> > configure.ac | 5 +++++
> > linux/nios2/arch_regs.c | 2 ++
> > linux/nios2/get_error.c | 14 ++++++++++++++
> > linux/nios2/get_scno.c | 1 +
> > linux/nios2/get_syscall_args.c | 6 ++++++
> > linux/nios2/ioctls_arch0.h | 1 +
> > linux/nios2/ioctls_inc0.h | 1 +
> > linux/nios2/print_pc.c | 1 +
> > linux/nios2/syscallent.h | 4 ++++
> > 11 files changed, 55 insertions(+)
>
> BTW, forgot to version this correctly. Current patch
> is v4. For those interested, here's a link to the previous
> version:
>
> http://marc.info/?l=strace&m=139170929111223&w=2
>
> This v4 patch had to be completely re-written, for two reasons.
> First, the Nios-II Linux port landed in mainline and now uses the
> generic syscall ABI. And also, strace arch-specific code was re-organized.
>
> The diffstat speaks for itself about the advantages of using the generic
> syscall ABI and the impact of the strace cleanup (consider v3 had roughly
> 500 insertions!).
That's nice.
> Finally, here's a tiny example of strace running Nios-II:
>
> # strace ls
> execve("/bin/ls", ["ls"], [/* 16 vars */]) = 0
Does it pass "make check" tests?
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20150419/8da0b47a/attachment.bin>
More information about the Strace-devel
mailing list