Feature: Rewrote AddressDecoder

This commit is contained in:
Thomas Zimmermann
2025-09-22 12:00:49 +00:00
committed by Lukas Steiner
parent ee04212ddb
commit ce1332ca81
11 changed files with 1708 additions and 455 deletions

View File

@@ -52,11 +52,12 @@ static DRAMSys::AddressDecoder addressDecoder()
static void addressdecoder_decode(benchmark::State& state)
{
auto decoder = addressDecoder();
tlm::tlm_generic_payload trans;
trans.set_address(0x0);
for (auto _ : state)
{
// Actual address has no significant impact on performance
auto decodedAddress = decoder.decodeAddress(0x0);
auto decodedAddress = decoder.decodeAddress(trans);
benchmark::DoNotOptimize(decodedAddress);
}
}