1 /*
2 * RISC-V sysarch() system call emulation
3 *
4 * Copyright (c) 2019 Mark Corbin
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef TARGET_ARCH_SYSARCH_H
21 #define TARGET_ARCH_SYSARCH_H
22
23 #include "target_syscall.h"
24 #include "target_arch.h"
25
do_freebsd_arch_sysarch(CPURISCVState * env,int op,abi_ulong parms)26 static inline abi_long do_freebsd_arch_sysarch(CPURISCVState *env, int op,
27 abi_ulong parms)
28 {
29
30 return -TARGET_EOPNOTSUPP;
31 }
32
do_freebsd_arch_print_sysarch(const struct syscallname * name,abi_long arg1,abi_long arg2,abi_long arg3,abi_long arg4,abi_long arg5,abi_long arg6)33 static inline void do_freebsd_arch_print_sysarch(
34 const struct syscallname *name, abi_long arg1, abi_long arg2,
35 abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6)
36 {
37
38 gemu_log("UNKNOWN OP: %d, " TARGET_ABI_FMT_lx ")", (int)arg1, arg2);
39 }
40
41 #endif /* TARGET_ARCH_SYSARCH_H */
42