No more segfault in JIT. Keeps executing the same blocks over and over though...

This commit is contained in:
CocoSimone
2023-01-04 16:50:33 +01:00
parent 5da1e2a443
commit 64630ea06b
43 changed files with 823 additions and 849 deletions

View File

@@ -2,7 +2,7 @@
#include <fstream>
#include <log.hpp>
namespace util {
namespace Util {
inline auto ReadFileBinary(const std::string& path, u32** buf) {
std::ifstream file(path, std::ios::binary);
file.unsetf(std::ios::skipws);

View File

@@ -4,7 +4,7 @@
#include <portable_endian_bswap.h>
#include <log.hpp>
namespace util {
namespace Util {
template<typename T>
inline T ReadAccess(u8 *data, u32 index) {
if constexpr (sizeof(T) == 1) {

View File

@@ -3,7 +3,7 @@
#include <fmt/format.h>
#include <fmt/color.h>
namespace util {
namespace Util {
enum MessageType : u8 {
Info, Debug, Warn, Error
};