bd->active = 1;
}
-static void REGPARM(3) ALIGNED(32) *dr_lookup_block(u32 pc, SH2 *sh2, int *tcache_id)
+static void REGPARM(3) *dr_lookup_block(u32 pc, SH2 *sh2, int *tcache_id)
{
struct block_entry *be = NULL;
void *block = NULL;
typedef struct SH2_\r
{\r
// registers. this MUST correlate with enum sh2_reg_e.\r
- unsigned int r[16]; // 00\r
+ unsigned int r[16] ALIGNED(32);\r
unsigned int pc; // 40\r
unsigned int ppc;\r
unsigned int pr;\r
\r
unsigned char data_array[0x1000]; // cache (can be used as RAM)\r
unsigned int peri_regs[0x200/4]; // periphereal regs\r
-} SH2 ALIGNED(32);\r
+} SH2;\r
\r
#define CYCLE_MULT_SHIFT 10\r
#define C_M68K_TO_SH2(xsh2, c) \\r
line=$(printf "#define %-20s 0x%04x" $prefix$name $rodata)
}
-CFLAGS="$CFLAGS -fno-lto"
+if echo $CFLAGS | grep -qe -flto; then CFLAGS="$CFLAGS -fno-lto"; fi
# determine endianess
echo "const int val = 1;" >/tmp/getoffs.c
compile_rodata