Samuel Holland
62447cd7aa
include: sbi: Optimize reads of mhartid and mscratch
...
csr_read() is marked as volatile and clobbering memory, which is
generally the safe thing to do. However, these two CSRs do not have any
side effects, and the values returned do not change between calls. The
compiler can generate better code if we allow it to reorder calls to
these functions and cache the return value. Introduce csr_read_relaxed()
for this use case.
Signed-off-by: Samuel Holland <samuel.holland@sifive.com >
Reviewed-by: Anup Patel <anup@brainfault.org >
2024-10-28 10:51:37 +05:30
..
2022-03-27 09:44:58 +05:30
2024-10-28 10:51:37 +05:30
2023-12-08 13:47:31 +05:30
2024-04-05 17:48:23 +05:30
2024-01-10 09:43:34 +05:30
2023-10-06 09:21:23 +05:30
2024-10-26 00:00:12 +05:30
2024-08-23 13:36:49 +05:30
2019-04-24 09:49:46 +05:30
2021-05-14 17:05:20 +05:30
2024-02-20 15:49:36 +05:30
2024-09-23 18:33:02 +05:30
2024-04-05 17:23:51 +05:30
2024-07-24 12:18:33 +05:30
2021-03-22 16:02:48 +05:30
2023-04-07 09:36:01 +05:30
2021-04-05 13:43:08 +05:30
2024-01-10 10:55:42 +05:30
2024-10-25 23:00:10 +05:30
2024-10-25 23:00:07 +05:30
2024-10-25 23:00:10 +05:30
2024-10-25 23:58:39 +05:30
2024-03-19 11:31:39 +05:30
2020-03-28 13:32:07 +05:30
2024-04-05 15:47:30 +05:30
2024-07-24 12:18:39 +05:30
2024-06-19 18:09:22 +05:30
2024-10-25 23:58:00 +05:30
2024-09-26 16:28:18 +05:30
2024-08-09 08:51:27 +05:30
2021-11-02 16:02:08 +05:30
2024-09-26 16:29:29 +05:30
2024-03-19 11:31:31 +05:30
2024-09-26 16:29:27 +05:30
2023-09-24 11:39:38 +05:30
2024-03-19 11:31:33 +05:30
2023-05-11 12:31:34 +05:30
2020-05-10 09:59:24 +05:30
2024-07-24 12:18:33 +05:30
2024-04-05 17:09:39 +05:30
2024-10-28 10:51:37 +05:30
2024-10-25 23:04:43 +05:30
2020-07-29 12:03:45 +05:30
2023-06-04 15:18:40 +05:30
2024-09-20 21:52:06 +05:30
2023-12-19 15:56:37 +05:30
2024-10-25 23:58:00 +05:30
2024-10-25 23:53:18 +05:30
2024-09-27 10:52:32 +05:30
2024-05-07 11:27:13 +05:30
2020-03-28 13:32:01 +05:30
2024-06-30 14:03:26 +05:30