linux-mips
[Top] [All Lists]

RE: "sel" field in MTC0 instruction?

To: "'Ralf Baechle'" <ralf@linux-mips.org>
Subject: RE: "sel" field in MTC0 instruction?
From: "Babbellapati Syam Krishna (IFIN DC COM)" <Syam-Krishna.Babbellapati@infineon.com>
Date: Tue, 14 Oct 2003 15:48:52 +0530
Cc: "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
>> #define write_32bit_cp0_performance_register(register,value) 
>\ __asm__ 
>> __volatile__( \ "mtc0\t%0,"STR(register)",sel\n\t" \
>> "nop" \
>> : : "r" (value));
>
>Which seems to be dervied from an old function which was 
>eleminated months ago.  Checkout a current mipsregs.h - which 
>also accesses register with a non-zero selector value.
>

Thanks Ralf. I could get out of it.

Syam


<Prev in Thread] Current Thread [Next in Thread>