HomeFreeBSD

powerpc64: Add DSCR support

Description

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

Details

Provenance
jhibbitsAuthored on
Differential Revision
D15081: powerpc64: Add DSCR support
Parents
rS332806: bsdgrep: Clean up procmatches a little bit
Branches
Unknown
Tags
Unknown