[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 09/11] semihosting: Remove qemu_semihosting_log_out
From: |
Richard Henderson |
Subject: |
[PATCH v4 09/11] semihosting: Remove qemu_semihosting_log_out |
Date: |
Tue, 7 Jun 2022 22:19:43 -0700 |
The function is no longer used.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
include/semihosting/console.h | 13 -------------
semihosting/console.c | 9 ---------
2 files changed, 22 deletions(-)
diff --git a/include/semihosting/console.h b/include/semihosting/console.h
index 61b0cb3a94..bd78e5f03f 100644
--- a/include/semihosting/console.h
+++ b/include/semihosting/console.h
@@ -40,19 +40,6 @@ int qemu_semihosting_console_read(CPUState *cs, void *buf,
int len);
*/
int qemu_semihosting_console_write(void *buf, int len);
-/**
- * qemu_semihosting_log_out:
- * @s: pointer to string
- * @len: length of string
- *
- * Send a string to the debug output. Unlike console_out these strings
- * can't be sent to a remote gdb instance as they don't exist in guest
- * memory.
- *
- * Returns: number of bytes written
- */
-int qemu_semihosting_log_out(const char *s, int len);
-
/*
* qemu_semihosting_console_block_until_ready:
* @cs: CPUState
diff --git a/semihosting/console.c b/semihosting/console.c
index cda7cf1905..5b1ec0a1c3 100644
--- a/semihosting/console.c
+++ b/semihosting/console.c
@@ -38,15 +38,6 @@ typedef struct SemihostingConsole {
static SemihostingConsole console;
-int qemu_semihosting_log_out(const char *s, int len)
-{
- if (console.chr) {
- return qemu_chr_write_all(console.chr, (uint8_t *) s, len);
- } else {
- return write(STDERR_FILENO, s, len);
- }
-}
-
#define FIFO_SIZE 1024
static int console_can_read(void *opaque)
--
2.34.1
- [PATCH v4 00/11] target/mips: semihosting cleanup, Richard Henderson, 2022/06/08
- [PATCH v4 02/11] target/mips: Add UHI errno values, Richard Henderson, 2022/06/08
- [PATCH v4 01/11] target/mips: Use an exception for semihosting, Richard Henderson, 2022/06/08
- [PATCH v4 03/11] target/mips: Create report_fault for semihosting, Richard Henderson, 2022/06/08
- [PATCH v4 06/11] target/mips: Use semihosting/syscalls.h, Richard Henderson, 2022/06/08
- [PATCH v4 04/11] target/mips: Drop link syscall from semihosting, Richard Henderson, 2022/06/08
- [PATCH v4 09/11] semihosting: Remove qemu_semihosting_log_out,
Richard Henderson <=
- [PATCH v4 07/11] target/mips: Avoid qemu_semihosting_log_out for UHI_plog, Richard Henderson, 2022/06/08
- [PATCH v4 05/11] target/mips: Drop pread and pwrite syscalls from semihosting, Richard Henderson, 2022/06/08
- [PATCH v4 08/11] target/mips: Use error_report for UHI_assert, Richard Henderson, 2022/06/08
- [PATCH v4 10/11] target/mips: Simplify UHI_argnlen and UHI_argn, Richard Henderson, 2022/06/08
- [PATCH v4 11/11] target/mips: Remove GET_TARGET_STRING and FREE_TARGET_STRING, Richard Henderson, 2022/06/08