CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/Core/MIPS/JitCommon/JitState.cpp
Views: 1401
// Copyright (c) 2013- PPSSPP Project.12// This program is free software: you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation, version 2.0 or later versions.56// This program is distributed in the hope that it will be useful,7// but WITHOUT ANY WARRANTY; without even the implied warranty of8// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9// GNU General Public License 2.0 for more details.1011// A copy of the GPL 2.0 should have been included with the program.12// If not, see http://www.gnu.org/licenses/1314// Official git repository and contact information can be found at15// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.1617#include "ppsspp_config.h"18#include "Common/CPUDetect.h"19#include "Core/Config.h"20#include "Core/MIPS/JitCommon/JitState.h"21#include "Common/MemoryUtil.h"2223namespace MIPSComp {24JitOptions::JitOptions() {25disableFlags = g_Config.uJitDisableFlags;2627// x8628enableVFPUSIMD = !Disabled(JitDisable::SIMD);29// Set by Asm if needed.30reserveR15ForAsm = false;3132// ARM/ARM6433useBackJump = false;34useForwardJump = false;35cachePointers = !Disabled(JitDisable::CACHE_POINTERS);3637// ARM only38downcountInRegister = true;39useNEONVFPU = false; // true40if (Disabled(JitDisable::SIMD))41useNEONVFPU = false;4243//ARM6444useASIMDVFPU = false; // !Disabled(JitDisable::SIMD);4546// Common4748// We can get block linking to work with W^X by doing even more unprotect/re-protect, but let's try without first.49// enableBlocklink = !PlatformIsWXExclusive(); // Revert to this line if block linking is slow in W^X mode50#if PPSSPP_ARCH(MIPS)51enableBlocklink = false;52#else53enableBlocklink = !Disabled(JitDisable::BLOCKLINK);54#endif55immBranches = false;56continueBranches = false;57continueJumps = false;58continueMaxInstructions = 300;5960useStaticAlloc = false;61enablePointerify = false;62#if PPSSPP_ARCH(ARM64) || PPSSPP_ARCH(RISCV64)63useStaticAlloc = !Disabled(JitDisable::STATIC_ALLOC);64// iOS/etc. may disable at runtime if Memory::base is not nicely aligned.65enablePointerify = !Disabled(JitDisable::POINTERIFY);66#endif67#if PPSSPP_ARCH(RISCV64)68// Seems to perform slightly better than a checked entry at the start.69useBackJump = true;70#endif71}7273bool JitOptions::Disabled(JitDisable bit) {74return (disableFlags & (uint32_t)bit) != 0;75}76}777879