The series introduces a way to build the tests with generic i686-pc-elf and x86_64-pc-elf GCC target. It also fixes build on macOS and introduces a way to specify enhanced getopt. Build instructions for macOS have been updated to reflect the changes. Roman Bolshakov (7): x86: Makefile: Allow division on x86_64-elf binutils x86: Replace instruction prefixes with spaces x86: Makefile: Fix linkage of realmode on x86_64-elf binutils lib: Bundle debugreg.h from the kernel lib: x86: Use portable format macros for uint32_t configure: Add an option to specify getopt README: Update build instructions for macOS README.macOS.md | 71 +++++++++++++++++++++++++----------- configure | 13 +++++++ lib/pci.c | 2 +- lib/x86/asm/debugreg.h | 81 ++++++++++++++++++++++++++++++++++++++++++ run_tests.sh | 2 +- x86/Makefile | 2 ++ x86/Makefile.common | 3 +- x86/asyncpf.c | 2 +- x86/cstart.S | 4 +-- x86/cstart64.S | 4 +-- x86/emulator.c | 38 ++++++++++---------- x86/msr.c | 3 +- x86/s3.c | 2 +- 13 files changed, 178 insertions(+), 49 deletions(-) create mode 100644 lib/x86/asm/debugreg.h -- 2.26.1