Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dolphin/Source/Core/Core/PowerPC/Jit64Common/Jit64Constants.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (19 sloc)
813 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright 2016 Dolphin Emulator Project | |
| // Licensed under GPLv2+ | |
| // Refer to the license.txt file included. | |
| #pragma once | |
| #include <cstddef> | |
| #include "Common/x64Reg.h" | |
| // RSCRATCH and RSCRATCH2 are always scratch registers and can be used without | |
| // limitation. | |
| constexpr Gen::X64Reg RSCRATCH = Gen::RAX; | |
| constexpr Gen::X64Reg RSCRATCH2 = Gen::RDX; | |
| // RSCRATCH_EXTRA may be in the allocation order, so it has to be flushed | |
| // before use. | |
| constexpr Gen::X64Reg RSCRATCH_EXTRA = Gen::RCX; | |
| // RMEM points to the start of emulated memory. | |
| constexpr Gen::X64Reg RMEM = Gen::RBX; | |
| // RPPCSTATE points to ppcState + 0x80. It's offset because we want to be able | |
| // to address as much as possible in a one-byte offset form. | |
| constexpr Gen::X64Reg RPPCSTATE = Gen::RBP; | |
| constexpr size_t CODE_SIZE = 1024 * 1024 * 32; |