core & arch_x86: manipulate {,e,r}flags instead of flag