Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #719 from lioncash/warnings
Core: Fix warnings on Linux related to the JIT
  • Loading branch information
delroth committed Aug 2, 2014
2 parents 46ce810 + a46a500 commit 1bb7c27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64/JitRegCache.cpp
Expand Up @@ -305,7 +305,7 @@ void FPURegCache::LoadRegister(size_t preg, X64Reg newLoc)
{
if (!regs[preg].location.IsImm() && (regs[preg].location.offset & 0xF))
{
PanicAlert("WARNING - misaligned fp register location %i", preg);
PanicAlert("WARNING - misaligned fp register location %" PRIx64, preg);
}
emit->MOVAPD(newLoc, regs[preg].location);
}
Expand All @@ -320,7 +320,7 @@ void RegCache::Flush(FlushMode mode)
for (size_t i = 0; i < xregs.size(); i++)
{
if (xregs[i].locked)
PanicAlert("Someone forgot to unlock X64 reg %zu.", i);
PanicAlert("Someone forgot to unlock X64 reg %" PRIx64, i);
}

for (size_t i = 0; i < regs.size(); i++)
Expand Down
3 changes: 2 additions & 1 deletion Source/Core/Core/PowerPC/Jit64/JitRegCache.h
Expand Up @@ -5,6 +5,7 @@
#pragma once

#include <array>
#include <cinttypes>

#include "Common/x64Emitter.h"

Expand Down Expand Up @@ -85,7 +86,7 @@ class RegCache
if (IsBound(preg))
return regs[preg].location.GetSimpleReg();

PanicAlert("Not so simple - %i", preg);
PanicAlert("Not so simple - %" PRIx64, preg);
return Gen::INVALID_REG;
}
virtual Gen::OpArg GetDefaultLocation(size_t reg) const = 0;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/PPCAnalyst.cpp
Expand Up @@ -34,7 +34,7 @@ using namespace std;

static const int CODEBUFFER_SIZE = 32000;
// 0 does not perform block merging
static const int FUNCTION_FOLLOWING_THRESHOLD = 16;
static const u32 FUNCTION_FOLLOWING_THRESHOLD = 16;

CodeBuffer::CodeBuffer(int size)
{
Expand Down

0 comments on commit 1bb7c27

Please sign in to comment.