From 19ed1d4374f50bf20ec988db3158807f8c0f615e Mon Sep 17 00:00:00 2001 From: Michael Goldstein Date: Sat, 20 Jul 2024 19:26:53 -0400 Subject: [PATCH] fix bug causing latency map to default when set to sapphire rapids --- src/exec.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/exec.cc b/src/exec.cc index 6a508ae8..94911032 100644 --- a/src/exec.cc +++ b/src/exec.cc @@ -191,6 +191,17 @@ exec_c::exec_c(EXEC_INTERFACE_PARAMS(), macsim_c* simBase) uop_latencybinding_init_x86_coffee_lake[ii].m_latency; } break; + case LATENCY_SAPPHIRE_RAPIDS: + report("UOP latency mapped to Sapphire Rapids"); + latency_array_size = + (sizeof uop_latencybinding_init_x86_sapphire_rapids / + sizeof(uop_latencybinding_init_x86_sapphire_rapids[0])); + + for (int ii = 0; ii < latency_array_size; ++ii) { + m_latency[uop_latencybinding_init_x86_sapphire_rapids[ii].uop_type_s] = + uop_latencybinding_init_x86_sapphire_rapids[ii].m_latency; + } + break; default: report("UOP latency mapped to Sandy Bridge"); latency_array_size = (sizeof uop_latencybinding_init_x86 /