aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/hal
diff options
context:
space:
mode:
authorJ08nY2020-03-09 13:03:06 +0100
committerJ08nY2020-03-09 13:03:06 +0100
commit279a859f221421057e54eb823d2993b2005c317e (patch)
tree3a440ca169ed1b80388cdcf253b9b400688bda91 /pyecsca/codegen/hal
parenta7d3589c4ba3551ab614dfc9c931c5998fbf7fac (diff)
downloadpyecsca-codegen-279a859f221421057e54eb823d2993b2005c317e.tar.gz
pyecsca-codegen-279a859f221421057e54eb823d2993b2005c317e.tar.zst
pyecsca-codegen-279a859f221421057e54eb823d2993b2005c317e.zip
NOP around point operations.
Diffstat (limited to 'pyecsca/codegen/hal')
-rw-r--r--pyecsca/codegen/hal/hal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyecsca/codegen/hal/hal.h b/pyecsca/codegen/hal/hal.h
index 51f9130..038415d 100644
--- a/pyecsca/codegen/hal/hal.h
+++ b/pyecsca/codegen/hal/hal.h
@@ -41,7 +41,13 @@ void platform_init(void);
#error "Unsupported HAL Type"
#endif
-#define NOP() __asm__ __volatile__ ("nop");
+
+#ifndef NO_NOP
+ #define NOP() __asm__ __volatile__ ("nop");
+#else
+ #define NOP()
+#endif
+
#define _2(a) a;a
#define NOP_2() _2(NOP())
#define NOP_4() _2(_2(NOP()))