How do I reduce the size of the L2 cache on the HiFive Unmatched?

I was wondering if there was anyway to reduce the size of the L2 Cache. I know some answer a year ago mentioned to use the enable_cache_ways function in cache.c in arch/riscv/fu740 but I am using the 2022.07 version of UBoot and OpenSBI 1.1, and I can’t seem to locate where these functions are, nor cache.c itself. Any direction to solve this problem is greatly appreciated, thanks!

I found a copy of the file here:
I don’t follow linux kernel development so I don’t know what happened to this patch set. This appears to make assumptions about the format of the device tree file, so might need changes to work with current kernels.