qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 2/2] semihosting: add --semihosting-config ar


From: Liviu Ionescu
Subject: Re: [Qemu-devel] [PATCH v3 2/2] semihosting: add --semihosting-config arg sub-argument
Date: Thu, 21 May 2015 21:58:59 +0300

> On 21 May 2015, at 21:35, Maciej W. Rozycki <address@hidden> wrote:
> 
> On Thu, 21 May 2015, Liviu Ionescu wrote:
> 
>> p.s. and I think there are major differences between using -append to 
>> pass arguments to the kernel and passing arguments to semihosting, this 
>> being one of the reasons for suggesting a new command.
> 
> Out of curiosity, why do you think there are differences between passing 
> arguments to `vmlinux' and any other bare-metal executable, or maybe more 
> specifically what differences do you have in mind?

because, as per ARM specs, the semihosting buffer inside guest applications 
should be at least 80 bytes, which, in practical terms, means... exactly 80 
bytes.

when you use -kernel & -append, argv[0] is the full path of the kernel, which 
might be longer than 80 bytes itself.


another reason is that -kernel and subsequently -append are optional in some 
use cases. for example I start qemu as a gdb server, without any -kernel, and I 
load the image via the gdb client, as for any debug session. however I need to 
pass semihosting args to the application, and a separate --semihosting-cmdline 
makes more sense for this.


regards,

Liviu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]