target-i386: Simplify listflags() function