Play-/Source/ee/VuBasicBlock.h
Jean-Philip Desjardins 39d664357a Handle VU branching peculiarities found in Star Ocean 3.
Can probably be extended if we find other problematic cases.
2020-06-02 15:12:27 -04:00

34 lines
829 B
C++

#pragma once
#include "../BasicBlock.h"
class CVuBasicBlock : public CBasicBlock
{
public:
CVuBasicBlock(CMIPS&, uint32, uint32);
virtual ~CVuBasicBlock() = default;
bool IsLinkable() const;
protected:
void CompileRange(CMipsJitter*) override;
private:
struct INTEGER_BRANCH_DELAY_INFO
{
unsigned int regIndex = 0;
uint32 saveRegAddress = MIPS_INVALID_PC;
uint32 useRegAddress = MIPS_INVALID_PC;
};
static bool IsConditionalBranch(uint32);
static bool IsNonConditionalBranch(uint32);
INTEGER_BRANCH_DELAY_INFO GetIntegerBranchDelayInfo() const;
bool CheckIsSpecialIntegerLoop(unsigned int) const;
void ComputeSkipFlagsHints(const std::vector<uint32>&, std::vector<uint32>&) const;
std::vector<uint32> ComputeFmacStallDelays() const;
static void EmitXgKick(CMipsJitter*);
bool m_isLinkable = true;
};