[Top][All Lists]

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

Re: [Qemu-devel] QEMU 0.2 is out

From: Fabrice Bellard
Subject: Re: [Qemu-devel] QEMU 0.2 is out
Date: Tue, 03 Jun 2003 02:49:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020828

Falk Hueffner wrote:
Fabrice Bellard <address@hidden> writes:

For Alpha: I am using gcc 3.2.3 and '-msmall-text' is not
supported. Is it really necessary ?

Not really, I was just hoping to avoid a few gp readjustments with it,
however it doesn't really seem to have that effect, since for
non-static functions, that cannot be done, and for static functions,
gcc already knows to avoid gp restoring.

Which version of gcc are you using ? Do you use a patched gcc ? Can you give me your spec file and the gcc -v log when you compile op-i386.c ?

I am totally unable to get correct code. In particular, I cannot make gcc 3.2.3 generate R_ALPHA_BRADDR relocations. Currently, to get correct code, I must do the following:
int __op_param1;
#define PARAM1 ({ int _r; asm("ldah %0,__op_param1($29) !gprelhigh\n" \
"lda %0,__op_param1(%0) !gprellow" : "=r"(_r) ); _r; })

#define CALL(x) asm volatile ("bsr $26, %0" : : "i" (x))
and use the macro CALL to call a function!


reply via email to

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