mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
fix gp2x regression
This commit is contained in:
parent
52055c13b2
commit
1fd8f98696
3 changed files with 4 additions and 4 deletions
|
@ -1248,7 +1248,7 @@ static void dr_activate_block(struct block_desc *bd, int tcache_id, int is_slave
|
||||||
bd->active = 1;
|
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;
|
struct block_entry *be = NULL;
|
||||||
void *block = NULL;
|
void *block = NULL;
|
||||||
|
|
|
@ -13,7 +13,7 @@ typedef enum {
|
||||||
typedef struct SH2_
|
typedef struct SH2_
|
||||||
{
|
{
|
||||||
// registers. this MUST correlate with enum sh2_reg_e.
|
// registers. this MUST correlate with enum sh2_reg_e.
|
||||||
unsigned int r[16]; // 00
|
unsigned int r[16] ALIGNED(32);
|
||||||
unsigned int pc; // 40
|
unsigned int pc; // 40
|
||||||
unsigned int ppc;
|
unsigned int ppc;
|
||||||
unsigned int pr;
|
unsigned int pr;
|
||||||
|
@ -80,7 +80,7 @@ typedef struct SH2_
|
||||||
|
|
||||||
unsigned char data_array[0x1000]; // cache (can be used as RAM)
|
unsigned char data_array[0x1000]; // cache (can be used as RAM)
|
||||||
unsigned int peri_regs[0x200/4]; // periphereal regs
|
unsigned int peri_regs[0x200/4]; // periphereal regs
|
||||||
} SH2 ALIGNED(32);
|
} SH2;
|
||||||
|
|
||||||
#define CYCLE_MULT_SHIFT 10
|
#define CYCLE_MULT_SHIFT 10
|
||||||
#define C_M68K_TO_SH2(xsh2, c) \
|
#define C_M68K_TO_SH2(xsh2, c) \
|
||||||
|
|
|
@ -48,7 +48,7 @@ get_define () # prefix struct member member...
|
||||||
line=$(printf "#define %-20s 0x%04x" $prefix$name $rodata)
|
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
|
# determine endianess
|
||||||
echo "const int val = 1;" >/tmp/getoffs.c
|
echo "const int val = 1;" >/tmp/getoffs.c
|
||||||
compile_rodata
|
compile_rodata
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue