From 60e1fddca7634917a56bcc4cb43bbbee08eb136a Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 22 Nov 2020 16:48:22 +0100 Subject: [PATCH 1/2] Ensure that the same (large) BUFFERSIZE is used for all cpus in DYNAMIC_ARCH builds --- common_power.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common_power.h b/common_power.h index a61e4e28a..6fb2af30a 100644 --- a/common_power.h +++ b/common_power.h @@ -849,6 +849,10 @@ Lmcount$lazy_ptr: #else #define BUFFER_SIZE ( 16 << 20) #endif +#ifeq ($(DYNAMIC_ARCH), 1) +#undefine BUFFER_SIZE +#define BUFFER_SIZE (64 << 22) +#endif #ifndef PAGESIZE #define PAGESIZE ( 4 << 10) From 02562949218dded905b100cff21eae15364598ce Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 22 Nov 2020 17:41:44 +0100 Subject: [PATCH 2/2] Fix syntax mixup --- common_power.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common_power.h b/common_power.h index 6fb2af30a..a49197fd7 100644 --- a/common_power.h +++ b/common_power.h @@ -849,8 +849,8 @@ Lmcount$lazy_ptr: #else #define BUFFER_SIZE ( 16 << 20) #endif -#ifeq ($(DYNAMIC_ARCH), 1) -#undefine BUFFER_SIZE +#ifdef DYNAMIC_ARCH +#undef BUFFER_SIZE #define BUFFER_SIZE (64 << 22) #endif