[lkml]   [2020]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 1/3] riscv: Set more data to cacheinfo

On Mon, Aug 31, 2020 at 9:15 AM Zong Li <> wrote:
> If the sets is one, it means that the cache is fully associative, then
> we don't need to fill the ways number, just keep way number as zero,
> so here we want to find the fully associative case first and make the
> if expression fail at the beginning. We might also rewrite it as
> follow:


Thanks for the explanation! The rewritten version is much easier to
read, at least to me.

- Pekka

 \ /
  Last update: 2020-08-31 09:00    [W:0.038 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site