From ee6f4a15b9e98a458f729aee8bddaab21811e5b1 Mon Sep 17 00:00:00 2001 From: cebix <> Date: Sun, 30 Jan 2000 19:26:05 +0000 Subject: [PATCH] - fixes for AmigaOS --- BasiliskII/src/AmigaOS/cpu_emulation.h | 4 ++++ BasiliskII/src/uae_cpu/cpu_emulation.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/AmigaOS/cpu_emulation.h b/BasiliskII/src/AmigaOS/cpu_emulation.h index 25e1ca28..09a4587a 100644 --- a/BasiliskII/src/AmigaOS/cpu_emulation.h +++ b/BasiliskII/src/AmigaOS/cpu_emulation.h @@ -43,6 +43,10 @@ static inline void WriteMacInt32(uint32 addr, uint32 l) {*(uint32 *)addr = htonl static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = htons(w);} static inline void WriteMacInt8(uint32 addr, uint32 b) {*(uint8 *)addr = b;} static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;} +static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);} +static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);} +static inline void *Host2Mac_memcpy(uint32 dest, const void *src, size_t n) {return memcpy(Mac2HostAddr(dest), src, n);} +static inline void *Mac2Mac_memcpy(uint32 dest, uint32 src, size_t n) {return memcpy(Mac2HostAddr(dest), Mac2HostAddr(src), n);} /* diff --git a/BasiliskII/src/uae_cpu/cpu_emulation.h b/BasiliskII/src/uae_cpu/cpu_emulation.h index 068113f6..3938c8b0 100644 --- a/BasiliskII/src/uae_cpu/cpu_emulation.h +++ b/BasiliskII/src/uae_cpu/cpu_emulation.h @@ -1,5 +1,5 @@ /* - * cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.8 version) + * cpu_emulation.h - Definitions for Basilisk II CPU emulation module (UAE 0.8.10 version) * * Basilisk II (C) 1997-1999 Christian Bauer *