[m-rev.] diff: fix NUM_REAL_R_REGS for PowerPC
Fergus Henderson
fjh at cs.mu.OZ.AU
Wed Sep 11 21:54:21 AEST 2002
Estimated hours taken: 0.25
Branches: main
Fix the setting of NUM_REAL_R_REGS for PowerPC.
(This should hopefully improve performance on Macs a little.)
configure.in:
Treat powerpc-* the same as rs6000-* with regard to registers.
This is needed because powerpc is just a variant of rs6000.
runtime/machdeps/rs6000_regs.h:
Mention that this file is used for PowerPC, as well as for RS/6000.
Workspace: /home/ceres/fjh/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.314
diff -u -d -r1.314 configure.in
--- configure.in 7 Aug 2002 23:36:49 -0000 1.314
+++ configure.in 11 Sep 2002 10:53:08 -0000
@@ -2260,7 +2260,7 @@
NUM_REAL_R_TEMPS=6
HAVE_DELAY_SLOT=--have-delay-slot
;;
- rs6000-*)
+ rs6000-*|powerpc-*)
# NUM_REAL_REGS=10
# but succip, sp, hp, maxfr, and curfr are real regs,
# so subtract 5
Index: runtime/machdeps/rs6000_regs.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/machdeps/rs6000_regs.h,v
retrieving revision 1.11
diff -u -d -r1.11 rs6000_regs.h
--- runtime/machdeps/rs6000_regs.h 4 Dec 2000 18:35:22 -0000 1.11
+++ runtime/machdeps/rs6000_regs.h 11 Sep 2002 10:55:36 -0000
@@ -8,7 +8,7 @@
#define MR_MACHDEPS_RS6000_REGS_H
/*
-** Machine registers MR_mr0 - MR_mr36 for the RS/6000 architecture.
+** Machine registers MR_mr0 - MR_mr36 for the RS/6000 (and PowerPC) architecture.
**
** The first MR_NUM_REAL_REGS of these are real machine registers.
** The others are just slots in a global array.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list