diff options
author | Vas Crabb <vas@vastheman.com> | 2021-01-18 01:42:28 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-01-18 01:42:28 +1100 |
commit | 6e1bbe8be89349038995df2aaa4f11019439e39e (patch) | |
tree | a7f53cb785df09e4e0fdabc659ddaa5893e5a8eb /makefile | |
parent | bb7b375aa64da9c408f8070fe11639f614582647 (diff) |
-osd: Clean up inline maths utilities.
* Removed inline assembly for operations compilers handle well.
* Added ARM and AArch64 implementation for a few operations.
* Added unsigned integer add with carry out operations.
-cpu/drccache.cpp: Detect whether RWX pages are supported.
-dynax.cpp: Improved a few hanafuda DIP switch descriptions.
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 44 |
1 files changed, 16 insertions, 28 deletions
@@ -362,58 +362,46 @@ WINDRES := $(word 1,$(TOOLCHAIN) i686-w64-mingw32-)windres endif endif -ifeq ($(findstring arm,$(UNAME)),arm) -ARCHITECTURE := -ifndef NOASM - NOASM := 1 -endif -endif - -ifeq ($(findstring aarch64,$(UNAME)),aarch64) +# Emscripten +ifeq ($(findstring emcc,$(CC)),emcc) +TARGETOS := asmjs ARCHITECTURE := ifndef NOASM NOASM := 1 endif endif -ifeq ($(findstring s390x,$(UNAME)),s390x) -ifndef NOASM - NOASM := 1 +ifeq ($(findstring ppc,$(UNAME)),ppc) +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 endif endif -ifeq ($(findstring riscv64,$(UNAME)),riscv64) -ARCHITECTURE := -ifndef NOASM - NOASM := 1 +ifeq ($(findstring powerpc,$(UNAME)),powerpc) +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 endif endif -# Emscripten -ifeq ($(findstring emcc,$(CC)),emcc) -TARGETOS := asmjs -ARCHITECTURE := -ifndef NOASM - NOASM := 1 +ifeq ($(findstring arm,$(UNAME)),arm) +ifndef FORCE_DRC_C_BACKEND + FORCE_DRC_C_BACKEND := 1 endif endif -# ppc has inline assembly support but no DRC -ifeq ($(findstring ppc,$(UNAME)),ppc) +ifeq ($(findstring aarch64,$(UNAME)),aarch64) ifndef FORCE_DRC_C_BACKEND FORCE_DRC_C_BACKEND := 1 endif endif -# powerpc has inline assembly support but no DRC -ifeq ($(findstring powerpc,$(UNAME)),powerpc) +ifeq ($(findstring s390x,$(UNAME)),s390x) ifndef FORCE_DRC_C_BACKEND - FORCE_DRC_C_BACKEND := 1 + FORCE_DRC_C_BACKEND := 1 endif endif -# ARM / ARM64 -ifeq ($(findstring arm,$(UNAME)),arm) +ifeq ($(findstring riscv64,$(UNAME)),riscv64) ifndef FORCE_DRC_C_BACKEND FORCE_DRC_C_BACKEND := 1 endif |