Use integer address in decode function again

This commit is contained in:
2025-09-24 09:32:40 +02:00
parent c9c7293dd0
commit 7e77593f23
7 changed files with 22 additions and 32 deletions

View File

@@ -52,12 +52,10 @@ 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(trans);
auto decodedAddress = decoder.decodeAddress(0x0);
benchmark::DoNotOptimize(decodedAddress);
}
}