Skip to content

Commit

Permalink
linux: get page size at build time
Browse files Browse the repository at this point in the history
fixes RPi 5 16 KB page size, not working if cross-compiling
  • Loading branch information
jonian committed Jun 22, 2024
1 parent 6891139 commit 3fd6e6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ ifeq (,$(ARCH))
ARCH = $(shell uname -m)
endif

ifeq ($(shell uname -m),aarch64)
CPUFLAGS += -DPAGESIZE=$(or $(shell getconf PAGESIZE),4096)
endif

# Target Dynarec
WITH_DYNAREC ?= $(ARCH)

Expand Down

0 comments on commit 3fd6e6b

Please sign in to comment.