Linux tweaks.

This commit is contained in:
Ben Vanik
2015-08-18 14:18:00 -07:00
parent 19299fad4b
commit 8b0d4fb51c
37 changed files with 200 additions and 111 deletions

View File

@@ -9,6 +9,7 @@
#include "xenia/cpu/frontend/ppc_context.h"
#include <cinttypes>
#include <cstdlib>
namespace xe {
@@ -64,7 +65,7 @@ bool PPCContext::CompareRegWithString(const char* name, const char* value,
if (sscanf(name, "r%d", &n) == 1) {
uint64_t expected = ParseInt64(value);
if (this->r[n] != expected) {
snprintf(out_value, out_value_size, "%016llX", this->r[n]);
snprintf(out_value, out_value_size, "%016" PRIX64, this->r[n]);
return false;
}
return true;

View File

@@ -9,6 +9,7 @@
#include "xenia/cpu/frontend/ppc_instr.h"
#include <cinttypes>
#include <sstream>
#include <vector>
@@ -98,9 +99,9 @@ void InstrOperand::Dump(std::string& out_str) {
break;
case 8:
if (imm.is_signed) {
snprintf(buffer, max_count, "%lld", (int64_t)imm.value);
snprintf(buffer, max_count, "%" PRId64, (int64_t)imm.value);
} else {
snprintf(buffer, max_count, "0x%.16llX", imm.value);
snprintf(buffer, max_count, "0x%.16" PRIX64, imm.value);
}
break;
}