ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/include/cpu_emulation.h
(Generate patch)

Comparing SheepShaver/src/include/cpu_emulation.h (file contents):
Revision 1.12 by gbeauche, 2004-05-31T09:04:44Z vs.
Revision 1.13 by gbeauche, 2004-06-24T15:34:59Z

# Line 66 | Line 66 | static inline uint32 ReadMacInt32(uint32
66   static inline void WriteMacInt32(uint32 addr, uint32 v) {vm_write_memory_4(addr, v);}
67   static inline uint64 ReadMacInt64(uint32 addr) {return vm_read_memory_8(addr);}
68   static inline void WriteMacInt64(uint32 addr, uint64 v) {vm_write_memory_8(addr, v);}
69 + static inline uint32 Host2MacAddr(uint8 *addr) {return vm_do_get_virtual_address(addr);}
70   static inline uint8 *Mac2HostAddr(uint32 addr) {return vm_do_get_real_address(addr);}
71   static inline void *Mac_memset(uint32 addr, int c, size_t n) {return vm_memset(addr, c, n);}
72   static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return vm_memcpy(dest, src, n);}
# Line 80 | Line 81 | static inline uint64 ReadMacInt64(uint32
81   static inline void WriteMacInt16(uint32 addr, uint32 w) {*(uint16 *)addr = w;}
82   static inline void WriteMacInt32(uint32 addr, uint32 l) {*(uint32 *)addr = l;}
83   static inline void WriteMacInt64(uint32 addr, uint64 ll) {*(uint64 *)addr = ll;}
84 + static inline uint32 Host2MacAddr(uint8 *addr) {return (uint32)addr;}
85   static inline uint8 *Mac2HostAddr(uint32 addr) {return (uint8 *)addr;}
86   static inline void *Mac_memset(uint32 addr, int c, size_t n) {return memset(Mac2HostAddr(addr), c, n);}
87   static inline void *Mac2Host_memcpy(void *dest, uint32 src, size_t n) {return memcpy(dest, Mac2HostAddr(src), n);}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines