2012-11-01 15:19:01 +00:00
|
|
|
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
2012-11-04 22:01:49 +00:00
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2014-12-06 11:34:15 +00:00
|
|
|
#include "Common/CPUDetect.h"
|
2014-12-15 21:04:08 +00:00
|
|
|
#include "Common/ArmCommon.h"
|
2014-12-13 20:26:13 +00:00
|
|
|
#include "Common/ArmEmitter.h"
|
2013-11-08 17:51:52 +00:00
|
|
|
#include "Core/MIPS/JitCommon/JitState.h"
|
2013-04-26 21:58:20 +00:00
|
|
|
#include "Core/MIPS/JitCommon/JitBlockCache.h"
|
2016-05-01 08:35:37 +00:00
|
|
|
#include "Core/MIPS/JitCommon/JitCommon.h"
|
2013-04-26 21:58:20 +00:00
|
|
|
#include "Core/MIPS/ARM/ArmRegCache.h"
|
|
|
|
#include "Core/MIPS/ARM/ArmRegCacheFPU.h"
|
2014-12-13 20:11:36 +00:00
|
|
|
#include "Core/MIPS/MIPSVFPUUtils.h"
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2014-07-24 13:20:09 +00:00
|
|
|
#ifndef offsetof
|
2013-03-22 07:15:00 +00:00
|
|
|
#include "stddef.h"
|
|
|
|
#endif
|
|
|
|
|
2016-01-10 20:28:29 +00:00
|
|
|
namespace MIPSComp {
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2016-05-09 17:25:51 +00:00
|
|
|
class ArmJit : public ArmGen::ARMXCodeBlock, public JitInterface, public MIPSFrontendInterface {
|
2012-11-01 15:19:01 +00:00
|
|
|
public:
|
2021-02-26 04:20:36 +00:00
|
|
|
ArmJit(MIPSState *mipsState);
|
2014-12-13 20:11:36 +00:00
|
|
|
virtual ~ArmJit();
|
2013-12-10 12:06:57 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void DoState(PointerWrap &p) override;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2016-01-10 20:28:29 +00:00
|
|
|
const JitOptions &GetJitOptions() { return jo; }
|
|
|
|
|
2012-11-01 15:19:01 +00:00
|
|
|
// Compiled ops should ignore delay slots
|
|
|
|
// the compiler will take care of them by itself
|
|
|
|
// OR NOT
|
2016-04-30 23:20:21 +00:00
|
|
|
void Comp_Generic(MIPSOpcode op) override;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void RunLoopUntil(u64 globalticks) override;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void Compile(u32 em_address) override; // Compiles a block at current MIPS PC
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2019-02-12 09:58:20 +00:00
|
|
|
const u8 *GetCrashHandler() const override { return crashHandler; }
|
|
|
|
bool CodeInRange(const u8 *ptr) const override { return IsInSpace(ptr); }
|
2016-04-30 23:20:21 +00:00
|
|
|
bool DescribeCodePtr(const u8 *ptr, std::string &name) override;
|
2016-05-08 19:56:52 +00:00
|
|
|
MIPSOpcode GetOriginalOp(MIPSOpcode op) override;
|
2013-12-01 02:21:47 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void Comp_RunBlock(MIPSOpcode op) override;
|
|
|
|
void Comp_ReplacementFunc(MIPSOpcode op) override;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// Ops
|
2016-04-30 23:20:21 +00:00
|
|
|
void Comp_ITypeMem(MIPSOpcode op) override;
|
|
|
|
void Comp_Cache(MIPSOpcode op) override;
|
|
|
|
|
|
|
|
void Comp_RelBranch(MIPSOpcode op) override;
|
|
|
|
void Comp_RelBranchRI(MIPSOpcode op) override;
|
|
|
|
void Comp_FPUBranch(MIPSOpcode op) override;
|
|
|
|
void Comp_FPULS(MIPSOpcode op) override;
|
|
|
|
void Comp_FPUComp(MIPSOpcode op) override;
|
|
|
|
void Comp_Jump(MIPSOpcode op) override;
|
|
|
|
void Comp_JumpReg(MIPSOpcode op) override;
|
|
|
|
void Comp_Syscall(MIPSOpcode op) override;
|
|
|
|
void Comp_Break(MIPSOpcode op) override;
|
|
|
|
|
|
|
|
void Comp_IType(MIPSOpcode op) override;
|
|
|
|
void Comp_RType2(MIPSOpcode op) override;
|
|
|
|
void Comp_RType3(MIPSOpcode op) override;
|
|
|
|
void Comp_ShiftType(MIPSOpcode op) override;
|
|
|
|
void Comp_Allegrex(MIPSOpcode op) override;
|
|
|
|
void Comp_Allegrex2(MIPSOpcode op) override;
|
|
|
|
void Comp_VBranch(MIPSOpcode op) override;
|
|
|
|
void Comp_MulDivType(MIPSOpcode op) override;
|
|
|
|
void Comp_Special3(MIPSOpcode op) override;
|
|
|
|
|
|
|
|
void Comp_FPU3op(MIPSOpcode op) override;
|
|
|
|
void Comp_FPU2op(MIPSOpcode op) override;
|
|
|
|
void Comp_mxc1(MIPSOpcode op) override;
|
|
|
|
|
|
|
|
void Comp_DoNothing(MIPSOpcode op) override;
|
|
|
|
|
|
|
|
void Comp_SV(MIPSOpcode op) override;
|
|
|
|
void Comp_SVQ(MIPSOpcode op) override;
|
|
|
|
void Comp_VPFX(MIPSOpcode op) override;
|
|
|
|
void Comp_VVectorInit(MIPSOpcode op) override;
|
|
|
|
void Comp_VMatrixInit(MIPSOpcode op) override;
|
|
|
|
void Comp_VDot(MIPSOpcode op) override;
|
|
|
|
void Comp_VecDo3(MIPSOpcode op) override;
|
|
|
|
void Comp_VV2Op(MIPSOpcode op) override;
|
|
|
|
void Comp_Mftv(MIPSOpcode op) override;
|
|
|
|
void Comp_Vmfvc(MIPSOpcode op) override;
|
|
|
|
void Comp_Vmtvc(MIPSOpcode op) override;
|
|
|
|
void Comp_Vmmov(MIPSOpcode op) override;
|
|
|
|
void Comp_VScl(MIPSOpcode op) override;
|
|
|
|
void Comp_Vmmul(MIPSOpcode op) override;
|
|
|
|
void Comp_Vmscl(MIPSOpcode op) override;
|
|
|
|
void Comp_Vtfm(MIPSOpcode op) override;
|
|
|
|
void Comp_VHdp(MIPSOpcode op) override;
|
|
|
|
void Comp_VCrs(MIPSOpcode op) override;
|
|
|
|
void Comp_VDet(MIPSOpcode op) override;
|
|
|
|
void Comp_Vi2x(MIPSOpcode op) override;
|
|
|
|
void Comp_Vx2i(MIPSOpcode op) override;
|
|
|
|
void Comp_Vf2i(MIPSOpcode op) override;
|
|
|
|
void Comp_Vi2f(MIPSOpcode op) override;
|
|
|
|
void Comp_Vh2f(MIPSOpcode op) override;
|
|
|
|
void Comp_Vcst(MIPSOpcode op) override;
|
|
|
|
void Comp_Vhoriz(MIPSOpcode op) override;
|
|
|
|
void Comp_VRot(MIPSOpcode op) override;
|
|
|
|
void Comp_VIdt(MIPSOpcode op) override;
|
|
|
|
void Comp_Vcmp(MIPSOpcode op) override;
|
|
|
|
void Comp_Vcmov(MIPSOpcode op) override;
|
|
|
|
void Comp_Viim(MIPSOpcode op) override;
|
|
|
|
void Comp_Vfim(MIPSOpcode op) override;
|
|
|
|
void Comp_VCrossQuat(MIPSOpcode op) override;
|
|
|
|
void Comp_Vsgn(MIPSOpcode op) override;
|
|
|
|
void Comp_Vocp(MIPSOpcode op) override;
|
|
|
|
void Comp_ColorConv(MIPSOpcode op) override;
|
|
|
|
void Comp_Vbfy(MIPSOpcode op) override;
|
2013-02-19 23:03:47 +00:00
|
|
|
|
2013-11-19 15:25:38 +00:00
|
|
|
// Non-NEON: VPFX
|
|
|
|
|
|
|
|
// NEON implementations of the VFPU ops.
|
|
|
|
void CompNEON_SV(MIPSOpcode op);
|
|
|
|
void CompNEON_SVQ(MIPSOpcode op);
|
|
|
|
void CompNEON_VVectorInit(MIPSOpcode op);
|
|
|
|
void CompNEON_VMatrixInit(MIPSOpcode op);
|
|
|
|
void CompNEON_VDot(MIPSOpcode op);
|
|
|
|
void CompNEON_VecDo3(MIPSOpcode op);
|
|
|
|
void CompNEON_VV2Op(MIPSOpcode op);
|
|
|
|
void CompNEON_Mftv(MIPSOpcode op);
|
2014-09-02 06:13:07 +00:00
|
|
|
void CompNEON_Vmfvc(MIPSOpcode op);
|
2013-11-19 15:25:38 +00:00
|
|
|
void CompNEON_Vmtvc(MIPSOpcode op);
|
|
|
|
void CompNEON_Vmmov(MIPSOpcode op);
|
|
|
|
void CompNEON_VScl(MIPSOpcode op);
|
|
|
|
void CompNEON_Vmmul(MIPSOpcode op);
|
|
|
|
void CompNEON_Vmscl(MIPSOpcode op);
|
|
|
|
void CompNEON_Vtfm(MIPSOpcode op);
|
|
|
|
void CompNEON_VHdp(MIPSOpcode op);
|
|
|
|
void CompNEON_VCrs(MIPSOpcode op);
|
|
|
|
void CompNEON_VDet(MIPSOpcode op);
|
|
|
|
void CompNEON_Vi2x(MIPSOpcode op);
|
|
|
|
void CompNEON_Vx2i(MIPSOpcode op);
|
|
|
|
void CompNEON_Vf2i(MIPSOpcode op);
|
|
|
|
void CompNEON_Vi2f(MIPSOpcode op);
|
|
|
|
void CompNEON_Vh2f(MIPSOpcode op);
|
|
|
|
void CompNEON_Vcst(MIPSOpcode op);
|
|
|
|
void CompNEON_Vhoriz(MIPSOpcode op);
|
|
|
|
void CompNEON_VRot(MIPSOpcode op);
|
|
|
|
void CompNEON_VIdt(MIPSOpcode op);
|
|
|
|
void CompNEON_Vcmp(MIPSOpcode op);
|
|
|
|
void CompNEON_Vcmov(MIPSOpcode op);
|
|
|
|
void CompNEON_Viim(MIPSOpcode op);
|
|
|
|
void CompNEON_Vfim(MIPSOpcode op);
|
|
|
|
void CompNEON_VCrossQuat(MIPSOpcode op);
|
|
|
|
void CompNEON_Vsgn(MIPSOpcode op);
|
|
|
|
void CompNEON_Vocp(MIPSOpcode op);
|
2014-11-30 10:04:13 +00:00
|
|
|
void CompNEON_ColorConv(MIPSOpcode op);
|
2014-12-03 22:18:53 +00:00
|
|
|
void CompNEON_Vbfy(MIPSOpcode op);
|
2013-11-19 15:25:38 +00:00
|
|
|
|
2016-04-24 17:57:56 +00:00
|
|
|
int Replace_fabsf() override;
|
2013-11-19 15:25:38 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
JitBlockCache *GetBlockCache() override { return &blocks; }
|
2018-01-04 11:22:49 +00:00
|
|
|
JitBlockCacheDebugInterface *GetBlockCacheDebugInterface() override { return &blocks; }
|
2016-04-30 23:20:21 +00:00
|
|
|
|
2016-05-14 15:57:52 +00:00
|
|
|
std::vector<u32> SaveAndClearEmuHackOps() override { return blocks.SaveAndClearEmuHackOps(); }
|
|
|
|
void RestoreSavedEmuHackOps(std::vector<u32> saved) override { blocks.RestoreSavedEmuHackOps(saved); }
|
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void ClearCache() override;
|
|
|
|
void InvalidateCacheAt(u32 em_address, int length = 4) override;
|
2018-04-01 17:09:31 +00:00
|
|
|
void UpdateFCR31() override;
|
2012-12-28 23:09:17 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
void EatPrefix() override { js.EatPrefix(); }
|
2012-12-28 23:09:17 +00:00
|
|
|
|
2016-04-30 23:20:21 +00:00
|
|
|
const u8 *GetDispatcher() const override {
|
|
|
|
return dispatcher;
|
|
|
|
}
|
2021-02-09 08:38:03 +00:00
|
|
|
bool IsAtDispatchFetch(const u8 *ptr) const override {
|
|
|
|
return ptr == dispatcherFetch;
|
|
|
|
}
|
2013-02-17 23:50:31 +00:00
|
|
|
|
2016-05-01 08:25:01 +00:00
|
|
|
void LinkBlock(u8 *exitPoint, const u8 *checkedEntry) override;
|
|
|
|
void UnlinkBlock(u8 *checkedEntry, u32 originalAddress) override;
|
|
|
|
|
2012-12-28 23:09:17 +00:00
|
|
|
private:
|
2016-04-30 23:20:21 +00:00
|
|
|
const u8 *DoJit(u32 em_address, JitBlock *b);
|
|
|
|
|
2013-01-11 00:59:26 +00:00
|
|
|
void GenerateFixedCode();
|
2012-11-01 15:19:01 +00:00
|
|
|
void FlushAll();
|
2013-02-15 21:38:28 +00:00
|
|
|
void FlushPrefixV();
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2015-04-11 08:07:10 +00:00
|
|
|
u32 GetCompilerPC();
|
2015-04-11 07:52:42 +00:00
|
|
|
void CompileDelaySlot(int flags);
|
|
|
|
void EatInstruction(MIPSOpcode op);
|
|
|
|
void AddContinuedBlock(u32 dest);
|
|
|
|
MIPSOpcode GetOffsetInstruction(int offset);
|
|
|
|
|
2013-01-29 23:02:04 +00:00
|
|
|
void WriteDownCount(int offset = 0);
|
2014-12-07 13:44:15 +00:00
|
|
|
void WriteDownCountR(ArmGen::ARMReg reg);
|
2014-10-12 18:34:26 +00:00
|
|
|
void RestoreRoundingMode(bool force = false);
|
|
|
|
void ApplyRoundingMode(bool force = false);
|
2018-04-01 17:36:16 +00:00
|
|
|
void UpdateRoundingMode(u32 fcr31 = -1);
|
2014-12-07 13:44:15 +00:00
|
|
|
void MovFromPC(ArmGen::ARMReg r);
|
|
|
|
void MovToPC(ArmGen::ARMReg r);
|
2012-11-23 18:41:35 +00:00
|
|
|
|
2013-12-18 23:39:49 +00:00
|
|
|
bool ReplaceJalTo(u32 dest);
|
|
|
|
|
2013-07-27 15:27:26 +00:00
|
|
|
void SaveDowncount();
|
|
|
|
void RestoreDowncount();
|
|
|
|
|
2012-11-01 15:19:01 +00:00
|
|
|
void WriteExit(u32 destination, int exit_num);
|
2014-12-07 13:44:15 +00:00
|
|
|
void WriteExitDestInR(ArmGen::ARMReg Reg);
|
2012-11-01 15:19:01 +00:00
|
|
|
void WriteSyscallExit();
|
2018-05-02 14:03:23 +00:00
|
|
|
bool CheckJitBreakpoint(u32 addr, int downcountOffset);
|
|
|
|
bool CheckMemoryBreakpoint(int instructionOffset = 0);
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// Utility compilation functions
|
2014-12-15 21:04:08 +00:00
|
|
|
void BranchFPFlag(MIPSOpcode op, CCFlags cc, bool likely);
|
|
|
|
void BranchVFPUFlag(MIPSOpcode op, CCFlags cc, bool likely);
|
|
|
|
void BranchRSZeroComp(MIPSOpcode op, CCFlags cc, bool andLink, bool likely);
|
|
|
|
void BranchRSRTComp(MIPSOpcode op, CCFlags cc, bool likely);
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
// Utilities to reduce duplicated code
|
2014-12-07 13:44:15 +00:00
|
|
|
void CompImmLogic(MIPSGPReg rs, MIPSGPReg rt, u32 uimm, void (ARMXEmitter::*arith)(ArmGen::ARMReg dst, ArmGen::ARMReg src, ArmGen::Operand2 op2), bool (ARMXEmitter::*tryArithI2R)(ArmGen::ARMReg dst, ArmGen::ARMReg src, u32 val), u32 (*eval)(u32 a, u32 b));
|
|
|
|
void CompType3(MIPSGPReg rd, MIPSGPReg rs, MIPSGPReg rt, void (ARMXEmitter::*arithOp2)(ArmGen::ARMReg dst, ArmGen::ARMReg rm, ArmGen::Operand2 rn), bool (ARMXEmitter::*tryArithI2R)(ArmGen::ARMReg dst, ArmGen::ARMReg rm, u32 val), u32 (*eval)(u32 a, u32 b), bool symmetric = false);
|
2013-03-09 23:48:44 +00:00
|
|
|
|
2013-11-10 17:35:09 +00:00
|
|
|
void CompShiftImm(MIPSOpcode op, ArmGen::ShiftType shiftType, int sa);
|
2013-08-24 21:43:49 +00:00
|
|
|
void CompShiftVar(MIPSOpcode op, ArmGen::ShiftType shiftType);
|
2014-12-07 10:58:19 +00:00
|
|
|
void CompVrotShuffle(u8 *dregs, int imm, VectorSize sz, bool negSin);
|
2013-01-29 23:02:04 +00:00
|
|
|
|
2013-02-19 23:03:47 +00:00
|
|
|
void ApplyPrefixST(u8 *vregs, u32 prefix, VectorSize sz);
|
|
|
|
void ApplyPrefixD(const u8 *vregs, VectorSize sz);
|
|
|
|
void GetVectorRegsPrefixS(u8 *regs, VectorSize sz, int vectorReg) {
|
2013-11-09 23:58:27 +00:00
|
|
|
_assert_(js.prefixSFlag & JitState::PREFIX_KNOWN);
|
2013-02-19 23:03:47 +00:00
|
|
|
GetVectorRegs(regs, sz, vectorReg);
|
|
|
|
ApplyPrefixST(regs, js.prefixS, sz);
|
|
|
|
}
|
|
|
|
void GetVectorRegsPrefixT(u8 *regs, VectorSize sz, int vectorReg) {
|
2013-11-09 23:58:27 +00:00
|
|
|
_assert_(js.prefixTFlag & JitState::PREFIX_KNOWN);
|
2013-02-19 23:03:47 +00:00
|
|
|
GetVectorRegs(regs, sz, vectorReg);
|
|
|
|
ApplyPrefixST(regs, js.prefixT, sz);
|
|
|
|
}
|
|
|
|
void GetVectorRegsPrefixD(u8 *regs, VectorSize sz, int vectorReg);
|
|
|
|
|
2014-12-06 11:34:15 +00:00
|
|
|
|
|
|
|
// For NEON mappings, it will be easier to deal directly in ARM registers.
|
|
|
|
|
2014-12-07 13:44:15 +00:00
|
|
|
ArmGen::ARMReg NEONMapPrefixST(int vfpuReg, VectorSize sz, u32 prefix, int mapFlags);
|
|
|
|
ArmGen::ARMReg NEONMapPrefixS(int vfpuReg, VectorSize sz, int mapFlags) {
|
2014-12-06 11:34:15 +00:00
|
|
|
return NEONMapPrefixST(vfpuReg, sz, js.prefixS, mapFlags);
|
|
|
|
}
|
2014-12-07 13:44:15 +00:00
|
|
|
ArmGen::ARMReg NEONMapPrefixT(int vfpuReg, VectorSize sz, int mapFlags) {
|
2014-12-06 11:34:15 +00:00
|
|
|
return NEONMapPrefixST(vfpuReg, sz, js.prefixT, mapFlags);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct DestARMReg {
|
2014-12-07 13:44:15 +00:00
|
|
|
ArmGen::ARMReg rd;
|
|
|
|
ArmGen::ARMReg backingRd;
|
2014-12-06 11:34:15 +00:00
|
|
|
VectorSize sz;
|
|
|
|
|
2014-12-07 13:44:15 +00:00
|
|
|
operator ArmGen::ARMReg() const { return rd; }
|
2014-12-06 11:34:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct MappedRegs {
|
2014-12-07 13:44:15 +00:00
|
|
|
ArmGen::ARMReg vs;
|
|
|
|
ArmGen::ARMReg vt;
|
2014-12-06 11:34:15 +00:00
|
|
|
DestARMReg vd;
|
|
|
|
bool overlap;
|
|
|
|
};
|
|
|
|
|
|
|
|
MappedRegs NEONMapDirtyInIn(MIPSOpcode op, VectorSize dsize, VectorSize ssize, VectorSize tsize, bool applyPrefixes = true);
|
|
|
|
MappedRegs NEONMapInIn(MIPSOpcode op, VectorSize ssize, VectorSize tsize, bool applyPrefixes = true);
|
|
|
|
MappedRegs NEONMapDirtyIn(MIPSOpcode op, VectorSize dsize, VectorSize ssize, bool applyPrefixes = true);
|
|
|
|
|
|
|
|
DestARMReg NEONMapPrefixD(int vfpuReg, VectorSize sz, int mapFlags);
|
|
|
|
void NEONApplyPrefixD(DestARMReg dest);
|
|
|
|
|
|
|
|
// NEON utils
|
2014-12-07 13:44:15 +00:00
|
|
|
void NEONMaskToSize(ArmGen::ARMReg vs, VectorSize sz);
|
|
|
|
void NEONTranspose4x4(ArmGen::ARMReg cols[4]);
|
2014-12-06 11:34:15 +00:00
|
|
|
|
2013-01-25 18:50:30 +00:00
|
|
|
// Utils
|
2013-11-09 02:51:49 +00:00
|
|
|
void SetR0ToEffectiveAddress(MIPSGPReg rs, s16 offset);
|
2014-12-07 13:44:15 +00:00
|
|
|
void SetCCAndR0ForSafeAddress(MIPSGPReg rs, s16 offset, ArmGen::ARMReg tempReg, bool reverse = false);
|
2013-11-09 09:09:38 +00:00
|
|
|
void Comp_ITypeMemLR(MIPSOpcode op, bool load);
|
2013-01-25 18:50:30 +00:00
|
|
|
|
2013-04-26 21:58:20 +00:00
|
|
|
JitBlockCache blocks;
|
2015-04-12 18:41:26 +00:00
|
|
|
JitOptions jo;
|
2013-11-08 17:51:52 +00:00
|
|
|
JitState js;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2012-11-23 18:41:35 +00:00
|
|
|
ArmRegCache gpr;
|
2013-02-10 14:53:56 +00:00
|
|
|
ArmRegCacheFPU fpr;
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
MIPSState *mips_;
|
2013-01-11 00:59:26 +00:00
|
|
|
|
2013-07-30 20:25:08 +00:00
|
|
|
int dontLogBlocks;
|
|
|
|
int logBlocks;
|
|
|
|
|
2013-01-11 23:44:18 +00:00
|
|
|
public:
|
2013-01-11 00:59:26 +00:00
|
|
|
// Code pointers
|
2015-10-08 17:58:37 +00:00
|
|
|
const u8 *enterDispatcher;
|
2013-01-11 00:59:26 +00:00
|
|
|
|
|
|
|
const u8 *outerLoop;
|
2013-02-13 23:02:09 +00:00
|
|
|
const u8 *outerLoopPCInR0;
|
2013-01-11 00:59:26 +00:00
|
|
|
const u8 *dispatcherCheckCoreState;
|
2013-02-15 22:33:35 +00:00
|
|
|
const u8 *dispatcherPCInR0;
|
2013-01-11 00:59:26 +00:00
|
|
|
const u8 *dispatcher;
|
2021-02-09 08:38:03 +00:00
|
|
|
const u8 *dispatcherFetch;
|
2013-01-11 00:59:26 +00:00
|
|
|
const u8 *dispatcherNoCheck;
|
|
|
|
|
2015-10-08 17:58:37 +00:00
|
|
|
const u8 *restoreRoundingMode;
|
|
|
|
const u8 *applyRoundingMode;
|
2019-02-12 09:58:20 +00:00
|
|
|
|
|
|
|
const u8 *crashHandler;
|
2012-11-01 15:19:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MIPSComp
|
|
|
|
|