[PATCH v3 1/3] riscv: Set more data to cacheinfo
zong.li at sifive.com
Mon Aug 31 03:13:52 EDT 2020
On Mon, Aug 31, 2020 at 3:00 PM Pekka Enberg <penberg at gmail.com> wrote:
> On Mon, Aug 31, 2020 at 9:15 AM Zong Li <zong.li at sifive.com> 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.
Let me change it for readability in the next version, thanks.
> - Pekka
More information about the linux-riscv