mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
fix aarch64 build with gcc 11
This commit is contained in:
@ -483,12 +483,12 @@ void Compiler::LoadReg(int reg, ARM64Reg nativeReg)
|
|||||||
if (reg == 15)
|
if (reg == 15)
|
||||||
MOVI2R(nativeReg, R15);
|
MOVI2R(nativeReg, R15);
|
||||||
else
|
else
|
||||||
LDR(INDEX_UNSIGNED, nativeReg, RCPU, offsetof(ARM, R[reg]));
|
LDR(INDEX_UNSIGNED, nativeReg, RCPU, offsetof(ARM, R) + reg*4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Compiler::SaveReg(int reg, ARM64Reg nativeReg)
|
void Compiler::SaveReg(int reg, ARM64Reg nativeReg)
|
||||||
{
|
{
|
||||||
STR(INDEX_UNSIGNED, nativeReg, RCPU, offsetof(ARM, R[reg]));
|
STR(INDEX_UNSIGNED, nativeReg, RCPU, offsetof(ARM, R) + reg*4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Compiler::LoadCPSR()
|
void Compiler::LoadCPSR()
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
#include "Compat.h"
|
#include "Compat.h"
|
||||||
#include "Align.h"
|
#include "Align.h"
|
||||||
|
Reference in New Issue
Block a user