]> git.proxmox.com Git - mirror_qemu.git/blob - tests/tcg/arm/semiconsole.c
tools/virtiofsd: include --socket-group in help
[mirror_qemu.git] / tests / tcg / arm / semiconsole.c
1 /*
2 * linux-user semihosting console
3 *
4 * Copyright (c) 2019
5 * Written by Alex Bennée <alex.bennee@linaro.org>
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 */
9
10 #include <stdio.h>
11 #include <stdint.h>
12 #include "semicall.h"
13
14 int main(void)
15 {
16 char c;
17
18 printf("Semihosting Console Test\n");
19 printf("hit X to exit:");
20
21 do {
22 c = __semi_call(SYS_READC, 0);
23 printf("got '%c'\n", c);
24 } while (c != 'X');
25
26 return 0;
27 }