33 lines
743 B
C
33 lines
743 B
C
|
/* 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 {
|
||
|
u32 Cpsr;
|
||
|
std::array<u32, 16> Reg{}; // Current register file.
|
||
|
// TODO: Mode-specific register sets unimplemented.
|
||
|
|
||
|
std::array<u32, SpillCount> Spill{}; // Spill.
|
||
|
|
||
|
// For internal use (See: Routines::RunCode)
|
||
|
u64 save_host_RSP;
|
||
|
s64 cycles_remaining;
|
||
|
};
|
||
|
|
||
|
using CodePtr = const u8*;
|
||
|
|
||
|
} // namespace BackendX64
|
||
|
} // namespace Dynarmic
|