Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1587 from davidgfnet/master
Browse files Browse the repository at this point in the history
Minor improvements for ARMv8
  • Loading branch information
davidgfnet authored May 9, 2019
2 parents 15c7e98 + 5ba5662 commit 1b89fcd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/rec-ARM64/rec_arm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1420,9 +1420,12 @@ class Arm64Assembler : public MacroAssembler
std::vector<const VRegister*> call_fregs;
Arm64RegAlloc regalloc;
RuntimeBlockInfo* block;
const int write_memory_rewrite_size = 3; // same size (fast write) for any size: add, bfc, str
#ifdef EXPLODE_SPANS
const int read_memory_rewrite_size = 6; // worst case for u64: add, bfc, ldr, fmov, lsr, fmov
// FIXME rewrite size per read/write size?
const int write_memory_rewrite_size = 3;
#else
const int read_memory_rewrite_size = 4; // worst case for u64: add, bfc, ldr, str
#endif
};

static Arm64Assembler* compiler;
Expand Down
10 changes: 10 additions & 0 deletions shell/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ ifeq (,$(platform))
else ifeq ($(ARCH), $(filter $(ARCH), x86_64 AMD64 amd64))
platform = x64
else ifneq (,$(findstring aarch64,$(ARCH)))
platform = arm64
HARDWARE = $(shell grep Hardware /proc/cpuinfo)
ifneq (,$(findstring Vero4K,$(HARDWARE)))
platform = vero4k
Expand Down Expand Up @@ -123,6 +124,15 @@ else ifneq (,$(findstring x64,$(platform)))
HAS_SOFTREND := 1
endif

# Generic 64 bit ARM (armv8) Linux
else ifneq (,$(findstring arm64,$(platform)))
NOT_ARM := 1
USE_X11 := 1
ARM64_REC := 1
ISARM64 := 1
CFLAGS += -D TARGET_LINUX_ARMv8 -D TARGET_NO_AREC -fno-builtin-sqrtf
CXXFLAGS += -fexceptions

# Generic 32 bit ARMhf (a.k.a. ARMv7h)
else ifneq (,$(findstring armv7h,$(platform)))
MFLAGS += -marm -mfloat-abi=hard -march=armv7-a -funroll-loops
Expand Down

0 comments on commit 1b89fcd

Please sign in to comment.