HomePhabricator

[compiler-rt][builtins][RISCV] Port __clear_cache to RISC-V Linux

Authored by luismarques on Mar 5 2020, 8:43 AM.

Description

[compiler-rt][builtins][RISCV] Port __clear_cache to RISC-V Linux

Implements __clear_cache for RISC-V Linux. We can't just use fence.i on
Linux, because the Linux thread might be scheduled on another hart, and the
fence.i instruction only flushes the icache of the current hart.

Details

Committed
luismarquesMar 5 2020, 8:44 AM
Parents
rGc2b2472ca8c3: Fix a warning about an unreachable default in a switch statement.
Branches
Unknown
Tags
Unknown