powerpc: Fix bug arising from having multiple memory_limit variables