target-i386: Make "level" and "xlevel" properties static

Enterprise / Virtualization / QEMU - Eduardo Habkost [redhat.com] - 27 April 2015 13:40 UTC

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.

b9472b7 target-i386: Make "level" and "xlevel" properties static
target-i386/cpu.c | 40 ++--------------------------------------
1 file changed, 2 insertions(+), 38 deletions(-)

Upstream: git.qemu.org


  • Share