diff options
| author | Anup Patel <[email protected]> | 2020-12-29 13:51:06 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-01-07 09:53:19 +0530 |
| commit | 12394a269b8b60e2d37b56afb2fa39fde6a3a4b8 (patch) | |
| tree | 39e2d783172cf53f62c368d1daa0cfcc0d3502db /lib/utils | |
| parent | b7df5e4392d34d8b8d5290d5b857676e672d4c96 (diff) | |
lib: sbi: Allow custom local TLB flush function
Currently, we have fixed TLB flush types supported by the
remote TLB library. This approach is not flexible and does
not allow custom local TLB flush function. For example,
after updating PMP entries on a set of HARTs at runtime,
we have to flush TLB on these HARTs as well.
To support custom local TLB flush function, we replace the
"type" field of "struct sbi_tlb_info" with a local TLB flush
function pointer. We also provide definitions of standard TLB
flush operations (such as fence_i, sfence.vma, hfence.vvma,
hfence.gvma, etc).
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions
