summary refs log tree commit diff stats
path: root/gitlab/issues_text/target_riscv/host_missing/accel_missing/2269
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-06-01 21:35:14 +0200
commit3e4c5a6261770bced301b5e74233e7866166ea5b (patch)
tree9379fddaba693ef8a045da06efee8529baa5f6f4 /gitlab/issues_text/target_riscv/host_missing/accel_missing/2269
parente5634e2806195bee44407853c4bf8776f7abfa4f (diff)
downloadqemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.tar.gz
qemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.zip
clean up repository
Diffstat (limited to 'gitlab/issues_text/target_riscv/host_missing/accel_missing/2269')
-rw-r--r--gitlab/issues_text/target_riscv/host_missing/accel_missing/226941
1 files changed, 0 insertions, 41 deletions
diff --git a/gitlab/issues_text/target_riscv/host_missing/accel_missing/2269 b/gitlab/issues_text/target_riscv/host_missing/accel_missing/2269
deleted file mode 100644
index cd522369b..000000000
--- a/gitlab/issues_text/target_riscv/host_missing/accel_missing/2269
+++ /dev/null
@@ -1,41 +0,0 @@
-RISC-V exit via sifive_test does not work in scripts with -serial stdio
-Description of problem:
-
-Steps to reproduce:
-1. Create assembly file `hello.s`:
-```as
-.section .text
-.globl _start
-_start: csrr t0, mhartid
-        bnez t0, _start
-        li t0, 0x100000
-        li t1, 0x5555
-        sw t1, 0(t0)
-halt:   j halt
-```
-2. Create linker script `link.ld`:
-```ld
-OUTPUT_ARCH( "riscv" )
-ENTRY(_start)
-SECTIONS
-{
-    . = 0x80000000;
-}
-```
-3. Create runner script `./run.sh` (don't forget to `chmod +x`)
-```sh
-#!/usr/bin/env bash
-timeout 10 qemu-system-riscv64 -M virt -display none -serial stdio -bios none -kernel hello
-```
-4. Compile into executable:
-```sh
-riscv64-unknown-elf-gcc -c -mcmodel=medany -fvisibility=hidden -nostartfiles -march=rv64g -mabi=lp64 -o hello.o hello.s
-riscv64-unknown-elf-ld hello.o -nostdlib -T link.ld -o hello
-```
-5. Dot-source the script - it will immediately exit cleanly
-6. Execute the script - it will timeout with exit code 124
-7. Execute the script with redirected stdin, e.g. `./run.sh < ./run.sh` or `echo | ./run.sh` - it will immediately exit cleanly
-Additional information:
-This issue happens only with `-serial stdio`. Using `chardev:file` or `chardev:null` does not reproduce the issue. Process substitution like `<(echo 'test')` does not seem to work. `cat | ./run.sh` will wait until any line is send, then exit cleanly. This is mainly an issue when using helper test scripts which want to interact with user, as proper CI/UT would redirect serial anyways.
-
-I have noticed similar behavior with other RISC-V UART device - when running from scripts, there is no output, as if QEMU was waiting for something, even if there is only UART TX, not RX. It does not matter if I actually type in anything or not.