linux/arch/tile/mm
Chris Metcalf 2f9ac29eec tile: fast-path unaligned memory access for tilegx
This change enables unaligned userspace memory access via a kernel
fast path on tilegx.  The kernel tracks user PC/instruction pairs
per-thread using a direct-mapped cache in userspace.  The cache
maps those PC/instruction pairs to JIT'ed instruction sequences that
load or store using byte-wide load store intructions and then
synthesize 2-, 4- or 8-byte load or store results.  Once an
instruction has been seen to generate an unaligned access once,
subsequent hits on that instruction typically require overhead
of only around 50 cycles if cache and TLB is hot.

We support the prctl() PR_GET_UNALIGN / PR_SET_UNALIGN sys call to
enable or disable unaligned fixups on a per-process basis.

To do this we pull some of the tilepro unaligned support out of the
single_step.c file; tilepro uses instruction disassembly for both
single-step and unaligned access support.  Since tilegx actually has
hardware singlestep support, though, it's cleaner to keep the tilegx
unaligned access code in a separate file.  While we're at it,
properly rename the tilepro-specific types, etc., to have tilepro
suffixes instead of generic tile suffixes.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2013-08-13 16:04:10 -04:00
..
elf.c mm: remove flags argument to mmap_region 2013-02-23 17:50:11 -08:00
extable.c
fault.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
highmem.c tile: remove usage of enum km_type 2012-07-23 14:11:23 +08:00
homecache.c tile: export a handful of symbols appropriately 2013-02-08 13:20:36 -05:00
hugetlbpage.c mm: use vm_unmapped_area() in hugetlbfs on tile architecture 2012-12-11 17:22:26 -08:00
init.c mm/tile: prepare for removing num_physpages and simplify mem_init() 2013-07-03 16:07:37 -07:00
Makefile
migrate_32.S arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
migrate_64.S arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
migrate.h arch/tile: use interrupt critical sections less 2012-05-25 12:48:20 -04:00
mmap.c mm: remove free_area_cache 2013-07-10 18:11:34 -07:00
pgtable.c mm, vmalloc: change iterating a vmlist to find_vm_area() 2013-04-29 15:54:33 -07:00