target-i386: Make "level" and "xlevel" properties static
commitb9472b76d273c7796d877c49af50969c0a879c50
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 2 Apr 2015 20:21:53 +0000 (2 17:21 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 27 Apr 2015 18:40:22 +0000 (27 15:40 -0300)
tree489235d798523929fd28b7576b5fd5e041fea4dd
parentd9f7e29ee5a6915caa049ba64c0a9f28766351d2
target-i386: Make "level" and "xlevel" properties static

Static properties require only 1 line of code, much simpler than the
existing code that requires writing new getters/setters.

As a nice side-effect, this fixes an existing bug where the setters were
incorrectly allowing the properties to be changed after the CPU was
already realized.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c