strace/riscv.c
Dmitry V. Levin b93d52fe3d Change the license of strace to LGPL-2.1-or-later
strace is now provided under the terms of the GNU Lesser General
Public License version 2.1 or later, see COPYING for more details.

strace test suite is now provided under the terms of the GNU General
Public License version 2 or later, see tests/COPYING for more details.
2018-12-10 00:00:00 +00:00

34 lines
568 B
C

/*
* RISC-V-specific syscall decoders.
*
* Copyright (c) 2018 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "defs.h"
#ifdef RISCV
# include "xlat/riscv_flush_icache_flags.h"
SYS_FUNC(riscv_flush_icache)
{
/* uintptr_t start */
printaddr(tcp->u_arg[0]);
/* uintptr_t end */
tprints(", ");
printaddr(tcp->u_arg[1]);
/* uintptr_t flags */
tprints(", ");
printflags64(riscv_flush_icache_flags, tcp->u_arg[2],
"SYS_RISCV_FLUSH_ICACHE_???");
return RVAL_DECODED;
}
#endif /* RISCV */