Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

riscv.c 577B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * RISC-V-specific syscall decoders.
  3. *
  4. * Copyright (c) 2018-2019 The strace developers.
  5. * All rights reserved.
  6. *
  7. * SPDX-License-Identifier: LGPL-2.1-or-later
  8. */
  9. #include "defs.h"
  10. #ifdef RISCV64
  11. # include "xlat/riscv_flush_icache_flags.h"
  12. SYS_FUNC(riscv_flush_icache)
  13. {
  14. /* uintptr_t start */
  15. printaddr(tcp->u_arg[0]);
  16. /* uintptr_t end */
  17. tprints(", ");
  18. printaddr(tcp->u_arg[1]);
  19. /* uintptr_t flags */
  20. tprints(", ");
  21. printflags64(riscv_flush_icache_flags, tcp->u_arg[2],
  22. "SYS_RISCV_FLUSH_ICACHE_???");
  23. return RVAL_DECODED;
  24. }
  25. #endif /* RISCV64 */