/* SPDX-License-Identifier: GPL-2.0+ */ /* * semihosting.S - the trap instruction itself. qemu answers this when * it is started with -semihosting, and nothing happens without it, so * every caller has to cope with the no-debugger case. * * Copyright (C) 2026 Bradley Morgan */ #include .pushsection .text.smh_trap, "ax" /* long smh_trap(unsigned int sysnum, void *addr); */ ENTRY(smh_trap) hlt #0xf000 ret ENDPROC(smh_trap) .popsection