Skip to content

Add support for memory-mapped devices#4

Closed
SimonSapin wants to merge 5 commits into
lion328:masterfrom
SimonSapin:mmio
Closed

Add support for memory-mapped devices#4
SimonSapin wants to merge 5 commits into
lion328:masterfrom
SimonSapin:mmio

Conversation

@SimonSapin

Copy link
Copy Markdown
Contributor

This adds support for non-Intel architectures without "I/O ports" where a fw-cfg device is mapped into main memory instead. The base address needs to be passed as a parameter to a new constructor.

The I/O port mode is only available on x86 or x86-64:
rename the constructor and add conditionally-compile it accordingly.
@SimonSapin

Copy link
Copy Markdown
Contributor Author

I’m fairly sure the new tests passed when I worked on this several months ago, but now I get the same failure as on CI and I don’t know what to try next :(

qemu-system-riscv32: -fw_cfg opt/input.txt,file=tests/input.txt: fw_cfg device not available

@CityAceE

CityAceE commented Dec 6, 2022

Copy link
Copy Markdown

Could you create this issue on QEMU bug tracker?
https://gitlab.com/qemu-project/qemu/-/issues

@SimonSapin

Copy link
Copy Markdown
Contributor Author

I believe this is the same as https://gitlab.com/qemu-project/qemu/-/issues/1343

@lion328

lion328 commented Apr 4, 2023

Copy link
Copy Markdown
Owner

Merged with #2.

@lion328 lion328 closed this Apr 4, 2023
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.

3 participants