Change sreg type to cpuflags_t.