]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cpu_map: sync_qemu_i386.py: Allow begin mark to contain `const`
authorTim Wiederhake <twiederh@redhat.com>
Mon, 7 Jun 2021 12:01:24 +0000 (14:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 9 Jun 2021 09:57:00 +0000 (11:57 +0200)
This was introduced in qemu commit
e11fd68996fb27c040552320f01a7d30a15a7cc1.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/cpu_map/sync_qemu_i386.py

index 40c7d6e969459365002ae3832c595b895519db78..fbf1edf5d0b1beacab0224d56e81b3e36fe3350c 100755 (executable)
@@ -196,7 +196,7 @@ def read_builtin_x86_defs(filename):
     """Extract content between begin_mark and end_mark from file `filename` as
     string, while expanding shorthand macros like "I486_FEATURES"."""
 
-    begin_mark = re.compile("^static X86CPUDefinition builtin_x86_defs\\[\\] = {$")
+    begin_mark = re.compile("^static( const)? X86CPUDefinition builtin_x86_defs\\[\\] = {$")
     end_mark = "};\n"
     shorthand = re.compile("^#define ([A-Z0-9_]+_FEATURES) (.*)$")
     lines = list()