qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Problem with running machine code specified in the program
@ 2004-08-30  6:00 Hans Yang
  2004-08-30 13:12 ` Paul Brook
  2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Yang @ 2004-08-30  6:00 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

I got "qemu: uncaught target signal 11 (Segmentation fault) - exiting" when
running program like that:

 

typedef int (*native_f)();

typedef struct {

    native_f func;

} ST;

 

int main()

{

    ST p;

    const int code[1] = {

        0xe1a0f00e  // mov pc, lr

    };

 

    p.func = (native_f)code;

p.func();

 

return 0;

}

 

My platform details:

CPU: Intel Pentium 4 2.40G

OS: Fedora Core release 2

Compiler: arm-linux-gcc 2.95.3

Emulator: qemu-arm 0.6.0

 


[-- Attachment #2: Type: text/html, Size: 6605 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-03 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30  6:00 [Qemu-devel] Problem with running machine code specified in the program Hans Yang
2004-08-30 13:12 ` Paul Brook
2004-09-03 13:34 ` cause found for qemu-arm problems on fedora 2 (Re: [Qemu-devel] Problem with running machine code specified in the program) Lennert Buytenhek
2004-09-03 14:42   ` Lennert Buytenhek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).