blob: 0bfab1c669b6b657afdb59acde33632181512854 [file] [log] [blame]
Keith Packard0bb446d2021-01-08 22:42:49 +00001/*
2 * Semihosting support for systems modeled on the Arm "Angel"
Keith Packarda10b9d92021-01-08 22:42:52 +00003 * semihosting syscalls design. This includes Arm and RISC-V processors
Keith Packard0bb446d2021-01-08 22:42:49 +00004 *
5 * Copyright (c) 2005, 2007 CodeSourcery.
6 * Copyright (c) 2019 Linaro
7 * Written by Paul Brook.
8 *
9 * Copyright © 2020 by Keith Packard <keithp@keithp.com>
10 * Adapted for systems other than ARM, including RISC-V, by Keith Packard
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 *
25 * ARM Semihosting is documented in:
26 * Semihosting for AArch32 and AArch64 Release 2.0
27 * https://static.docs.arm.com/100863/0200/semihosting.pdf
28 *
Keith Packarda10b9d92021-01-08 22:42:52 +000029 * RISC-V Semihosting is documented in:
30 * RISC-V Semihosting
31 * https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc
Keith Packard0bb446d2021-01-08 22:42:49 +000032 */
33
34#ifndef COMMON_SEMI_H
35#define COMMON_SEMI_H
36
37target_ulong do_common_semihosting(CPUState *cs);
38
39#endif /* COMMON_SEMI_H */