riscv-software-src / riscv-perf-model

Example RISC-V Out-of-Order/Superscalar Processor Performance Core and MSS Model
Apache License 2.0
133 stars 56 forks source link

L2Cache Compilation errors #128

Closed klingaard closed 9 months ago

klingaard commented 10 months ago

@Kunal-Buch -- after the merge of your L2 Cache, clang had a few issues on my Linux box. Not sure why regression didn't catch them, so that's on me, but I have a branch that fixes them:

Issue 1

mss/L2Cache.cpp:290:36: error: lambda capture 'instPtr' is not used [-Werror,-Wunused-lambda-capture]
            auto is_cl_present = [&instPtr, inst_cl, getCacheLine] (auto reqPtr)

Issue 2

test/core/l2cache/L2SourceUnit.hpp:58:17: error: '~L2SourceUnit' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions]
                sparta_assert(unit_enable_ == true && pending_acks_ == 0, "pending_acks remaining in the L2SourceUnit")