2021-01-09 01:42:49 +03:00
|
|
|
/*
|
|
|
|
* Semihosting support for systems modeled on the Arm "Angel"
|
2021-01-09 01:42:52 +03:00
|
|
|
* semihosting syscalls design. This includes Arm and RISC-V processors
|
2021-01-09 01:42:49 +03:00
|
|
|
*
|
|
|
|
* Copyright (c) 2005, 2007 CodeSourcery.
|
|
|
|
* Copyright (c) 2019 Linaro
|
|
|
|
* Written by Paul Brook.
|
|
|
|
*
|
|
|
|
* Copyright © 2020 by Keith Packard <keithp@keithp.com>
|
|
|
|
* Adapted for systems other than ARM, including RISC-V, by Keith Packard
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* ARM Semihosting is documented in:
|
|
|
|
* Semihosting for AArch32 and AArch64 Release 2.0
|
|
|
|
* https://static.docs.arm.com/100863/0200/semihosting.pdf
|
|
|
|
*
|
2021-01-09 01:42:52 +03:00
|
|
|
* RISC-V Semihosting is documented in:
|
|
|
|
* RISC-V Semihosting
|
|
|
|
* https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc
|
2021-01-09 01:42:49 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COMMON_SEMI_H
|
|
|
|
#define COMMON_SEMI_H
|
|
|
|
|
2022-04-28 11:10:55 +03:00
|
|
|
void do_common_semihosting(CPUState *cs);
|
2021-01-09 01:42:49 +03:00
|
|
|
|
|
|
|
#endif /* COMMON_SEMI_H */
|