Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Paul Burton's avatar
    cc4f3643
    MIPS: Break out of cache loops for unimplemented caches · cc4f3643
    Paul Burton authored
    
    If we run on a CPU which doesn't implement a particular cache then we
    would previously get stuck in an infinite loop, executing a cache op on
    the first "line" of the missing cache & then incrementing the address by
    0. This was being avoided for the L2 caches, but not for the L1s. Fix
    this by generalising the check for a zero line size & avoiding the cache
    op loop when this is the case.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
    Cc: u-boot@lists.denx.de
    cc4f3643
    History
    MIPS: Break out of cache loops for unimplemented caches
    Paul Burton authored
    
    If we run on a CPU which doesn't implement a particular cache then we
    would previously get stuck in an infinite loop, executing a cache op on
    the first "line" of the missing cache & then incrementing the address by
    0. This was being avoided for the L2 caches, but not for the L1s. Fix
    this by generalising the check for a zero line size & avoiding the cache
    op loop when this is the case.
    
    Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
    Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
    Cc: u-boot@lists.denx.de