Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw/riscv/boot.c: Unify kernel start address #1

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

guoren83
Copy link
Contributor

Current qemu opensbi has different reserved sizes for 32bit and 64bit, caused by different MMU PMD sizes. But, when 64bit uses Sv32, the rule is changed. We can no longer use riscv_is_32bit to distinguish PMD sizes. Here we unify the 4MB reserved size for all PMD sizes, and the side effect is we lost 2MB of Linux system memory. This patch has been tested with opensbi fw_dynamic.bin, but the opensbi fw_jump.bin must be fixed after merging this patch.

Reviewed-by: Weiwei Li [email protected]

Current qemu opensbi has different reserved sizes for 32bit and
64bit, caused by different MMU PMD sizes. But, when 64bit uses
Sv32, the rule is changed. We can no longer use riscv_is_32bit to
distinguish PMD sizes. Here we unify the 4MB reserved size for all
PMD sizes, and the side effect is we lost 2MB of Linux system
memory. This patch has been tested with opensbi fw_dynamic.bin,
but the opensbi fw_jump.bin must be fixed after merging this patch.

Signed-off-by: Guo Ren <[email protected]>
Signed-off-by: Guo Ren <[email protected]>
Reviewed-by: Weiwei Li <[email protected]>
Signed-off-by: Weiwei Li <[email protected]>
Copy link

Thank you for your interest in the QEMU project.

This repository is a read-only mirror of the project's repostories hosted
on https://gitlab.com/qemu-project/qemu.git.
The project does not process merge requests filed on GitHub.

QEMU welcomes contributions of code (either fixing bugs or adding new
functionality). However, we get a lot of patches, and so we have some
guidelines about contributing on the project website:
https://www.qemu.org/contribute/

@github-actions github-actions bot closed this Feb 23, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2024
@pz9115 pz9115 reopened this Feb 23, 2024
@pz9115 pz9115 merged commit e92975c into ruyisdk:rv64ilp32 Feb 23, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants