-
Notifications
You must be signed in to change notification settings - Fork 103
elfloader: add support for PSCI functions via HVC #239
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,8 @@ def parse_args(): | |
| help="QEMU CPU", default="@QEMU_SIM_CPU@") | ||
| parser.add_argument('-o', '--cpu-opt', dest='qemu_sim_cpu_opt', type=str, | ||
| help="QEMU CPU Options", default="@QEMU_SIM_CPU_OPT@") | ||
| parser.add_argument('--smp', dest='qemu_sim_smp', type=str, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All the other main arguments have a single letter variant,
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
| help="QEMU SMP", default="@QEMU_SIM_SMP@") | ||
| parser.add_argument('-g', '--graphic', dest='qemu_sim_graphic_opt', type=str, | ||
| help="QEMU Graphic Options", default="@QEMU_SIM_GRAPHIC_OPT@") | ||
| parser.add_argument('-s', '--serial', dest='qemu_sim_serial_opt', type=str, | ||
|
|
@@ -79,7 +81,11 @@ def notice(message): | |
|
|
||
| qemu_sim_mem_size_entry = "-m size=" + args.qemu_sim_mem_size | ||
|
|
||
| qemu_simulate_command_opts = [args.qemu_sim_binary, qemu_sim_machine_entry, qemu_sim_cpu_entry, args.qemu_sim_graphic_opt, | ||
| qemu_sim_smp_entry = "" | ||
| if args.qemu_sim_smp: | ||
| qemu_sim_smp_entry = "-smp " + args.qemu_sim_smp | ||
|
|
||
| qemu_simulate_command_opts = [args.qemu_sim_binary, qemu_sim_machine_entry, qemu_sim_cpu_entry, qemu_sim_smp_entry, args.qemu_sim_graphic_opt, | ||
| args.qemu_sim_serial_opt, qemu_sim_mem_size_entry, args.qemu_sim_extra_args, qemu_sim_images_entry, | ||
| qemu_gdbserver_command] | ||
| qemu_simulate_command = " ".join(qemu_simulate_command_opts) | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I should investigate into HVC on 32-bit ARM.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems to be the same as for 64-bit Arm.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I initially tried that but it failed for 32-bit ARM on QEMU. Will have to debug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will apply to all simulation targets, but I have only tested ARM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the Qemu argument is the same, it should work. If not, we're not worse off than before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the same across all architectures so yes it should be fine.