X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2Fconfig.h;h=6fc6571f1f1a08a1724e378b1b1ff610ee4c4cc1;hb=2270612aa7ee7d04549e95c2ab4d72f6aa67fa8d;hp=0fc96cb064018059055f31f408ce82fde4a7545e;hpb=cfb3dfa0f2a36569a6b090e87568b1a1c423f75c;p=picodrive.git diff --git a/cpu/Cyclone/config.h b/cpu/Cyclone/config.h index 0fc96cb..6fc6571 100644 --- a/cpu/Cyclone/config.h +++ b/cpu/Cyclone/config.h @@ -45,7 +45,7 @@ * MEMHANDLERS_NEED_PC updates .pc context field with PC value effective at the time * when memhandler was called (opcode address + unknown amount). * MEMHANDLERS_NEED_PREV_PC updates .prev_pc context field to currently executed - * opcode address. + * opcode address + 2. * Note that .pc and .prev_pc values are always real pointers to memory, so you must * subtract .membase to get M68k PC value. * Warning: updating PC in memhandlers is dangerous, as Cyclone may internally @@ -107,6 +107,19 @@ */ #define USE_CHECKPC_CALLBACK 1 +/* + * This determines if checkpc() should be called after jumps when 8 and 16 bit + * displacement values were used. + */ +#define USE_CHECKPC_OFFSETBITS_16 1 +#define USE_CHECKPC_OFFSETBITS_8 0 + +/* + * Call checkpc() after DBcc jumps (which use 16bit displacement). Cyclone prior to + * 0.0087 never did that. + */ +#define USE_CHECKPC_DBRA 0 + /* * When this option is enabled Cyclone will do two word writes instead of one * long write when handling MOVE.L with pre-decrementing destination, as described in