]> granicus.if.org Git - strace/blob - riscv.c
tests: fix format warnings on x32
[strace] / riscv.c
1 /*
2  * RISC-V-specific syscall decoders.
3  *
4  * Copyright (c) 2018 The strace developers.
5  * All rights reserved.
6  *
7  * SPDX-License-Identifier: LGPL-2.1-or-later
8  */
9
10 #include "defs.h"
11
12 #ifdef RISCV
13
14 # include "xlat/riscv_flush_icache_flags.h"
15
16 SYS_FUNC(riscv_flush_icache)
17 {
18         /* uintptr_t start */
19         printaddr(tcp->u_arg[0]);
20
21         /* uintptr_t end */
22         tprints(", ");
23         printaddr(tcp->u_arg[1]);
24
25         /* uintptr_t flags */
26         tprints(", ");
27         printflags64(riscv_flush_icache_flags, tcp->u_arg[2],
28                      "SYS_RISCV_FLUSH_ICACHE_???");
29
30         return RVAL_DECODED;
31 }
32
33 #endif /* RISCV */