Skip to content

Report riscv64 for Linux RV64 uname() - #1699

Open
carlosqwqqwq wants to merge 1 commit into
qilingframework:devfrom
carlosqwqqwq:codex/qiling-issue-1690-uname-rv64-20261124
Open

carlosqwqqwq wants to merge 1 commit into
qilingframework:devfrom
carlosqwqqwq:codex/qiling-issue-1690-uname-rv64-20261124

Conversation

@carlosqwqqwq

Copy link
Copy Markdown

Checklist

Which kind of PR do you create?

  • This PR only contains minor fixes.
  • This PR contains major feature update.
  • This PR introduces a new function/api for Qiling Framework.

Coding convention?

  • The new code conforms to Qiling Framework naming convention.
  • The imports are arranged properly.
  • Essential comments are added.
  • The reference of the new code is pointed out below.

Extra tests?

  • No extra tests are needed for this PR.
  • I have added enough tests for this PR.
  • Tests will be added after some discussion and review.

Changelog?

  • This PR doesn't need to update Changelog.
  • Changelog will be updated after some proper review.
  • Changelog has been updated in my PR.

Target branch?

  • The target branch is dev branch.

One last thing

Summary

For Linux RV64 guests, uname().machine currently contains ql_processor instead of riscv64. This updates only the Linux RV64 value; other OS and architecture profiles and the remaining utsname fields keep their existing behavior.

Fixes #1690.

Validation

  • cd tests && PYTHONPATH=.. python3 -m unittest test_uname_machine — passed.
  • cd tests && PYTHONPATH=.. python3 test_posix.py UnameMachineTest — passed.
  • Both commands passed in Python 3.11 and Python 3.13 containers.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant