Small Logging Tweak

This commit is contained in:
TheBrokenRail 2024-06-15 08:22:57 -04:00
parent 790e7918b1
commit aa87488407

View File

@ -15,7 +15,7 @@
+// g2h For Trampoline
+static CPUState *_trampoline_g2h_cpu = NULL;
+static void _trampoline_writer(uint32_t guest_addr, void *data, uint32_t size) {
+static void _trampoline_writer(uint32_t guest_addr, const void *data, uint32_t size) {
+ void *out = g2h(_trampoline_g2h_cpu, guest_addr);
+ memcpy(out, data, size);
+}
@ -40,7 +40,7 @@
+ }
+ if (_trampoline == NULL) {
+ // Failed To Load
+ qemu_log_mask(LOG_UNIMP, "Unable To Load Media Layer Trampoline: %s\n", dlerror());
+ qemu_log("Unable To Load Media Layer Trampoline: %s\n", dlerror());
+ return -TARGET_ENOSYS;
+ }
+ // Call Trampoline