mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 21:55:06 +01:00
backend/x64: Move spill from JitState onto the stack
This commit is contained in:
parent
f8d8ea0deb
commit
ddbc50cee0
11 changed files with 52 additions and 40 deletions
22
src/backend/x64/stack_layout.h
Normal file
22
src/backend/x64/stack_layout.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* This file is part of the dynarmic project.
|
||||
* Copyright (c) 2016 MerryMage
|
||||
* SPDX-License-Identifier: 0BSD
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Dynarmic::Backend::X64 {
|
||||
|
||||
constexpr size_t SpillCount = 64;
|
||||
|
||||
struct alignas(16) StackLayout {
|
||||
std::array<std::array<u64, 2>, SpillCount> spill;
|
||||
};
|
||||
|
||||
static_assert(sizeof(StackLayout) % 16 == 0);
|
||||
|
||||
} // namespace Dynarmic::Backend::X64
|
||||
Loading…
Add table
Add a link
Reference in a new issue