From 073c102b95e3f200d496743c6cc99dd78dead7db Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 19 Oct 2005 10:14:19 +0000 Subject: [PATCH] Use standard syntax for the rlwinm. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4946 --- coregrind/m_dispatch/dispatch-ppc32-linux.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coregrind/m_dispatch/dispatch-ppc32-linux.S b/coregrind/m_dispatch/dispatch-ppc32-linux.S index 78ac228db..158cf29f9 100644 --- a/coregrind/m_dispatch/dispatch-ppc32-linux.S +++ b/coregrind/m_dispatch/dispatch-ppc32-linux.S @@ -124,7 +124,8 @@ dispatch_boring: bdz counter_is_zero /* decrements ctr reg */ /* try a fast lookup in the translation cache */ - rlwinm 4,30,2,VG_TT_FAST_MASK<<2 /* r4=((r30<<2) & (MASK<<2)) */ + /* r4=((r30<<2) & (VG_TT_FAST_MASK<<2)) */ + rlwinm 4,30, 2, 32-2-VG_TT_FAST_BITS, 31-2 // CAB: use a caller-saved reg for this ? addis 5,4,VG_(tt_fast)@ha lwz 5,VG_(tt_fast)@l(5)