Commit graph

2672 commits

Author SHA1 Message Date
Bobby Smiles
eedf36301d Avoid usage of dyna_jump in cached_interp notcompiled. 2018-03-24 13:30:30 +01:00
Bobby Smiles
4e2047b61f Remove dyna_jump call from cached_interp FIN_BLOCK 2018-03-24 13:30:30 +01:00
Bobby Smiles
61207776b9 Move dyna_jump at end of FIN_BLOCK 2018-03-24 13:30:30 +01:00
Bobby Smiles
9d2efb493e Split dynarec/cached_interp xx_jump_to implementations into their respective modules
- provide a dynarec_jump_to function in recomp module.
- use generic_jump_to when sensible (select appropriate cde path at runtime)
2018-03-24 13:30:30 +01:00
Bobby Smiles
661430625c Rename dynarec_jump_to_address -> dynarec_jump_to_recomp_address. 2018-03-24 13:30:30 +01:00
Bobby Smiles
e76aaa8510 Formatting cleanups in cached_interp module. 2018-03-24 13:30:30 +01:00
Bobby Smiles
d562015870 {init,free}_blocks and profiling is only needed for hacktarux dynarec. 2018-03-24 13:30:30 +01:00
Bobby Smiles
57de368627 Don't require empty_dynarec for new_dynarec. 2018-03-24 13:30:30 +01:00
Bobby Smiles
26371fe096 Reorganize cached/recomp/new_dynarec fields such that:
- shared fields between cached_interp and recomp are moved to
cached_interpreter
- and that we can completely separate recomp struct from
new_dynarec_hot_state.

This way we can select at compile time which dynarec struct to embed
inside r4300_core.
2018-03-24 13:30:30 +01:00
Bobby Smiles
71de99f24d Move w{,d}word inside recomp for Hacktarux dynarec.
Move them in new_dynarec_hot_state for new dynarec x86.
2018-03-24 13:30:30 +01:00
Bobby Smiles
dab7150aee Move address inside recomp struct for hacktarux dynarec.
Move it inside new_dynarec_hot_state for new_dynarec.
Remove r4300_address helper function.
2018-03-24 13:30:30 +01:00
Bobby Smiles
91ef25b2b4 Move wmask inside recomp struct. Remove wmask field in new_dynarec. 2018-03-24 13:30:30 +01:00
Bobby Smiles
74d73d2804 Move rdword to recomp struct. 2018-03-24 13:30:30 +01:00
Bobby Smiles
977741d9ad Move more fields inside recomp struct. 2018-03-24 13:30:30 +01:00
Bobby Smiles
574cefe7f1 Move regcache_state to recomp struct. 2018-03-24 13:30:30 +01:00
Bobby Smiles
38fb23530c Move dyna_interp inside recomp struct. 2018-03-24 13:30:30 +01:00
Bobby Smiles
caf23ddb9a Move local_rs inside recomp struct. 2018-03-24 13:30:30 +01:00
Logan
87b1946868
Don't call SDL_PumpEvents() in core 2018-03-23 12:18:50 -06:00
Logan McNaughton
1367d9f736 Clear CLOCK_REG when requested
DPC_STATUS_START_GCLK should be set on boot.

Renamed some of the status flags to match what is in rcp.h
2018-03-21 13:46:33 -06:00
Stefan Tobert
d5fb78feb5 Missing Joy Mappings added 2018-03-20 23:02:46 +01:00
Stefan Tobert
ece4a3cf87 Missing Joy Mappings added 2018-03-20 22:53:06 +01:00
Richard Goedeken
37b1417065
Merge pull request #545 from bsmiles32/savestate
Fix: try to keep savestates offsets aligned.
2018-03-18 20:33:05 -07:00
Richard Goedeken
b51cfc4470 fix memory read/write operations in R4300 debugging extension 2018-03-12 21:52:38 -07:00
Richard Goedeken
b75f06500b disable compiler optimizations when DEBUG is set, so that the debugger is actually useful 2018-03-12 21:51:30 -07:00
Richard Goedeken
267baf8d5b
Merge pull request #544 from loganmc10/x86fix
Fix DSLLV in x86 dynarec
2018-03-09 17:05:11 -08:00
Bobby Smiles
2d5854faad Fix: crash with savestate unaligned accesses
Keep savestate v1.2 format unchanged and pre-load data into an aligned
buffer before doing the actual 32/64 bit load.

