This is an entirely different subject. The software can be upgraded/updated during the life of the mobile phone. And when it comes to chip makers mistakes, which led to vulns like Spectres, they are likely to affect several generations of chips anyway.