mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
preserve r9 for apple
This commit is contained in:
parent
f3fe3e5ba2
commit
2dbc96b1c7
2 changed files with 35 additions and 8 deletions
|
@ -270,6 +270,8 @@ typedef struct {
|
|||
#ifdef __arm__
|
||||
#include "../drc/emit_arm.c"
|
||||
|
||||
#ifndef __MACH__
|
||||
|
||||
static const int reg_map_g2h[] = {
|
||||
4, 5, 6, 7,
|
||||
8, -1, -1, -1,
|
||||
|
@ -279,6 +281,20 @@ static const int reg_map_g2h[] = {
|
|||
-1, -1, -1, -1, // SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL,
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
// no r9..
|
||||
static const int reg_map_g2h[] = {
|
||||
4, 5, 6, 7,
|
||||
-1, -1, -1, -1,
|
||||
-1, -1, -1, -1,
|
||||
-1, -1, -1, 8, // r12 .. sp
|
||||
-1, -1, -1, 10, // SHR_PC, SHR_PPC, SHR_PR, SHR_SR,
|
||||
-1, -1, -1, -1, // SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
static temp_reg_t reg_temp[] = {
|
||||
{ 0, },
|
||||
{ 1, },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue