linux/arch/tile/kernel
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
..
asm-offsets.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
backtrace.c arch/tile: big-endian: properly bswap instruction bundles when backtracing 2012-06-18 13:11:21 -04:00
compat_signal.c tile: switch to generic compat rt_sigaction() 2013-02-03 18:16:22 -05:00
compat.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2013-05-01 07:21:43 -07:00
early_printk.c tile: various console improvements 2013-08-12 14:46:18 -04:00
entry.S tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE 2012-10-20 13:13:29 -04:00
futex_64.S arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
hardwall.c tile: various minor cleanups to hardwall subsystem 2013-07-31 11:49:48 -04:00
head_32.S tile: convert uses of "inv" to "finv" 2013-07-31 11:51:19 -04:00
head_64.S tile: convert uses of "inv" to "finv" 2013-07-31 11:51:19 -04:00
hvglue.lds tile: various console improvements 2013-08-12 14:46:18 -04:00
intvec_32.S tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
intvec_64.S tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
irq.c arch/tile: use new generic {enable,disable}_percpu_irq() routines 2011-12-03 15:31:49 -05:00
machine_kexec.c arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
Makefile tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
messaging.c arch/tile: bomb raw_local_irq_ to arch_local_irq_ 2010-11-01 15:30:42 -04:00
module.c modules: don't hand 0 to vmalloc. 2012-12-14 13:06:43 +10:30
pci_gx.c tile PCI RC: reduce driver's vmalloc space usage 2013-08-06 12:56:12 -04:00
pci-dma.c tile PCI DMA: fix bug in non-page-aligned accessors 2013-08-06 12:56:04 -04:00
pci.c tile PCI RC: support pci=off boot arg for tilepro 2013-08-05 16:12:57 -04:00
proc.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
process.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
ptrace.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
reboot.c tile: various console improvements 2013-08-12 14:46:18 -04:00
regs_32.S Disintegrate asm/system.h for Tile 2012-03-28 18:30:03 +01:00
regs_64.S Disintegrate asm/system.h for Tile 2012-03-28 18:30:03 +01:00
relocate_kernel_32.S arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
relocate_kernel_64.S arch/tile: support kexec() for tilegx 2012-05-25 12:48:25 -04:00
setup.c tile: support "memmap" boot parameter 2013-08-12 14:46:43 -04:00
signal.c tile: switch to generic sigaltstack 2013-02-03 18:16:21 -05:00
single_step.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
smp.c arch/tile: Allow tilegx to build with either 16K or 64K page size 2012-05-25 12:48:24 -04:00
smpboot.c tile: Use generic idle loop 2013-04-08 17:39:28 +02:00
stack.c sched: Rename sched.c as sched/core.c in comments and Documentation 2013-06-19 12:58:42 +02:00
sys.c take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.h 2012-11-28 23:43:27 -05:00
sysfs.c arch/tile: allow querying cpu module information from the hypervisor 2012-05-25 12:48:28 -04:00
tile-desc_32.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
tile-desc_64.c arch/tile: factor out <arch/opcode.h> header 2011-11-03 16:58:54 -04:00
time.c tile: ns2cycles should use __raw_get_cpu_var 2013-03-26 13:52:16 -04:00
tlb.c arch/tile: support multiple huge page sizes dynamically 2012-05-25 12:48:27 -04:00
traps.c arch/tile: add descriptive text if the kernel reports a bad trap 2012-05-25 12:48:28 -04:00
unaligned.c tile: fast-path unaligned memory access for tilegx 2013-08-13 16:04:10 -04:00
usb.c usb: add host support for the tilegx architecture 2012-07-18 16:40:29 -04:00
vmlinux.lds.S tile: normalize global variables exported by vmlinux.lds 2013-07-03 16:07:34 -07:00