mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 09:50:15 +00:00
fixup! JitState: Should be final and should have initial values
This commit is contained in:
parent
ecb66ecdec
commit
cf24142769
@ -25,7 +25,7 @@ using Cond = ArmDecoder::Cond;
|
|||||||
using ShiftType = ArmDecoder::ShiftType;
|
using ShiftType = ArmDecoder::ShiftType;
|
||||||
using SignExtendRotation = ArmDecoder::SignExtendRotation;
|
using SignExtendRotation = ArmDecoder::SignExtendRotation;
|
||||||
|
|
||||||
struct JitState {
|
struct JitState final {
|
||||||
JitState() : cpu_state(PrivilegeMode::USER32MODE) {}
|
JitState() : cpu_state(PrivilegeMode::USER32MODE) {}
|
||||||
void Reset() {
|
void Reset() {
|
||||||
cpu_state.Reset();
|
cpu_state.Reset();
|
||||||
@ -33,10 +33,12 @@ struct JitState {
|
|||||||
|
|
||||||
ARMul_State cpu_state;
|
ARMul_State cpu_state;
|
||||||
|
|
||||||
u64 save_host_RSP;
|
/// This value should always be appropriately aligned for a CALL instruction to be made.
|
||||||
u64 return_RIP;
|
u64 save_host_RSP = 0;
|
||||||
|
/// Jitted code will JMP to this value when done. Should contain the an address which returns to the dispatcher.
|
||||||
s32 cycles_remaining;
|
u64 return_RIP = 0;
|
||||||
|
/// If this value becomes <= 0, jitted code will jump to return_RIP.
|
||||||
|
s32 cycles_remaining = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr bool IsValidArmReg(ArmReg arm_reg) {
|
constexpr bool IsValidArmReg(ArmReg arm_reg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user