Lines Matching +full:- +full:- +full:set +full:- +full:config
3 # SPDX-License-Identifier: BSD-3-Clause
37 qemu="qemu-system-riscv32"
47 if command -v readelf >/dev/null 2>/dev/null; then
48 # LLVM-based toolchains readelf produces different output from GNU, so
49 # check --version output first.
50 if readelf --version | grep LLVM >/dev/null; then
51 archstring=$(readelf --arch-specific "$elf" | grep "Value: rv" | cut -d: -f2)
53 archstring=$(readelf --arch-specific "$elf" | grep Tag_RISCV_arch | cut -d: -f2 | tr -d '"')
56 if [ -z "$archstring" ]; then
61 qemu="qemu-system-riscv64"
64 qemu="qemu-system-riscv32"
81 if [ -z "$options" ]; then
82 options="$(echo "$elf" | sed 's/.*rv[36][24]\([a-z]*\)_.*$/\1/' | sed 's/\(.\)/\1 /g')"
87 if $qemu --version | grep -q 'version [789]'; then
91 if $qemu --version | grep -q 'version [89]'; then
92 if $qemu --version | grep -q 'version 8.1'; then
99 if $qemu --version | grep -q 'version \(8.[1-9]\|9\)'; then
104 if echo "$options" | grep -q "$o"; then
112 # Set the target machine
122 cmdline="program-name"
128 --)
132 -s|"")
160 …emu -chardev $chardev -semihosting-config "$semi" -monitor "$mon" -serial "$serial" -machine "$mac…