Bump savestate version to 1.3 and changes several offsets to have them
properly aligned.
2018-03-10 00:13:37 +01:00
Bobby Smiles
2a6d7a7dc0 Fix: try to keep savestates offsets aligned. 2018-03-09 22:11:37 +01:00
Logan McNaughton
03e16a93d7 Fix DSLLV in x86 dynarec
Removes force_32 function, fixes #542
2018-03-09 13:20:01 -07:00
Richard Goedeken
9abdd2ca0a
Merge pull request #541 from loganmc10/patch-4
Force alignment of PI DMA
2018-02-26 21:49:38 -08:00
Logan
08f8fa4dd4
Force alignment of PI DMA 2018-02-23 15:45:05 -07:00
Richard Goedeken
74c1e666ee
Merge pull request #535 from fzurita/unplug_controller_runtime
Allow game controllers to be unplugged and plugged in on the fly
2018-02-18 09:09:08 -08:00
Richard Goedeken
d26926c2e1
Merge pull request #538 from bsmiles32/wdc_lock
Alternative implementation of "Don't deal with save states when RSP t…
2018-02-16 20:05:31 -08:00
Richard Goedeken
f87bed47c0
Merge pull request #537 from Gillou68310/mult64
new_dynarec: Fix DMULT/DMULTU recompiled code
2018-02-16 19:58:39 -08:00
Bobby Smiles
4a5e62e568 Clean-up controller hot-pluggin support. 2018-02-16 22:57:37 -05:00
Francisco Zurita
03916e0cd3 Allow game controllers to be unplugged and plugged in on the fly
This can be done using the controller plugin interface using the
"Present" flag for each controller
2018-02-16 22:57:34 -05:00
Bobby Smiles
0ff0c179b7 Remove rsp_task_locked from save state as it is now always 0 in this case. 2018-02-16 19:56:23 +01:00
Bobby Smiles
1bf5eb701d Alternative implementation of "Don't deal with save states when RSP task is locked"
See https://github.com/mupen64plus/mupen64plus-core/pull/534
2018-02-16 00:22:56 +01:00
Gillou68310
8b24ef56a4 new_dynarec: Fix DMULT/DMULTU recompiled code
Interpreted version could be used instead by defining INTERPRETED_MULT64
2018-02-15 17:34:55 +01:00
Richard Goedeken
e343e5f096
Merge pull request #533 from loganmc10/patch-3
Remove CountPerOp=1 for Vigilante games
2018-02-13 07:13:55 -08:00
Logan
c06081aea3
Remove CountPerOp=1 for Vigilante games 2018-02-12 09:07:45 -07:00
Richard Goedeken
0a66764bde
Merge pull request #532 from fzurita/change_pak_defaults
If a ROM is not in the database, use 4 players, enable mempak, and enable rumble pak
2018-02-10 20:32:01 -08:00
Francisco Zurita
763a2c6476 If a ROM is not in the database, use 4 players, enable mempak, and enable rumble pak 2018-02-10 13:53:30 -05:00
Richard Goedeken
026ec858dd
Merge pull request #529 from loganmc10/patch-2
Fix compile on MinGW
2018-02-09 21:39:51 -08:00
Logan
84ad8c1092 Fix compile on MinGW
Pipe strings output to tr
2018-02-09 08:25:38 -07:00
Richard Goedeken
d7721192c1 fix homepage link 2018-02-07 22:29:08 -08:00
Richard Goedeken
132e397b18 fix libopcodes check for gentoo 2018-02-07 22:01:29 -08:00
Richard Goedeken
091e960036 update FSF address in license 2018-02-04 12:57:13 -08:00
Richard Goedeken
cd69499a8d
Merge pull request #526 from bsmiles32/fix_binutils_2_29
Fix undefined reference to print_insn_i386 with libopcode >= 2.29
2018-02-01 23:09:29 -08:00
Bobby Smiles
0bfe65b550 Fix undefined reference to print_insn_i386 with libopcode >= 2.29
This broke with upstream commit 6394c606997f88acfc80de4dff33a4ae2de987b4
"Don't use print_insn_XXX in GDB".
2018-02-02 00:13:16 +01:00
Richard Goedeken
97631d7ae1 remove OSX-specific code from osal/files_unix.c, and when looking for shared files in files_macos.c, don't use the bundle Resources directory unless the file is actually there 2018-01-24 22:21:45 -08:00