2016-07-01 14:01:06 +01:00
|
|
|
/* This file is part of the dynarmic project.
|
|
|
|
* Copyright (c) 2016 MerryMage
|
|
|
|
* This software may be used and distributed according to the terms of the GNU
|
|
|
|
* General Public License version 2 or any later version.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Dynarmic {
|
|
|
|
namespace BackendX64 {
|
|
|
|
|
|
|
|
constexpr size_t SpillCount = 32;
|
|
|
|
|
|
|
|
struct JitState {
|
2016-07-04 10:22:11 +01:00
|
|
|
u32 Cpsr = 0;
|
2016-07-01 14:01:06 +01:00
|
|
|
std::array<u32, 16> Reg{}; // Current register file.
|
|
|
|
// TODO: Mode-specific register sets unimplemented.
|
|
|
|
|
2016-08-01 20:03:13 +01:00
|
|
|
u32 Fpscr = 0;
|
|
|
|
|
2016-07-01 14:01:06 +01:00
|
|
|
std::array<u32, SpillCount> Spill{}; // Spill.
|
|
|
|
|
|
|
|
// For internal use (See: Routines::RunCode)
|
2016-07-04 10:22:11 +01:00
|
|
|
u64 save_host_RSP = 0;
|
|
|
|
s64 cycles_remaining = 0;
|
2016-07-01 14:01:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
using CodePtr = const u8*;
|
|
|
|
|
|
|
|
} // namespace BackendX64
|
|
|
|
} // namespace Dynarmic
|