[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANXhq0pEEaHirF6N7J7KDcnrqyyp0pZR75uxqSs0UN7tvosz8g@mail.gmail.com>
Date: Mon, 31 Aug 2020 15:13:52 +0800
From: Zong Li <zong.li@...ive.com>
To: Pekka Enberg <penberg@...il.com>
Cc: Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
David Abdurachmanov <david.abdurachmanov@...ive.com>,
linux-riscv <linux-riscv@...ts.infradead.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 1/3] riscv: Set more data to cacheinfo
On Mon, Aug 31, 2020 at 3:00 PM Pekka Enberg <penberg@...il.com> wrote:
>
> Hi,
>
> On Mon, Aug 31, 2020 at 9:15 AM Zong Li <zong.li@...ive.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:
>
> [snip]
>
> 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
Powered by blists - more mailing lists