fix gp2x regression

This commit is contained in:
kub 2019-10-18 00:16:54 +02:00
parent 52055c13b2
commit 1fd8f98696
3 changed files with 4 additions and 4 deletions

View file

@ -1248,7 +1248,7 @@ static void dr_activate_block(struct block_desc *bd, int tcache_id, int is_slave
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;

View file

@ -13,7 +13,7 @@ typedef enum {
typedef struct SH2_
{
// 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 ppc;
unsigned int pr;
@ -80,7 +80,7 @@ typedef struct SH2_
unsigned char data_array[0x1000]; // cache (can be used as RAM)
unsigned int peri_regs[0x200/4]; // periphereal regs
} SH2 ALIGNED(32);
} SH2;
#define CYCLE_MULT_SHIFT 10
#define C_M68K_TO_SH2(xsh2, c) \