diff --git a/qemu/src/trampoline.patch b/qemu/src/trampoline.patch index 63b46e7..45d8265 100644 --- a/qemu/src/trampoline.patch +++ b/qemu/src/trampoline.patch @@ -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