gbeauche
2747c0b5e2
Shut up remaining warnings as we are now sure pointers are allocated in
...
MacOS address space. TODO: add checks to be sure?
2004-12-18 18:43:25 +00:00
gbeauche
114f5ff6c7
Use BUILD_SHEEPSHAVER_PROCEDURE to allocate static procedures into the
...
SheepShaver globals. Fix build of sheepshaver_glue.cpp without JIT.
2004-11-22 22:04:38 +00:00
gbeauche
7be8af917c
Try to explain the SheepShaver globals
2004-11-22 21:50:45 +00:00
gbeauche
40367bd931
new SheepShaver globals layout
2004-11-22 21:22:58 +00:00
gbeauche
3ace37f4eb
Implement Direct Addressing mode similarly to Basilisk II. This is to get
...
SheepShaver working on OSes that don't support maipping of Low Memory globals
at 0x00000000, e.g. Windows.
2004-11-13 14:09:16 +00:00
gbeauche
0669b02e5f
Introducce TimebaseSpeed which represents exact timebase-frequency instead
...
of supposing it to be (BusClockSpeed/4), which is no longer true on G5 et al.
2004-07-03 10:39:07 +00:00
gbeauche
20014c1c7c
Provide Host2MacAddr(), which returns address in Mac address space.
2004-06-24 15:34:59 +00:00
gbeauche
e0a76f9e38
Don't handle XLM_IRQ_NEST atomically in emulated mode. That's useless since
...
this variable is modified only within a single thread and interrupts are
not handled asynchronously.
2004-06-22 17:10:08 +00:00
gbeauche
2224cc63d0
MacOS 9.0.4 support. ;-)
2004-06-20 19:10:02 +00:00
gbeauche
a9c38c3598
Add "jit68k" prefs item to enable built-in 68k DR emulator.
2004-06-03 21:52:55 +00:00
gbeauche
7bc86b27ee
Enable Apple DR emulator from NewWorld ROMs only.
2004-05-31 09:04:44 +00:00
gbeauche
bd6eaf680a
Get rid of old (and broken) ASYNC_IRQ / MUTICORE code
2004-05-20 12:33:58 +00:00
gbeauche
28eb840182
"idlewait" support for Linux and NewWorld ROMs
2004-05-15 16:36:44 +00:00
gbeauche
6c0e2a9f2a
Disable MacOS -> X11 copying of cursor in windowed mode too. You can
...
recompile with "mac_cursor_enabled" constant set to true. Disabling it
causes a better looking cursor that is not "disappearing" sometimes with
e.g. Microsoft Internet Explorer.
2004-05-10 16:42:37 +00:00
gbeauche
21607e19ad
Provide Mac_sysalloc() and Mac_sysfree() for memory allocation in MacOS
...
system heap zone. Use them for network related data dynamically allocated.
TODO: check performance in emulated mode!
2004-05-10 16:16:26 +00:00
gbeauche
f32e5ee9ab
Optimize for 32-bit big endian platforms
2004-05-10 15:42:35 +00:00
gbeauche
fd8b5bbb7a
Tentative little-endian fixes
2004-05-10 12:05:45 +00:00
gbeauche
8b40a7e721
NQD: use ReadMacInt*() and WriteMacInt*() accessors, i.e. code should now
...
be little-endian and 64-bit safe.
2004-04-22 21:45:18 +00:00
gbeauche
b4ac3fb507
Basic fillrect/invrect NQD. Code may need to be factored out somehow.
...
Verify that bitblt NQD transfer modes are really CopyBits() ones [MB5].
2004-04-22 20:57:31 +00:00
gbeauche
a65a6c6db2
Start Native QuickDraw acceleration
2004-04-18 23:03:53 +00:00
gbeauche
fd474d041d
Fix DGA mode for emulated PPC targets. It currently doesn't work in native
...
mode as the stack is corrupted and we are jumping to garbage when moving
the mouse. Also add 1152x768 resolution from PBG4, but make timing match
the 1152x870 version.
Cleanups, further merges from Basilisk II tree.
2004-04-13 22:22:22 +00:00
gbeauche
9b4a75139e
Merge run-time depth switching code from Basilisk II.
2004-04-10 23:15:22 +00:00
gbeauche
ae93ea2f16
Make SheepShaver work with OS 8.6 out-of-the-box with no extra patch for
...
the time being. i.e. ignore writes to the zero page when faking SCSIGlobals
2004-02-24 11:12:54 +00:00
gbeauche
8b66b778e6
Fixes for GCC 3.4
2004-02-16 15:33:22 +00:00
gbeauche
10b9ab2c34
Generate PowerPC code wrapping GetResource() replacements. That way, it's
...
a normal PPC function invocation that can be JIT compiled to native code
instead of nesting execute() calls which may lead to use the interpreter
(this took around 11% of total execution time on boot, downto 3%).
Also, optimize some SheepShaver EmulOps and actually report non-CTI.
2004-01-24 11:28:06 +00:00
cebix
2d5de1af9d
Happy New Year! :)
2004-01-12 15:37:24 +00:00
gbeauche
76a5e63bd2
Make sure 68k procedures are stored on 16-bit word boundaries.
2004-01-10 08:46:57 +00:00
gbeauche
1b0e88041e
Also cache native routine descriptor instead of recreating them at each
...
invokation to ExecuteNative().
2004-01-07 18:24:45 +00:00
gbeauche
44e54f730a
Add XLM_ZERO_PAGE globals which points to a read-only page with all bits
...
set to zero.
2003-12-05 12:36:11 +00:00
gbeauche
091a219280
Use a unique ExecuteNative() interface in any case, i.e. native & emulated
2003-12-04 23:37:38 +00:00
gbeauche
328bb9f239
Add new thunking system for 64-bit fixes.
2003-12-04 17:26:38 +00:00
gbeauche
982424dabd
Use "cpu/vm.hpp" if EMULATED_PPC, so that target optimized functions are
...
used to match alignment/endianess needs.
2003-12-03 15:06:09 +00:00
gbeauche
7ebe0347bf
Add "jit" prefs item. Fix PPC_DECODE_CACHE version to fill in new min_pc &
...
max_pc members of block info. Increase -finline-limit to 10000 for older gcc
2003-12-03 10:52:50 +00:00
gbeauche
7e0dccc544
- Handle MakeExecutable() replacement
...
- Disable predecode cache in CVS for now
- Fix flight recorder ordering in predecode cache mode
2003-10-12 05:44:17 +00:00
gbeauche
3768573d35
Add support for Gossamer ROMs (DTG3)
2003-10-05 23:05:05 +00:00
gbeauche
3d4ed54488
first round of little endian fixes
2003-09-29 20:30:21 +00:00
gbeauche
b8b139faf2
- Share EmulatorData & KernelData struct definitions
...
- Introduce new SheepShaver data area for alternate stacks, thunks, etc.
- Experimental asynchronous interrupts handling. This improves performance
by 30% but some (rare) lockups may occur. To be debugged!
2003-09-29 15:46:09 +00:00
gbeauche
5b57fde6ce
New NativeOps for DisableInterrupt() & EnableInterrupt().
2003-09-28 21:27:55 +00:00
gbeauche
28ae4b0028
Disable SIGUSR2 handler in EMULATED_PPC mode for now
2003-09-28 21:20:38 +00:00
gbeauche
cb1dd6dac5
- Integrate new NativeOp instructions to be used as trampolines to call
...
native functions from ppc code.
- Little endian fixes in emul_op.cpp
- Add new 'gpch' 750 patch to workaround crash with MacOS 8.6
- Don't crash in Process Manager on reset/shutdown with MacOS 8.6
- We also have an experimental interrupt thread in emulation mode
2003-09-07 14:33:54 +00:00
gbeauche
5bd60842d6
Make EmulOp() and check_load_invoc() extern "C" so that we are C++ name
...
mangling independent for asm_linux.S
2003-04-12 10:14:09 +00:00
gbeauche
665c64b4aa
Add support to decode parcels-based ROMs
...
- include/rom_patches.h (DecodeROM): Declare.
- rom_patches.cpp (DecodeROM): Define.
- Unix/main_unix.cpp, BeOS/main_beos.cpp (decode_lzss): Move to...
- rom_patches.cpp (decode_lzss): ... here.
- Unix/main_unix.cpp (main): Call DecodeROM().
- BeOS/main_beos.cpp (SheepShaver::load_rom): Call DecodeROM().
2002-04-21 15:07:09 +00:00
cebix
8e4d5e5f40
Imported sources
2002-02-04 16:58:13 +00:00