Tweak QEMU Base

This commit is contained in:
TheBrokenRail 2024-05-24 17:42:42 -04:00
parent f53f405bdd
commit 36cb84b672
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ void bootstrap() {
args.push_back(QEMU_BINARY);
// Fix Bug
args.push_back("-B");
args.push_back("0x40000"); // Arbitary Value That Works On My System
args.push_back("0x3e800"); // Arbitary Value (Aligns To 4k And 16k Page Sizes)
#endif
// Setup Linker

View File

@ -20,7 +20,7 @@ void *_overwrite_calls_manual(const char *file, int line, void *start, void *tar
#define overwrite_calls_manual(...) \
_overwrite_calls_manual(__FILE__, __LINE__, __VA_ARGS__)
template <typename overwrite_t>
static void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function<void *(void *, void *)> &), const overwrite_t &target) {
void _overwrite_calls(const char *file, int line, std::string (*set_overwrite)(const overwrite_t &, const std::function<void *(void *, void *)> &), const overwrite_t &target) {
std::string ret = set_overwrite(target, [&file, &line](void *start, void *target2) {
return _overwrite_calls_manual(file, line, start, target2);
});