Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
Hi, I'm doing some tricks with Linux kernel and I'm dependent on bootloader atags passing. On PandaBoard the u-boot is always passing DTF/Atags pointer in r2 register, and I'm kind of depending on it. I need to emulate this behavior by -initrd qemu's argument. However it seems that qemu-system-ar

[ACTIVITY] 30th January - 3rd February

2012-02-06 Thread Andrew Stubbs
Adjusted my 64-bit shifts patch to address Richard Earnshaw's concerns, tested it, and posted the new one upstream. Continued trying to figure out how ira-costs.c works, and in particular, why it doesn't choose to do 64-bit stuff in NEON when I think it should. Basically, the problem seems to

Re: Qemu atags passing in register.

2012-02-06 Thread Peter Maydell
On 6 February 2012 12:19, d...@ucore.info wrote: > On PandaBoard the u-boot is always passing DTF/Atags pointer in r2 > register, and I'm kind of depending on it. I need to emulate this > behavior by -initrd qemu's argument. However it seems that > qemu-system-arm zeros the registers on the start,

Re: Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
On Mon, Feb 6, 2012 at 5:35 PM, Peter Maydell wrote: > No, qemu will correctly pass the atags in r2 if it is booting a linux > kernel (ie if you pass it a non ELF file via the -kernel argument). > Otherwise we wouldn't be able to boot Linux. > How are you starting qemu ? Well it's a bit complex:

Re: Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
On Mon, Feb 6, 2012 at 6:48 PM, d...@ucore.info wrote: > In the sourcode (current release) I couldn't find any place where any > register except PC is being modified. While looking for some data to paste here, I've notice that the pointers should be set by "the smallest bootlader in the world". I