aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_RegisterCache.h
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-03-23 13:04:38 -0400
committerGitHub <noreply@github.com>2023-03-23 18:04:38 +0100
commit79dfb8dc8f356834f0b6cf7baf73f77552b08923 (patch)
tree9a2a139617b8e178edd153ac68d56f2d0e48e3ed /src/ARMJIT_RegisterCache.h
parent19280cff2d3d618f032d0e6ef4b1d4414fa02f58 (diff)
Introduce `Platform::Log` (#1640)
* Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
Diffstat (limited to 'src/ARMJIT_RegisterCache.h')
-rw-r--r--src/ARMJIT_RegisterCache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ARMJIT_RegisterCache.h b/src/ARMJIT_RegisterCache.h
index e0c4a15..7ea44ed 100644
--- a/src/ARMJIT_RegisterCache.h
+++ b/src/ARMJIT_RegisterCache.h
@@ -21,6 +21,7 @@
#include "ARMJIT.h"
#include "ARMJIT_Internal.h"
+#include "Platform.h"
// TODO: replace this in the future
#include "dolphin/BitSet.h"
@@ -29,6 +30,9 @@
namespace ARMJIT
{
+ using Platform::Log;
+ using Platform::LogLevel;
+ // Imported inside the namespace so that other headers aren't polluted
template <typename T, typename Reg>
class RegisterCache
@@ -80,7 +84,7 @@ public:
}
}
- printf("this is a JIT bug! LoadRegister failed\n");
+ Log(LogLevel::Error, "this is a JIT bug! LoadRegister failed\n");
abort();
}