diff --git a/Makefile b/Makefile index 3a6388549..5cac7302c 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,10 @@ ifeq (,$(ARCH)) ARCH = $(shell uname -m) endif +ifeq ($(UNAME),aarch64) + CPUFLAGS += -DPAGESIZE=$(or $(shell getconf PAGESIZE),4096) +endif + # Target Dynarec WITH_DYNAREC ?= $(ARCH)