[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Qemu-devel] Support for new target emulator
From: |
Boyapati, Anitha |
Subject: |
RE: [Qemu-devel] Support for new target emulator |
Date: |
Tue, 24 Nov 2009 13:02:22 +0100 |
> -----Original Message-----
> From: Rabin Vincent [mailto:address@hidden On Behalf Of Rabin
> Vincent
Hello Rabin,
> I've put up the current source at http://repo.or.cz/w/qemu/avr32.git,
> and a small README and some prebuilt kernel and busybox binaries to play
> with at http://rab.in/qemu/avr32/.
>
> Current status and a TODO list are below. Have a look. I still hope to
> complete this and get it merged at some point, but you're welcome to
> beat me to it. If you (or anyone else) decide to work off this, I'd
> be happy to take patches or give you push access to the repo.
>
> Current status:
> - linux-user: Busybox (ash, ls, gzip, etc) works.
>
I am playing around the code downloaded from git repo and tried something like
the following in linux-user mode:
$ qemu-avr32 a.out
[a.out is a simple elf file created using avr32-gcc by compiling a file
containing a blank main()].
#test.c
int main() {
return 0;
}
I get an error "mmap: Invalid argument". The same behavior can be seen for all
elf programs (as simple as a blank main function). Not sure what I expected,
but definitely not an error. This kind of execution is important for providing
gdb support.
Further analysis shows that the error directly narrows down to target_mmap in
mmap.c. The check for offset and target_page_mask fails for stack segment
mapping and results in this error. Any idea why this happened? Let me know your
insights on this issue.
Some more info about helloworld using readelf:
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000400 0x00000000 0x00000000 0x07a8c 0x07a90 RWE 0x400
LOAD 0x008000 0x24000000 0x00007a90 0x00848 0x00848 RW 0x400
LOAD 0x008848 0x24000848 0x24000848 0x00000 0x00050 RW 0x400
LOAD 0x008c00 0x24007000 0x24007000 0x00000 0x01000 RW 0x400
Section to Segment mapping:
Segment Sections...
00 .reset .init .text .fini .rodata .dalign
01 .ctors .dtors .jcr .got .data
02 .bss
03 .stack
Anitha
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: [Qemu-devel] Support for new target emulator,
Boyapati, Anitha <=