Skip to content
  • James Hogan's avatar
    metag: Cache/TLB handling · 99ef7c2a
    James Hogan authored
    
    
    Add cache and TLB handling code for metag, including the required
    callbacks used by MM switches and DMA operations. Caches can be
    partitioned between the hardware threads and the global space, however
    this is usually configured by the bootloader so Linux doesn't make any
    changes to this configuration. TLBs aren't configurable, so only need
    consideration to flush them.
    
    On Meta1 the L1 cache was VIVT which required a full flush on MM switch.
    Meta2 has a VIPT L1 cache so it doesn't require the full flush on MM
    switch. Meta2 can also have a writeback L2 with hardware prefetch which
    requires some special handling. Support is optional, and the L2 can be
    detected and initialised by Linux.
    
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    99ef7c2a