]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/xtensa/import_core.sh: don't add duplicate 'static'
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 7 Dec 2018 23:58:39 +0000 (15:58 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 9 Feb 2019 03:37:45 +0000 (19:37 -0800)
xtensa-modules.c produced by recent Tensilica tools have
Opcode_*_encode_fns arrays defined as static. Don't add extra 'static'
in front of them when importing.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
target/xtensa/import_core.sh

index 039406bf28fa0dd327136ae119257b830079f254..e4a2e39f63533a4314059c2d5c9797c50f234a30 100755 (executable)
@@ -27,7 +27,7 @@ tar -xf "$OVERLAY" -O gdb/xtensa-config.c | \
 # Fix up known issues in the xtensa-modules.c
 #
 tar -xf "$OVERLAY" -O binutils/xtensa-modules.c | \
-    sed -e 's/\(xtensa_opcode_encode_fn.*\[\] =\)/static \1/' \
+    sed -e 's/^\(xtensa_opcode_encode_fn.*\[\] =\)/static \1/' \
         -e '/^int num_bypass_groups()/,/}/d' \
         -e '/^int num_bypass_group_chunks()/,/}/d' \
         -e '/^uint32 \*bypass_entry(int i)/,/}/d' \