[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] c89a14: semihosting: Move exec/softmmu-semi.h
From: |
Richard Henderson |
Subject: |
[Qemu-commits] [qemu/qemu] c89a14: semihosting: Move exec/softmmu-semi.h to semihosti... |
Date: |
Mon, 27 Jun 2022 23:20:39 -0700 |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: c89a14ad2c2be24f786d80d33362279f5de61c74
https://github.com/qemu/qemu/commit/c89a14ad2c2be24f786d80d33362279f5de61c74
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
R include/exec/softmmu-semi.h
A include/semihosting/softmmu-uaccess.h
M semihosting/arm-compat-semi.c
M target/m68k/m68k-semi.c
M target/mips/tcg/sysemu/mips-semi.c
M target/nios2/nios2-semi.c
Log Message:
-----------
semihosting: Move exec/softmmu-semi.h to semihosting/softmmu-uaccess.h
We have a subdirectory for semihosting; move this file out of exec.
Rename to emphasize the contents are a replacement for the functions
in linux-user/bsd-user uaccess.c.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 8ce5c64499d3468495c1fa251bf37bf369db2574
https://github.com/qemu/qemu/commit/8ce5c64499d3468495c1fa251bf37bf369db2574
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/softmmu-uaccess.h
Log Message:
-----------
semihosting: Return failure from softmmu-uaccess.h functions
We were reporting unconditional success for these functions;
pass on any failure from cpu_memory_rw_debug.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 259739ce74300ae9e5df7c8c3a8a672341af5546
https://github.com/qemu/qemu/commit/259739ce74300ae9e5df7c8c3a8a672341af5546
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/meson.build
Log Message:
-----------
semihosting: Improve condition for config.c and console.c
While CONFIG_SEMIHOSTING is currently only set for softmmu,
this will not continue to be true.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 0a9221810ce08fd5b0c4cff6055e640d4bd6876d
https://github.com/qemu/qemu/commit/0a9221810ce08fd5b0c4cff6055e640d4bd6876d
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/softmmu-uaccess.h
M semihosting/meson.build
A semihosting/uaccess.c
Log Message:
-----------
semihosting: Move softmmu-uaccess.h functions out of line
Rather that static (and not even inline) functions within a
header, move the functions to semihosting/uaccess.c.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: b89350e83044ee6e6e6628dd99845f3d1f53bd52
https://github.com/qemu/qemu/commit/b89350e83044ee6e6e6628dd99845f3d1f53bd52
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M accel/stubs/tcg-stub.c
Log Message:
-----------
accel/stubs: Add tcg stub for probe_access_flags
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c
https://github.com/qemu/qemu/commit/5f9ca6f3c5111fadb0b1e76755ceaf738a98db4c
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/softmmu-uaccess.h
M semihosting/uaccess.c
Log Message:
-----------
semihosting: Add target_strlen for softmmu-uaccess.h
Mirror the interface of the user-only function of the same name.
Use probe_access_flags for the common case of ram, and
cpu_memory_rw_debug for the uncommon case of mmio.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v3: Use probe_access_flags (pmm)
Commit: 3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7
https://github.com/qemu/qemu/commit/3d5e2b4f26e077e9a8fd94659a1ce2dd49c134b7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/uaccess.c
Log Message:
-----------
semihosting: Simplify softmmu_lock_user_string
We are not currently bounding the search to the 1024 bytes
that we allocated, possibly overrunning the buffer.
Use softmmu_strlen_user to find the length and allocate the
correct size from the beginning.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1c6ff7205bff49870dc3511f237b3ad90da5f5f7
https://github.com/qemu/qemu/commit/1c6ff7205bff49870dc3511f237b3ad90da5f5f7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M configs/targets/aarch64-linux-user.mak
M configs/targets/aarch64_be-linux-user.mak
M configs/targets/arm-linux-user.mak
M configs/targets/armeb-linux-user.mak
M configs/targets/riscv32-linux-user.mak
M configs/targets/riscv64-linux-user.mak
A include/semihosting/guestfd.h
M semihosting/arm-compat-semi.c
A semihosting/guestfd.c
M semihosting/meson.build
Log Message:
-----------
semihosting: Split out guestfd.c
In arm-compat-semi.c, we have more advanced treatment of
guest file descriptors than we do in other implementations.
Split out GuestFD and related functions to a new file so
that they can be shared.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 5aadd1829905aace2a1201ddb8ac9b7f18d104fb
https://github.com/qemu/qemu/commit/5aadd1829905aace2a1201ddb8ac9b7f18d104fb
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Inline set_swi_errno into common_semi_cb
Do not store 'err' into errno only to read it back immediately.
Use 'ret' for the return value, not 'reg0'.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 709fe27b189aa86c801b9bd655f9267fec17d0d0
https://github.com/qemu/qemu/commit/709fe27b189aa86c801b9bd655f9267fec17d0d0
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Adjust error checking in common_semi_cb
The err parameter is non-zero if and only if an error occured.
Use this instead of ret == -1 for determining if we need to
update the saved errno.
This fixes the errno setting of SYS_ISTTY, which returns 0 on
error, not -1.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 84ca0dfd1e8c0a23fe8aeb22f4141e0b14da2812
https://github.com/qemu/qemu/commit/84ca0dfd1e8c0a23fe8aeb22f4141e0b14da2812
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Clean up common_semi_flen_cb
Do not read from the gdb struct stat buffer if the callback is
reporting an error. Use common_semi_cb to finish returning results.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 4cfeff4ac16bf5e3e1df44d5561b83e3bd3aab6c
https://github.com/qemu/qemu/commit/4cfeff4ac16bf5e3e1df44d5561b83e3bd3aab6c
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Clean up common_semi_open_cb
Use common_semi_cb to return results instead of calling
set_swi_errno and common_semi_set_ret directly.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ed3a06b10a6abb53589d794ed23accf21be05633
https://github.com/qemu/qemu/commit/ed3a06b10a6abb53589d794ed23accf21be05633
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M linux-user/aarch64/cpu_loop.c
M linux-user/arm/cpu_loop.c
M linux-user/riscv/cpu_loop.c
M semihosting/arm-compat-semi.c
M semihosting/common-semi.h
M target/arm/helper.c
M target/arm/m_helper.c
M target/riscv/cpu_helper.c
Log Message:
-----------
semihosting: Return void from do_common_semihosting
Perform the cleanup in the FIXME comment in common_semi_gdb_syscall.
Do not modify guest registers until the syscall is complete,
which in the gdbstub case is asynchronous.
In the synchronous non-gdbstub case, use common_semi_set_ret
to set the result. Merge set_swi_errno into common_semi_cb.
Rely on the latter for combined return value / errno setting.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: bb3b8821a326d18294ce31bdd350bb27a139940e
https://github.com/qemu/qemu/commit/bb3b8821a326d18294ce31bdd350bb27a139940e
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
A include/semihosting/common-semi.h
R semihosting/common-semi.h
Log Message:
-----------
semihosting: Move common-semi.h to include/semihosting/
This header is not private to the top-level semihosting directory,
so place it in the public include directory.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a1a2a3e609f619857fcdd8302fe1e832490216a7
https://github.com/qemu/qemu/commit/a1a2a3e609f619857fcdd8302fe1e832490216a7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Remove GDB_O_BINARY
The value is zero, and gdb always opens files in binary mode.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 94b14fe08f9f4f1f0e7aba639fc98e65a13e5235
https://github.com/qemu/qemu/commit/94b14fe08f9f4f1f0e7aba639fc98e65a13e5235
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/exec/gdbstub.h
M semihosting/arm-compat-semi.c
M target/m68k/m68k-semi.c
M target/nios2/nios2-semi.c
Log Message:
-----------
include/exec: Move gdb open flags to gdbstub.h
There were 3 copies of these flags. Place them in the
file with gdb_do_syscall, with which they belong.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 7c56c2d3da2d25cb202e6b47ad7348a42b950b76
https://github.com/qemu/qemu/commit/7c56c2d3da2d25cb202e6b47ad7348a42b950b76
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/exec/gdbstub.h
M target/m68k/m68k-semi.c
M target/nios2/nios2-semi.c
Log Message:
-----------
include/exec: Move gdb_stat and gdb_timeval to gdbstub.h
We have two copies of these structures, and require them
in semihosting/ going forward.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 9814483d6346fb697c9f852f3a1edab0b6910486
https://github.com/qemu/qemu/commit/9814483d6346fb697c9f852f3a1edab0b6910486
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/exec/gdbstub.h
Log Message:
-----------
include/exec: Define errno values in gdbstub.h
Define constants for the errno values defined by the
gdb remote fileio protocol.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: c805e118754a2c90c29219985ba389829d4a53a4
https://github.com/qemu/qemu/commit/c805e118754a2c90c29219985ba389829d4a53a4
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M gdbstub.c
Log Message:
-----------
gdbstub: Convert GDB error numbers to host error numbers
Provide the callback with consistent state -- always use
host error numbers. The individual callback can then
decide if the errno requires conversion for the guest.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: cd7f29e335a88c2803bfb42ee3cef60417c43274
https://github.com/qemu/qemu/commit/cd7f29e335a88c2803bfb42ee3cef60417c43274
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Use struct gdb_stat in common_semi_flen_cb
Load the entire 64-bit size value. While we're at it,
use offsetof instead of an integer constant.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ef9c5ea85d83459361449259418726a5d4d0a751
https://github.com/qemu/qemu/commit/ef9c5ea85d83459361449259418726a5d4d0a751
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Split is_64bit_semihosting per target
We already have some larger ifdef blocks for ARM and RISCV;
split the function into multiple implementations per arch.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 3c820ddc1b92f17fea85fdaed2928feaa9c238d7
https://github.com/qemu/qemu/commit/3c820ddc1b92f17fea85fdaed2928feaa9c238d7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Split common_semi_flen_buf per target
We already have some larger ifdef blocks for ARM and RISCV;
split out common_semi_stack_bottom per target.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a1df4bab432fc62a0d14abc192ce063c432afd2e
https://github.com/qemu/qemu/commit/a1df4bab432fc62a0d14abc192ce063c432afd2e
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Split out common_semi_has_synccache
We already have some larger ifdef blocks for ARM and RISCV;
split out a boolean test for SYS_SYNCCACHE.
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1b3b7693b7c3f94bd66a8425201a4bb7de5388e4
https://github.com/qemu/qemu/commit/1b3b7693b7c3f94bd66a8425201a4bb7de5388e4
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
A target/arm/common-semi-target.h
A target/riscv/common-semi-target.h
Log Message:
-----------
semihosting: Split out common-semi-target.h
Move the ARM and RISCV specific helpers into
their own header file.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 189878ae237d443571250f76655161d91c018889
https://github.com/qemu/qemu/commit/189878ae237d443571250f76655161d91c018889
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Use env more often in do_common_semihosting
We've already loaded cs->env_ptr into a local variable; use it.
Since env is unconditionally used, we don't need a dummy use.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 3753b00e5747068882c7f0302dcf9b87402993ab
https://github.com/qemu/qemu/commit/3753b00e5747068882c7f0302dcf9b87402993ab
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Move GET_ARG/SET_ARG earlier in the file
Moving this to be useful for another function
besides do_common_semihosting.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 5b3f39cb04fda32226e84502f858bab06d83e5c1
https://github.com/qemu/qemu/commit/5b3f39cb04fda32226e84502f858bab06d83e5c1
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
A include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/guestfd.c
M semihosting/meson.build
A semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_open
Split out the non-ARM specific portions of SYS_OPEN to a
reusable function. This handles gdb and host file i/o.
Add helpers to validate the length of the filename string.
Prepare for usage by other semihosting by allowing the
filename length parameter to be 0, and calling strlen.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 5eadbbfca6232710036ccb9f5cf1481be537c0e7
https://github.com/qemu/qemu/commit/5eadbbfca6232710036ccb9f5cf1481be537c0e7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/guestfd.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_close
Split out the non-ARM specific portions of SYS_CLOSE to a
reusable function. This handles all GuestFD.
Note that gdb_do_syscall %x reads target_ulong, not int.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: af0484b5025f8b7c951428a00b5bb3f172a2da8d
https://github.com/qemu/qemu/commit/af0484b5025f8b7c951428a00b5bb3f172a2da8d
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_read
Split out the non-ARM specific portions of SYS_READ to a
reusable function. This handles all GuestFD. Isolate the
curious ARM-specific return value processing to a new
callback, common_semi_rw_cb.
Note that gdb_do_syscall %x reads target_ulong, not int.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: aa915bd0a67d6c0a214b45372ed841521c5cd07a
https://github.com/qemu/qemu/commit/aa915bd0a67d6c0a214b45372ed841521c5cd07a
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_write
Split out the non-ARM specific portions of SYS_WRITE to a
reusable function. This handles all GuestFD. This removes
the last use of common_semi_syscall_len.
Note that gdb_do_syscall %x reads target_ulong, not int.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 40f1219a8b2f95808ed5a18798dbce1b57fef211
https://github.com/qemu/qemu/commit/40f1219a8b2f95808ed5a18798dbce1b57fef211
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Bound length for semihost_sys_{read,write}
Fixes a minor bug in which a 64-bit guest on a 32-bit host could
truncate the length. This would only ever cause a problem if
there were no bits set in the low 32, so that it truncates to 0.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 9a89470449a5171eb1bd06f681361e0888d15cf7
https://github.com/qemu/qemu/commit/9a89470449a5171eb1bd06f681361e0888d15cf7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/exec/gdbstub.h
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_lseek
Split out the non-ARM specific portions of SYS_SEEK to a
reusable function. This handles all GuestFD. Isolate the
curious ARM-specific return value processing to a new
callback, common_semi_seek_cb.
Expand the internal type of the offset to int64_t, and
provide the whence argument, which will be required by
m68k and nios2 semihosting.
Note that gdb_do_syscall %x reads target_ulong, not int.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a2212474301bc354bea46e3bdc6c21e33e0b5b2b
https://github.com/qemu/qemu/commit/a2212474301bc354bea46e3bdc6c21e33e0b5b2b
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_isatty
Split out the non-ARM specific portions of SYS_ISTTY to a
reusable function. This handles all GuestFD.
Add a common_semi_istty_cb helper to translate the Posix
error return, 0+ENOTTY, to the Arm semihosting not-a-file
success result.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e
https://github.com/qemu/qemu/commit/a6300ed6b7ecd19eb5ae0fd8a3eb876681cb8e6e
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_flen
The ARM-specific SYS_FLEN isn't really something that can be
reused by other semihosting apis, but there are parts that can
reused for the implementation of semihost_sys_fstat.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: d49e79b8e276b56817509114a86b036358246af8
https://github.com/qemu/qemu/commit/d49e79b8e276b56817509114a86b036358246af8
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_remove
Split out the non-ARM specific portions of SYS_REMOVE to a
reusable function.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 25a95da0beeb854570f974028b77cd35826433b7
https://github.com/qemu/qemu/commit/25a95da0beeb854570f974028b77cd35826433b7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_rename
Split out the non-ARM specific portions of SYS_RENAME to a
reusable function.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc
https://github.com/qemu/qemu/commit/90d8e0b09c4a0085bb12e9659eb33ea3773d7ccc
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/arm-compat-semi.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Split out semihost_sys_system
Split out the non-ARM specific portions of SYS_SYSTEM to a
reusable function.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: dffeb7756674af4577e77b4510f1cea5ac585ca0
https://github.com/qemu/qemu/commit/dffeb7756674af4577e77b4510f1cea5ac585ca0
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Create semihost_sys_{stat,fstat}
These syscalls will be used by m68k and nios2 semihosting.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1875dab0eea908b2ceaf74d1204f1e72c69d3a73
https://github.com/qemu/qemu/commit/1875dab0eea908b2ceaf74d1204f1e72c69d3a73
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/syscalls.h
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Create semihost_sys_gettimeofday
This syscall will be used by m68k and nios2 semihosting.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 64c8c6a99221877f0e92f973c66e0e66a10ab2ff
https://github.com/qemu/qemu/commit/64c8c6a99221877f0e92f973c66e0e66a10ab2ff
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M gdbstub.c
M include/exec/gdbstub.h
M semihosting/arm-compat-semi.c
M semihosting/console.c
M semihosting/syscalls.c
M target/m68k/m68k-semi.c
M target/nios2/nios2-semi.c
Log Message:
-----------
gdbstub: Adjust gdb_syscall_complete_cb declaration
Change 'ret' to uint64_t. This resolves a FIXME in the
m68k and nios2 semihosting that we've lost data.
Change 'err' to int. There is nothing target-specific
about the width of the errno value.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 675f702fd725f07af50d99318c11bf2512b774d7
https://github.com/qemu/qemu/commit/675f702fd725f07af50d99318c11bf2512b774d7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
Log Message:
-----------
semihosting: Fix docs comment for qemu_semihosting_console_inc
The implementation of qemu_semihosting_console_inc does not
defer to gdbstub, but only reads from the fifo in console.c.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 3367d452b001e91547634756e32246610701df5c
https://github.com/qemu/qemu/commit/3367d452b001e91547634756e32246610701df5c
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M linux-user/semihost.c
M semihosting/arm-compat-semi.c
M semihosting/console.c
Log Message:
-----------
semihosting: Pass CPUState to qemu_semihosting_console_inc
We don't need CPUArchState, and we do want the CPUState of the
thread performing the operation -- use this instead of current_cpu.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: e7fb6f320548c1b0c25d291466a0249ee80d91b6
https://github.com/qemu/qemu/commit/e7fb6f320548c1b0c25d291466a0249ee80d91b6
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M linux-user/semihost.c
M semihosting/arm-compat-semi.c
M semihosting/console.c
Log Message:
-----------
semihosting: Expand qemu_semihosting_console_inc to read
Allow more than one character to be read at one time.
Will be used by m68k and nios2 semihosting for stdio.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: fb08790b35174a98301ecbac4d5234d0cbfebea0
https://github.com/qemu/qemu/commit/fb08790b35174a98301ecbac4d5234d0cbfebea0
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/semihost.h
M semihosting/config.c
M semihosting/console.c
M softmmu/vl.c
M stubs/semihost.c
Log Message:
-----------
semihosting: Cleanup chardev init
Rename qemu_semihosting_connect_chardevs to
qemu_semihosting_chardev_init; pass the result
directly to qemu_semihosting_console_init.
Store the chardev in SemihostingConsole instead
of SemihostingConfig, which lets us drop
semihosting_get_chardev.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: cd66f20f614bb492e4e5be11e4b65d58b4a046ca
https://github.com/qemu/qemu/commit/cd66f20f614bb492e4e5be11e4b65d58b4a046ca
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M linux-user/semihost.c
M semihosting/console.c
Log Message:
-----------
semihosting: Create qemu_semihosting_console_write
Will replace qemu_semihosting_console_{outs,outc},
but we need more plumbing first.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 008e147572863a7a54c54403e626aaed3e50574f
https://github.com/qemu/qemu/commit/008e147572863a7a54c54403e626aaed3e50574f
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/guestfd.h
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Add GuestFDConsole
Add a GuestFDType for connecting to the semihosting console.
Hook up to read, write, isatty, and fstat syscalls.
Note that the arm-specific syscall flen cannot be applied
to the console, because the console is not a descriptor
exposed to the guest.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: e4a4aaa51b4c71914a6f30ca504ab78e8f695aee
https://github.com/qemu/qemu/commit/e4a4aaa51b4c71914a6f30ca504ab78e8f695aee
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/guestfd.h
M include/semihosting/semihost.h
M linux-user/main.c
M semihosting/console.c
M semihosting/guestfd.c
Log Message:
-----------
semihosting: Create qemu_semihosting_guestfd_init
For arm-compat, initialize console_{in,out}_gf;
otherwise, initialize stdio file descriptors.
This will go some way to cleaning up arm-compat, and
will allow other semihosting to use normal stdio.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1577eec0fca6fd67bdc0727d10de4bdc3f8afa95
https://github.com/qemu/qemu/commit/1577eec0fca6fd67bdc0727d10de4bdc3f8afa95
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Use console_in_gf for SYS_READC
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 5d77289dac9917db89d56f558bcf7c3a82332222
https://github.com/qemu/qemu/commit/5d77289dac9917db89d56f558bcf7c3a82332222
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Use console_out_gf for SYS_WRITEC
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 004d2abe3f2f856bd6f70fa3d8933d5f6d620142
https://github.com/qemu/qemu/commit/004d2abe3f2f856bd6f70fa3d8933d5f6d620142
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M linux-user/semihost.c
M semihosting/console.c
Log Message:
-----------
semihosting: Remove qemu_semihosting_console_outc
This function has been replaced by *_write.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 7281550cfb30738f0d4bc5113e92780b8a38ec78
https://github.com/qemu/qemu/commit/7281550cfb30738f0d4bc5113e92780b8a38ec78
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M semihosting/arm-compat-semi.c
Log Message:
-----------
semihosting: Use console_out_gf for SYS_WRITE0
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 2d010c2719da360d44a5c44d279d49eca21c5de8
https://github.com/qemu/qemu/commit/2d010c2719da360d44a5c44d279d49eca21c5de8
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M linux-user/semihost.c
M semihosting/console.c
Log Message:
-----------
semihosting: Remove qemu_semihosting_console_outs
This function has been replaced by *_write.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 1b9177f7495086f1595d7c989c810013f1c9eb5a
https://github.com/qemu/qemu/commit/1b9177f7495086f1595d7c989c810013f1c9eb5a
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M include/semihosting/console.h
M include/semihosting/syscalls.h
M semihosting/console.c
M semihosting/syscalls.c
Log Message:
-----------
semihosting: Create semihost_sys_poll_one
This will be used for implementing the xtensa select_one
system call. Choose "poll" over "select" so that we can
reuse Glib's g_poll constants and to avoid struct timeval.
Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ab294b6c3adfc8a9241f2aaff0709c51acf0370b
https://github.com/qemu/qemu/commit/ab294b6c3adfc8a9241f2aaff0709c51acf0370b
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/m68k/m68k-semi.c
Log Message:
-----------
target/m68k: Eliminate m68k_semi_is_fseek
Reorg m68k_semi_return_* to gdb_syscall_complete_cb.
Use the 32-bit version normally, and the 64-bit version
for HOSTED_LSEEK.
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: a638af09b6c6b1259803a377a53ef242c5af6af5
https://github.com/qemu/qemu/commit/a638af09b6c6b1259803a377a53ef242c5af6af5
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M linux-user/m68k/cpu_loop.c
M target/m68k/m68k-semi.c
M target/m68k/meson.build
Log Message:
-----------
target/m68k: Make semihosting system only
While we had a call to do_m68k_semihosting in linux-user, it
wasn't actually reachable. We don't include DISAS_INSN(halt)
as an instruction unless system mode.
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 8ec7e3c53d48c61e31dd251b84a2b8190a14542d
https://github.com/qemu/qemu/commit/8ec7e3c53d48c61e31dd251b84a2b8190a14542d
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/mips/cpu.h
M target/mips/tcg/exception.c
M target/mips/tcg/micromips_translate.c.inc
M target/mips/tcg/mips16e_translate.c.inc
M target/mips/tcg/nanomips_translate.c.inc
M target/mips/tcg/sysemu/mips-semi.c
M target/mips/tcg/sysemu/tlb_helper.c
M target/mips/tcg/sysemu_helper.h.inc
M target/mips/tcg/tcg-internal.h
M target/mips/tcg/translate.c
Log Message:
-----------
target/mips: Use an exception for semihosting
Within do_interrupt, we hold the iothread lock, which
is required for Chardev access for the console, and for
the round trip for use_gdb_syscalls().
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 7ba6e53a9ddf9b4ae04ad5fc658105440889cf17
https://github.com/qemu/qemu/commit/7ba6e53a9ddf9b4ae04ad5fc658105440889cf17
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/mips/tcg/sysemu/mips-semi.c
Log Message:
-----------
target/mips: Add UHI errno values
>From the Unified Hosting Interface, MD01069 Reference Manual,
version 1.1.6, 06 July 2015.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 6863e92d04c9ba23cbf7c0c1498e977c646e1faf
https://github.com/qemu/qemu/commit/6863e92d04c9ba23cbf7c0c1498e977c646e1faf
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/mips/tcg/sysemu/mips-semi.c
Log Message:
-----------
target/mips: Drop pread and pwrite syscalls from semihosting
We don't implement it with _WIN32 hosts, and the syscalls
are missing from the gdb remote file i/o interface.
Since we can't implement them universally, drop them.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: 79cc9724c28c1327deaa5cb8888f44b80640c516
https://github.com/qemu/qemu/commit/79cc9724c28c1327deaa5cb8888f44b80640c516
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/nios2/nios2-semi.c
Log Message:
-----------
target/nios2: Eliminate nios2_semi_is_lseek
Reorg nios2_semi_return_* to gdb_syscall_complete_cb.
Use the 32-bit version normally, and the 64-bit version
for HOSTED_LSEEK.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ca97e0ef99045ce650b842f3bc8c89d76daaafae
https://github.com/qemu/qemu/commit/ca97e0ef99045ce650b842f3bc8c89d76daaafae
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M target/nios2/meson.build
M target/nios2/nios2-semi.c
Log Message:
-----------
target/nios2: Move nios2-semi.c to nios2_softmmu_ss
Semihosting is not enabled for nios2-linux-user.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Commit: ad4c7f529a279685da84297773b4ec8080153c2d
https://github.com/qemu/qemu/commit/ad4c7f529a279685da84297773b4ec8080153c2d
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2022-06-28 (Tue, 28 Jun 2022)
Changed paths:
M accel/stubs/tcg-stub.c
M configs/targets/aarch64-linux-user.mak
M configs/targets/aarch64_be-linux-user.mak
M configs/targets/arm-linux-user.mak
M configs/targets/armeb-linux-user.mak
M configs/targets/riscv32-linux-user.mak
M configs/targets/riscv64-linux-user.mak
M gdbstub.c
M include/exec/gdbstub.h
R include/exec/softmmu-semi.h
A include/semihosting/common-semi.h
M include/semihosting/console.h
A include/semihosting/guestfd.h
M include/semihosting/semihost.h
A include/semihosting/softmmu-uaccess.h
A include/semihosting/syscalls.h
M linux-user/aarch64/cpu_loop.c
M linux-user/arm/cpu_loop.c
M linux-user/m68k/cpu_loop.c
M linux-user/main.c
M linux-user/riscv/cpu_loop.c
M linux-user/semihost.c
M semihosting/arm-compat-semi.c
R semihosting/common-semi.h
M semihosting/config.c
M semihosting/console.c
A semihosting/guestfd.c
M semihosting/meson.build
A semihosting/syscalls.c
A semihosting/uaccess.c
M softmmu/vl.c
M stubs/semihost.c
A target/arm/common-semi-target.h
M target/arm/helper.c
M target/arm/m_helper.c
M target/m68k/m68k-semi.c
M target/m68k/meson.build
M target/mips/cpu.h
M target/mips/tcg/exception.c
M target/mips/tcg/micromips_translate.c.inc
M target/mips/tcg/mips16e_translate.c.inc
M target/mips/tcg/nanomips_translate.c.inc
M target/mips/tcg/sysemu/mips-semi.c
M target/mips/tcg/sysemu/tlb_helper.c
M target/mips/tcg/sysemu_helper.h.inc
M target/mips/tcg/tcg-internal.h
M target/mips/tcg/translate.c
M target/nios2/meson.build
M target/nios2/nios2-semi.c
A target/riscv/common-semi-target.h
M target/riscv/cpu_helper.c
Log Message:
-----------
Merge tag 'pull-semi-20220628' of https://gitlab.com/rth7680/qemu into staging
Semihosting syscall reorg:
* Split out semihosting/syscalls.c with common implementations.
* Reorg arm-compat-semi.c to use syscalls.c.
* Minor prep cleanups to m68k, mips, nios2.
# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmK6iSodHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV8SEwgAmmowW2oeFA9uCrwz
# gUJo17AJ+RmRF/zXHyu5CPswylvfwH0zJXAm5BV7P/pVdyaL36b8YcgSEf+EWLsf
# rLFHxCshTYEnZSk6yFtWk5bn5azfevHm9/ObPeS9XGL4seQqGy7C/FReoTQ7/zI0
# W3zUDd3bWah3fXw8XYgSzh/RCrC5E2gFFc1G1g+6SIVZ7pbgkre2rRk5WMmylCLd
# jf9pmyswrheaKumCoBxU/S4XDgxVpaf3khiIqdbo8A20MDGnK/SZUWsBwJLK3QB8
# SKKv8o1ovbnl/HykABaszCIkO/LIu6SX3LoK7pF2CujkgSuwEN3WW0DOml6+b3fU
# J7YeZg==
# =sTbM
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue 28 Jun 2022 10:22:58 AM +0530
# gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg: issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
[ultimate]
* tag 'pull-semi-20220628' of https://gitlab.com/rth7680/qemu: (60 commits)
target/nios2: Move nios2-semi.c to nios2_softmmu_ss
target/nios2: Eliminate nios2_semi_is_lseek
target/mips: Drop pread and pwrite syscalls from semihosting
target/mips: Add UHI errno values
target/mips: Use an exception for semihosting
target/m68k: Make semihosting system only
target/m68k: Eliminate m68k_semi_is_fseek
semihosting: Create semihost_sys_poll_one
semihosting: Remove qemu_semihosting_console_outs
semihosting: Use console_out_gf for SYS_WRITE0
semihosting: Remove qemu_semihosting_console_outc
semihosting: Use console_out_gf for SYS_WRITEC
semihosting: Use console_in_gf for SYS_READC
semihosting: Create qemu_semihosting_guestfd_init
semihosting: Add GuestFDConsole
semihosting: Create qemu_semihosting_console_write
semihosting: Cleanup chardev init
semihosting: Expand qemu_semihosting_console_inc to read
semihosting: Pass CPUState to qemu_semihosting_console_inc
semihosting: Fix docs comment for qemu_semihosting_console_inc
...
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Compare: https://github.com/qemu/qemu/compare/29f6db75667f...ad4c7f529a27