Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libgloss/riscv: Fix wrong fdtable[i]->handle assignment
This assignment is already done correctly in __add_fdentry if we do it after open, it is wrong, the _open is return the file handle index of fdtable not the handle return by semihost open call which is recorded in fdtable[i]->handle This should be able to fix unable to run qemu with semihosting in windows see https://gito.corp.nucleisys.com/software/devtools/qemu/-/issues/128 This will fix nuclei sdk make SEMIHOST=1 run_qemu not output issue Signed-off-by: Huaqi Fang <[email protected]>
- Loading branch information