Udpate so l2rsp_way logic works with an arbitrary number of cores.