arch_x86: add semantic for pusha(d)/popa(d), implement set flags