mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-14 19:09:59 +01:00
Removes unnecessary header dependencies that have accumulated over time as changes have been made. Lessens the amount of files that need to be rebuilt when the headers change.
43 lines
1.6 KiB
C++
43 lines
1.6 KiB
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 <cstddef>
|
|
|
|
namespace Dynarmic::BackendX64 {
|
|
|
|
struct JitStateInfo {
|
|
template <typename JitStateType>
|
|
JitStateInfo(const JitStateType&)
|
|
: offsetof_cycles_remaining(offsetof(JitStateType, cycles_remaining))
|
|
, offsetof_cycles_to_run(offsetof(JitStateType, cycles_to_run))
|
|
, offsetof_save_host_MXCSR(offsetof(JitStateType, save_host_MXCSR))
|
|
, offsetof_guest_MXCSR(offsetof(JitStateType, guest_MXCSR))
|
|
, offsetof_rsb_ptr(offsetof(JitStateType, rsb_ptr))
|
|
, rsb_ptr_mask(JitStateType::RSBPtrMask)
|
|
, offsetof_rsb_location_descriptors(offsetof(JitStateType, rsb_location_descriptors))
|
|
, offsetof_rsb_codeptrs(offsetof(JitStateType, rsb_codeptrs))
|
|
, offsetof_cpsr_nzcv(offsetof(JitStateType, cpsr_nzcv))
|
|
, offsetof_fpsr_exc(offsetof(JitStateType, fpsr_exc))
|
|
, offsetof_fpsr_qc(offsetof(JitStateType, fpsr_qc))
|
|
{}
|
|
|
|
const size_t offsetof_cycles_remaining;
|
|
const size_t offsetof_cycles_to_run;
|
|
const size_t offsetof_save_host_MXCSR;
|
|
const size_t offsetof_guest_MXCSR;
|
|
const size_t offsetof_rsb_ptr;
|
|
const size_t rsb_ptr_mask;
|
|
const size_t offsetof_rsb_location_descriptors;
|
|
const size_t offsetof_rsb_codeptrs;
|
|
const size_t offsetof_cpsr_nzcv;
|
|
const size_t offsetof_fpsr_exc;
|
|
const size_t offsetof_fpsr_qc;
|
|
};
|
|
|
|
} // namespace Dynarmic::BackendX64
|