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