gem5 arm cli args not working

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-06-16 01:00:00 +00:00
parent 1e170967d3
commit 7d32b26fde
4 changed files with 26 additions and 2 deletions

View File

@@ -22095,6 +22095,12 @@ This works by:
It is worth noting that e.g. ARM has a <<semihosting>> mechanism for loading CLI arguments through `SYS_GET_CMDLINE`, but our mechanism works in principle for any ISA.
==== gem5 baremetal arm CLI args
Currently not supported, so we just hardcode argc 0 on the <<baremetal-bootloaders,arm baremetal bootloader>>.
I think we have to keep the CLI args below 32 GiB, otherwise argc cannot be correctly setup. But currently the gem5 text segment is exactly at 32 GiB, and we always place the CLI args higher in the <<baremetal-linker-script>>.
=== Semihosting
Semihosting is a publicly documented interface specified by ARM Holdings that allows us to do some magic operations very useful in development, such as writting to the terminal or reading and writing host files.