|
From: <sv...@va...> - 2005-06-23 21:15:42
|
Author: sewardj
Date: 2005-06-23 22:14:45 +0100 (Thu, 23 Jun 2005)
New Revision: 1221
Log:
Disable dangerous case in advance4 which is not currently needed.
Modified:
trunk/priv/host-ppc32/isel.c
Modified: trunk/priv/host-ppc32/isel.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/priv/host-ppc32/isel.c 2005-06-23 15:25:57 UTC (rev 1220)
+++ trunk/priv/host-ppc32/isel.c 2005-06-23 21:14:45 UTC (rev 1221)
@@ -443,11 +443,16 @@
switch (am4->tag) {
case Pam_IR:
am4->Pam.RR.index +=3D 4; break;
- case Pam_RR: {
- HReg r_index =3D am4->Pam.IR.index;
- addInstr(env, PPC32Instr_Alu32(Palu_ADD, r_index, r_index, PPC3=
2RI_Imm(4)));
- break;
- }
+ case Pam_RR:
+ // This trashes r_index, which might be used by others later.
+ // Disable for the moment. If needs to be reinstated, construct
+ // (r_index+4) in a new register and use that instead.
+ //{
+ // HReg r_index =3D am4->Pam.IR.index;
+ // addInstr(env, PPC32Instr_Alu32(Palu_ADD, r_index, r_index,=20
+ // PPC32RI_Imm(4)));
+ // break;
+ // }
default:
vpanic("advance4(ppc32,host)");
}
|