ppc4xx: Remove temporary TLB entry in POST cache test only for 440
authorStefan Roese <sr@denx.de>
Wed, 31 Oct 2007 19:45:53 +0000 (20:45 +0100)
committerStefan Roese <sr@denx.de>
Wed, 31 Oct 2007 20:21:47 +0000 (21:21 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
post/cpu/ppc4xx/cache.c

index 38e6e98cc7331e09c70951ec78eabd03f74c76a4..30d50884257ee99def1527839562130bf4367688 100644 (file)
@@ -119,7 +119,9 @@ int cache_post_test (int flags)
        if (ints)
                enable_interrupts ();
 
+#ifdef CONFIG_440
        remove_tlb((u32)virt, CACHE_POST_SIZE);
+#endif
 
        return res;
 }