x86/gen-cpuid: Fix Py2/3 compatibility
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Feb 2020 15:43:55 +0000 (15:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 26 Feb 2020 12:13:10 +0000 (12:13 +0000)
commit6094a3c4fee1976110c93341b9ef3f09d37606ab
tree876a9e9c44a12ee9719b2abaea95d791b3a1a9d7
parent102b439f910e761bf92eed9fdf45d49bc6fba5d4
x86/gen-cpuid: Fix Py2/3 compatibility

There is a fencepost error on the sys.version_info check which will break on
Python 3.0.  Reverse the logic to make py2 compatible with py3 (rather than
py3 compatible with py2) which will be more natural to follow as py2 usage
reduces.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
xen/tools/gen-cpuid.py