mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
jit: Minor cleanups.
This commit is contained in:
parent
b4dd094f56
commit
0fc774927f
6 changed files with 18 additions and 18 deletions
|
@ -136,7 +136,7 @@ namespace MIPSComp
|
||||||
// Prefix may say "z, z, z, z" but if this is a pair, we force to x.
|
// Prefix may say "z, z, z, z" but if this is a pair, we force to x.
|
||||||
// TODO: But some ops seem to use const 0 instead?
|
// TODO: But some ops seem to use const 0 instead?
|
||||||
if (regnum >= n) {
|
if (regnum >= n) {
|
||||||
WARN_LOG(CPU, "JIT: Invalid VFPU swizzle: %08x : %d / %d at PC = %08x (%s)", prefix, regnum, n, GetCompilerPC(), MIPSDisasmAt(js.compilerPC));
|
WARN_LOG(CPU, "JIT: Invalid VFPU swizzle: %08x : %d / %d at PC = %08x (%s)", prefix, regnum, n, GetCompilerPC(), MIPSDisasmAt(GetCompilerPC()));
|
||||||
regnum = 0;
|
regnum = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,9 @@
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace MIPSComp
|
namespace MIPSComp {
|
||||||
{
|
|
||||||
|
|
||||||
class ArmJit : public ArmGen::ARMXCodeBlock
|
class ArmJit : public ArmGen::ARMXCodeBlock {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
ArmJit(MIPSState *mips);
|
ArmJit(MIPSState *mips);
|
||||||
virtual ~ArmJit();
|
virtual ~ArmJit();
|
||||||
|
@ -42,6 +40,8 @@ public:
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
static void DoDummyState(PointerWrap &p);
|
static void DoDummyState(PointerWrap &p);
|
||||||
|
|
||||||
|
const JitOptions &GetJitOptions() { return jo; }
|
||||||
|
|
||||||
// Compiled ops should ignore delay slots
|
// Compiled ops should ignore delay slots
|
||||||
// the compiler will take care of them by itself
|
// the compiler will take care of them by itself
|
||||||
// OR NOT
|
// OR NOT
|
||||||
|
|
|
@ -129,7 +129,7 @@ namespace MIPSComp {
|
||||||
// Prefix may say "z, z, z, z" but if this is a pair, we force to x.
|
// Prefix may say "z, z, z, z" but if this is a pair, we force to x.
|
||||||
// TODO: But some ops seem to use const 0 instead?
|
// TODO: But some ops seem to use const 0 instead?
|
||||||
if (regnum >= n) {
|
if (regnum >= n) {
|
||||||
WARN_LOG(CPU, "JIT: Invalid VFPU swizzle: %08x : %d / %d at PC = %08x (%s)", prefix, regnum, n, GetCompilerPC(), MIPSDisasmAt(js.compilerPC));
|
WARN_LOG(CPU, "JIT: Invalid VFPU swizzle: %08x : %d / %d at PC = %08x (%s)", prefix, regnum, n, GetCompilerPC(), MIPSDisasmAt(GetCompilerPC()));
|
||||||
regnum = 0;
|
regnum = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,9 @@
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace MIPSComp
|
namespace MIPSComp {
|
||||||
{
|
|
||||||
|
|
||||||
class Arm64Jit : public Arm64Gen::ARM64CodeBlock
|
class Arm64Jit : public Arm64Gen::ARM64CodeBlock {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
Arm64Jit(MIPSState *mips);
|
Arm64Jit(MIPSState *mips);
|
||||||
virtual ~Arm64Jit();
|
virtual ~Arm64Jit();
|
||||||
|
@ -42,6 +40,8 @@ public:
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
static void DoDummyState(PointerWrap &p);
|
static void DoDummyState(PointerWrap &p);
|
||||||
|
|
||||||
|
const JitOptions &GetJitOptions() { return jo; }
|
||||||
|
|
||||||
// Compiled ops should ignore delay slots
|
// Compiled ops should ignore delay slots
|
||||||
// the compiler will take care of them by itself
|
// the compiler will take care of them by itself
|
||||||
// OR NOT
|
// OR NOT
|
||||||
|
|
|
@ -26,19 +26,19 @@
|
||||||
#include "stddef.h"
|
#include "stddef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace MIPSComp
|
namespace MIPSComp {
|
||||||
{
|
|
||||||
|
|
||||||
typedef int FakeReg;
|
typedef int FakeReg;
|
||||||
|
|
||||||
class FakeJit : public FakeGen::FakeXCodeBlock
|
class FakeJit : public FakeGen::FakeXCodeBlock {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
FakeJit(MIPSState *mips);
|
FakeJit(MIPSState *mips);
|
||||||
|
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
static void DoDummyState(PointerWrap &p);
|
static void DoDummyState(PointerWrap &p);
|
||||||
|
|
||||||
|
const JitOptions &GetJitOptions() { return jo; }
|
||||||
|
|
||||||
void Comp_Generic(MIPSOpcode op);
|
void Comp_Generic(MIPSOpcode op);
|
||||||
|
|
||||||
void RunLoopUntil(u64 globalticks);
|
void RunLoopUntil(u64 globalticks);
|
||||||
|
|
|
@ -34,8 +34,7 @@
|
||||||
|
|
||||||
class PointerWrap;
|
class PointerWrap;
|
||||||
|
|
||||||
namespace MIPSComp
|
namespace MIPSComp {
|
||||||
{
|
|
||||||
|
|
||||||
// This is called when Jit hits a breakpoint. Returns 1 when hit.
|
// This is called when Jit hits a breakpoint. Returns 1 when hit.
|
||||||
u32 JitBreakpoint();
|
u32 JitBreakpoint();
|
||||||
|
@ -46,12 +45,13 @@ struct RegCacheState {
|
||||||
FPURegCacheState fpr;
|
FPURegCacheState fpr;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Jit : public Gen::XCodeBlock
|
class Jit : public Gen::XCodeBlock {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
Jit(MIPSState *mips);
|
Jit(MIPSState *mips);
|
||||||
virtual ~Jit();
|
virtual ~Jit();
|
||||||
|
|
||||||
|
const JitOptions &GetJitOptions() { return jo; }
|
||||||
|
|
||||||
void DoState(PointerWrap &p);
|
void DoState(PointerWrap &p);
|
||||||
static void DoDummyState(PointerWrap &p);
|
static void DoDummyState(PointerWrap &p);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue