[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/12] semihosting: Remove qemu_semihosting_log_out
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 10/12] semihosting: Remove qemu_semihosting_log_out |
Date: |
Tue, 12 Jul 2022 22:53:45 +0200 |
From: Richard Henderson <richard.henderson@linaro.org>
The function is no longer used.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220628111701.677216-7-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.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.36.1
- [PULL 00/12] MIPS patches for 2022-07-12, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 01/12] target/mips: introduce decodetree structure for Cavium Octeon extension, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 02/12] target/mips: implement Octeon-specific BBIT instructions, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 03/12] target/mips: implement Octeon-specific arithmetic instructions, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 05/12] target/mips: Create report_fault for semihosting, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 04/12] target/mips: introduce Cavium Octeon CPU model, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 06/12] target/mips: Drop link syscall from semihosting, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 07/12] target/mips: Use semihosting/syscalls.h, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 08/12] target/mips: Avoid qemu_semihosting_log_out for UHI_plog, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 09/12] target/mips: Use error_report for UHI_assert, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 10/12] semihosting: Remove qemu_semihosting_log_out,
Philippe Mathieu-Daudé <=
- [PULL 11/12] target/mips: Simplify UHI_argnlen and UHI_argn, Philippe Mathieu-Daudé, 2022/07/12
- [PULL 12/12] target/mips: Remove GET_TARGET_STRING and FREE_TARGET_STRING, Philippe Mathieu-Daudé, 2022/07/12
- Re: [PULL 00/12] MIPS patches for 2022-07-12, Peter Maydell, 2022/07/14