qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Problem with running machine code specified in the program


From: Hans Yang
Subject: [Qemu-devel] Problem with running machine code specified in the program
Date: Mon, 30 Aug 2004 14:00:39 +0800

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

 


reply via email to

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