From 5dc1761943193be869288689fad98aeef2a8e5af Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 6 Jan 2018 18:52:28 +0100 Subject: [PATCH] FIX: solution one, for more avx, avx2, avx512 https://github.com/Proxmark/proxmark3/pull/538/commits/ab0582d672e1c2cbb1a49652cc8358218f672244 --- client/Makefile | 2 +- client/hardnested/hardnested_bruteforce.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/Makefile b/client/Makefile index f2378a19e..f0075f560 100644 --- a/client/Makefile +++ b/client/Makefile @@ -223,7 +223,7 @@ SUPPORTS_AVX512 := $(shell echo | gcc -E -mavx512f - > /dev/null 2>&1 && echo " HARD_SWITCH_NOSIMD = -mno-mmx -mno-sse2 -mno-avx -mno-avx2 HARD_SWITCH_MMX = -mmmx -mno-sse2 -mno-avx -mno-avx2 -HARD_SWITCH_SSE2 = -mmmx -msse2 -mno-avx -mno-avx2 -mstackrealign +HARD_SWITCH_SSE2 = -mmmx -msse2 -mno-avx -mno-avx2 HARD_SWITCH_AVX = -mmmx -msse2 -mavx -mno-avx2 HARD_SWITCH_AVX2 = -mmmx -msse2 -mavx -mavx2 HARD_SWITCH_AVX512 = -mmmx -msse2 -mavx -mavx2 -mavx512f diff --git a/client/hardnested/hardnested_bruteforce.c b/client/hardnested/hardnested_bruteforce.c index 255cd7d57..9be5dc497 100644 --- a/client/hardnested/hardnested_bruteforce.c +++ b/client/hardnested/hardnested_bruteforce.c @@ -139,9 +139,7 @@ bool verify_key(uint32_t cuid, noncelist_t *nonces, uint8_t *best_first_bytes, u return true; } - -static void* crack_states_thread(void* x){ - +static void* __attribute__((force_align_arg_pointer)) crack_states_thread(void* x){ struct arg { bool silent; int thread_ID;