Skip to content

Commit 42c371f

Browse files
committed
Merge tag 'x86-build-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar: - Update the objdump & instruction decoder self-test code for better LLVM toolchain compatibility - Rework CONFIG_X86_PAE dependencies, for better readability and higher robustness. - Misc cleanups * tag 'x86-build-2024-01-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump x86/Kconfig: Rework CONFIG_X86_PAE dependency x86/tools: Remove chkobjdump.awk x86/tools: objdump_reformat.awk: Allow for spaces x86/tools: objdump_reformat.awk: Ensure regex matches fwait
2 parents f73857e + bcf7ef5 commit 42c371f

5 files changed

Lines changed: 11 additions & 41 deletions

File tree

arch/x86/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ config HIGHMEM4G
14151415

14161416
config HIGHMEM64G
14171417
bool "64GB"
1418-
depends on !M486SX && !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !MWINCHIP3D && !MK6
1418+
depends on X86_HAVE_PAE
14191419
select X86_PAE
14201420
help
14211421
Select this if you have a 32-bit processor and more than 4
@@ -1472,7 +1472,7 @@ config HIGHMEM
14721472

14731473
config X86_PAE
14741474
bool "PAE (Physical Address Extension) Support"
1475-
depends on X86_32 && !HIGHMEM4G
1475+
depends on X86_32 && X86_HAVE_PAE
14761476
select PHYS_ADDR_T_64BIT
14771477
select SWIOTLB
14781478
help

arch/x86/Kconfig.cpu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,13 @@ config X86_TSC
362362
def_bool y
363363
depends on (MWINCHIP3D || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2 || MATOM) || X86_64
364364

365+
config X86_HAVE_PAE
366+
def_bool y
367+
depends on MCRUSOE || MEFFICEON || MCYRIXIII || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC7 || MCORE2 || MATOM || X86_64
368+
365369
config X86_CMPXCHG64
366370
def_bool y
367-
depends on X86_PAE || X86_64 || MCORE2 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586TSC || M586MMX || MATOM || MGEODE_LX || MGEODEGX1 || MK6 || MK7 || MK8
371+
depends on X86_HAVE_PAE || M586TSC || M586MMX || MK6 || MK7
368372

369373
# this should be set for all -march=.. options where the compiler
370374
# generates cmov.

arch/x86/tools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ reformatter = $(srctree)/arch/x86/tools/objdump_reformat.awk
1717
chkobjdump = $(srctree)/arch/x86/tools/chkobjdump.awk
1818

1919
quiet_cmd_posttest = TEST $@
20-
cmd_posttest = ($(OBJDUMP) -v | $(AWK) -f $(chkobjdump)) || $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(reformatter) | $(obj)/insn_decoder_test $(posttest_64bit) $(posttest_verbose)
20+
cmd_posttest = $(OBJDUMP) -d -j .text $(objtree)/vmlinux | $(AWK) -f $(reformatter) | $(obj)/insn_decoder_test $(posttest_64bit) $(posttest_verbose)
2121

2222
quiet_cmd_sanitytest = TEST $@
2323
cmd_sanitytest = $(obj)/insn_sanity $(posttest_64bit) -m 1000000

arch/x86/tools/chkobjdump.awk

Lines changed: 0 additions & 34 deletions
This file was deleted.

arch/x86/tools/objdump_reformat.awk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ BEGIN {
1111
prev_addr = ""
1212
prev_hex = ""
1313
prev_mnemonic = ""
14-
bad_expr = "(\\(bad\\)|^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))"
15-
fwait_expr = "^9b "
14+
bad_expr = "(\\(bad\\)|<unknown>|^rex|^.byte|^rep(z|nz)$|^lock$|^es$|^cs$|^ss$|^ds$|^fs$|^gs$|^data(16|32)$|^addr(16|32|64))"
15+
fwait_expr = "^9b[ \t]*fwait"
1616
fwait_str="9b\tfwait"
1717
}
1818

@@ -22,7 +22,7 @@ BEGIN {
2222
}
2323

2424
/^ *[0-9a-f]+:/ {
25-
if (split($0, field, "\t") < 3) {
25+
if (split($0, field, /: |\t/) < 3) {
2626
# This is a continuation of the same insn.
2727
prev_hex = prev_hex field[2]
2828
} else {

0 commit comments

Comments
 (0)