You are welcome to improve the CPU cores (or review my DIFFs)
I like the idea that NMOS and CMOS CPUs could be defined or set from within the driver. This would make sense for both I86 and Z80.
IMHO, not disabling IRQs after POP SS / MOV SREG is a crystal clear CPU bug that Intel recognized and fixed after 1979 (still NMOS).
Should we really emulate behaviour that makes drivers crash prone? If i am correct, even Ashton Tate warned early IBM-PC users about faulty CPUs.