core & arch_x86: improve the handling of address segment