]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Simplify listflags() function
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 3 Feb 2015 17:48:55 +0000 (15:48 -0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 9 Mar 2015 19:30:02 +0000 (16:30 -0300)
commit8c3329e50ad74245acbea89bdaa8af12ecf4972c
tree13e14bad1fadecbc23222876a1f40b887d0930f6
parent869b7649b534b51dd9e6ddbbdeb7397e083f527f
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