[6450] R13 is reserved for small data area pointer by SVR4 PPC ABI
Revision: 6450
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6450 Author: malc Date: 2009-01-26 18:21:53 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
R13 is reserved for small data area pointer by SVR4 PPC ABI
Modified Paths:
--------------
trunk/tcg/ppc/tcg-target.c
Modified: trunk/tcg/ppc/tcg-target.c
===================================================================
tcg/ppc/tcg-target.c +5 -0
@@ -109,7 +109,9 @@ TCG_REG_R11, #endif TCG_REG_R12, +#ifndef __linux__ TCG_REG_R13, +#endif TCG_REG_R0, TCG_REG_R1, TCG_REG_R2,
@@ -1528,6 +1530,9 @@#ifndef __APPLE__tcg_regset_set_reg (s->reserved_regs,TCG_REG_R2 );#endif +#ifdef __linux__ +tcg_regset_set_reg (s->reserved_regs,TCG_REG_R13 ); +#endif tcg_add_target_add_op_defs (ppc_op_defs); }