target-i386: Simplify listflags() function
commita3c2ca7d29ff39cd5b06e48fa1e42c91d05ebd36
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 3 Feb 2015 17:48:55 +0000 (3 15:48 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 25 Feb 2015 18:00:07 +0000 (25 15:00 -0300)
treec61b10f7ea26d32a4a571eb79e9d107f1f417da5
parent3d30395f7fb3315e4ecf0de4e48790e1326bbd47
target-i386: Simplify listflags() function

listflags() had lots of unnecessary complexity. Instead of printing to a
buffer that will be immediately printed, simply call the printing
function directly. Also, remove the fbits and flags arguments that were
always set to the same value. Also, there's no need to list the flags in
reverse order.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c