diff options
author | Subrata Banik <subratabanik@google.com> | 2024-03-16 17:57:28 +0530 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-03-17 11:54:58 +0000 |
commit | a4c91e15f879eb2b6cf0984f97c6efdc6c8fdca8 (patch) | |
tree | c5599d73ba4b292144799dd73ebf59ed872e2bab /src/cpu/qemu-x86 | |
parent | bbf884ddbd76b38fdc9b5ec4163cfc0dadd872ce (diff) |
arch/x86: Add API to check if cache sets are power-of-two
Introduce a function to determine whether the number of cache sets is
a power of two. This aligns with common cache design practices that
favor power-of-two counts for efficient indexing and addressing.
BUG=b:306677879
BRANCH=firmware-rex-15709.B
TEST=Verified functionality on google/ovis and google/rex (including
a non-power-of-two Ovis configuration).
Change-Id: I819e0d1aeb4c1dbe1cdf3115b2e172588a6e8da5
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81268
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/qemu-x86')
0 files changed, 0 insertions, 0 deletions