This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Add %mrp pseudo-register to hppa assembler



I've been trying to port guile today which includes qthreads.
The qthreads hppa support contains the following code:

            bl          $$dyncall,%mrp  ; call $$dyncall (millicode function)
            copy        %mrp,%rp        ; remember the return-pointer

our assembler doesn't recognise %mrp atm, but i suspect HPUX's does.

2001-06-19  Matthew Wilcox  <willy@ldl.fc.hp.com>

	* config/tc-hppa.c: Add %mrp (millicode return pointer) alias
	for %r2 or %r31, depending on 32 or 64 bit architecture.

--- binutils-2.11.90.0.7/gas/config/tc-hppa.c.orig	Wed Mar 28 10:58:26 2001
+++ binutils-2.11.90.0.7/gas/config/tc-hppa.c	Tue Jun 19 14:09:08 2001
@@ -954,6 +954,11 @@
   {"%isr",   20},
   {"%itmr",  16},
   {"%iva",   14},
+#if TARGET_ARCH_SIZE == 64
+  {"%mrp",    2},
+#else
+  {"%mrp",   31},
+#endif
   {"%pcoq",  18},
   {"%pcsq",  17},
   {"%pidr1",  8},

-- 
Revolutions do not require corporate support.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]