update method
Updates one sidecar slot.
Implementation
void update({
required int set,
required int way,
required int tag,
required DataType data,
required bool valid,
}) {
final index = image.slot(set, way);
_tags[index] = tag;
_payloads[index] = data;
if (valid) {
_allocatedSlots.add(index);
} else {
_allocatedSlots.remove(index);
}
}