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

Re: [microblaze-uclinux] RDTSC Issue



rdtsc is an intel insrtuction beginning to be used with the Pentium.

Microblaze has not this instruction, so you must do a port for this part of 
the program.

On Wednesday 27 July 2005 18:34, mcnernbm@notes.udayton.edu wrote:
> I have program that uses RDTSC in it.  But when I try to do a out of tree
> compile I get the follwoing error message:
>
> NativeTimeStamp.cpp: In method 'u_int64_t NativeTimeStamp::rdtsc():
> NativeTImeStamp.cpp:215: inconsistent operand contraints in as 'ams'
> make: *** [NativeTimeStamp.o] Error 1
>
> Is there any equivalent for the rdtsc command?
> The line that is having an issue is the following:
>
> __asm__ __volatile__ ("rdtsc" : "=&A" (d));

-- 
Alejandro Lucero
OS3, OS Serveis i Solucions
www.os3sl.com
Ingeniería Informática
+34 665687168
Av.Benjamin Franklin
CEEI. Parque Tecnológico de Paterna
Valencia(Spain)

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/