x86: Do sanity test on pirq table before writing