Cyclone: direct memhandler calls option + reset function
[picodrive.git] / cpu / Cyclone / config.h
index e180490..d73b5b5 100644 (file)
 #define MEMHANDLERS_CHANGE_FLAGS    0\r
 #define MEMHANDLERS_CHANGE_CYCLES   0\r
 \r
+/*\r
+ * If the following macro is defined, Cyclone no longer calls read*, write*,\r
+ * fetch* and checkpc from it's context, it calls these functions directly\r
+ * instead, prefixed with prefix selected below. For example, if\r
+ * MEMHANDLERS_DIRECT_PREFIX is set to cyclone_, it will call cyclone_read8\r
+ * on byte reads.\r
+ * This is to avoid indirect jumps, which are slower. It also saves one ARM\r
+ * instruction.\r
+ */\r
+/* MEMHANDLERS_DIRECT_PREFIX "cyclone_" */\r
+\r
 /*\r
  * If enabled, Cyclone will call .IrqCallback routine from it's context whenever it\r
  * acknowledges an IRQ. IRQ level (.irq) is not cleared automatically, do this in your\r