]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc64: Add DSCR support
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 20 Apr 2018 03:19:44 +0000 (03:19 +0000)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 20 Apr 2018 03:19:44 +0000 (03:19 +0000)
commit2914706ab09b565d52ec4ae4fcca8025fdcd214b
treee7d7b94286e3e23e0e3d480e95f53e0a5ee370a0
parent5ea3fdc7759782f8ea07545796ca11bfb0b0348a
powerpc64: Add DSCR support

Summary:
Powerpc64 has support for a register called Data Stream Control Register
(DSCR), which basically controls how the hardware controls the caching and
prefetch for stream operations.

Since mfdscr and mtdscr are privileged instructions, we need to emulate them,
and
keep the custom DSCR configuration per thread.

The purpose of this feature is to change DSCR depending on the operation, set
to DSCR Default Prefetch Depth to deepest on string operations, as memcpy.

Submitted by: Breno Leitao
Differential Revision: https://reviews.freebsd.org/D15081
sys/powerpc/include/pcb.h
sys/powerpc/include/spr.h
sys/powerpc/powerpc/exec_machdep.c
sys/powerpc/powerpc/genassym.c
sys/powerpc/powerpc/swtch64.S