On 20 November 2014 15:03, Liviu Ionescu <i...@livius.net> wrote: > > On 20 Nov 2014, at 15:31, Peter Maydell <peter.mayd...@linaro.org> wrote: > >> I think you can avoid having to plumb the command line >> string into the MachineState and arm_boot_info structures, >> because you can just have the semihosting code look the >> option up by name: >> >> QemuOpts *opts = >> qemu_opts_find(qemu_find_opts("semihosting-config"), NULL); > > something is missing with the way options are handled, this call fails with > BAD_ACCESS.
What's this? It's not an error code in QEMU... > I tried to debug the problem, but with little success so far. I'll have a look. >> That will also automatically make the command line option >> work for A profile CPUs as well. > > where is the A profile code? A profile CPUs generally boot via the code in hw/arm/boot.c. -- PMM