Commit graph

2672 commits

Author SHA1 Message Date
Bobby Smiles
d0e8d976b4 Fix 32-bit limit test.
Was producing a warning before.
2017-11-28 03:11:55 +01:00
Bobby Smiles
00344471e8 Fix more signed/unsigned comparison in dynarec. 2017-11-28 03:11:55 +01:00
Bobby Smiles
58cb710045 Remove unneeded headers in osd.cpp
This remove some coupling with other headers, especially m64p_plugin.h
which was not C++ compatible because of unnamed struct (BUTTONS).
2017-11-28 03:11:55 +01:00
Bobby Smiles
7cb1f03e6e Compile screenshot.c as a C file not CPP. 2017-11-28 03:11:55 +01:00
Bobby Smiles
065de9c56b Avoid warning about casting void* -> function pointer.
This conversion is undefined in strict C ISO and a conforming compiler
must issue a warning about it.  However it is largely supported (and
even possibly mandated for compilers supporting the XSI extension, given
the dlsym prototype). The recommended way of avoiding the warning is
instead to use the *(void**)(&func) trick.

See http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html
2017-11-28 03:10:47 +01:00
Bobby Smiles
fa86a26537 Fix more sign/unsigned comparison issue in dynarec. 2017-11-28 03:10:47 +01:00
Bobby Smiles
63aa4c1dc3 Fix various sign-unsigned comparison warnings in savestates.c 2017-11-28 03:10:47 +01:00
Bobby Smiles
ada82e3012 Fix missing field initialization in input plugin functions. 2017-11-28 03:10:47 +01:00
Bobby Smiles
4f3cb726d9 Add __extension__ before braced group GNU extension
This remove pedantic warnings.
2017-11-28 03:10:47 +01:00
Bobby Smiles
c038761614 Avoid compilation of empty translation unit (profile). 2017-11-28 03:10:47 +01:00
Bobby Smiles
b6d2140f94 Prefer defines over enum to force unsigned type on constants 2017-11-28 03:10:47 +01:00
Bobby Smiles
b598f0f438 Avoid signed-unsigned comparison warning in recomp.c 2017-11-28 03:10:47 +01:00
Bobby Smiles
ed79157e50 Fix dyna_start prototype. 2017-11-28 03:10:47 +01:00
Bobby Smiles
f51c791c3e Use fixed-size unsigned integers in cheat module. 2017-11-28 03:10:47 +01:00
Bobby Smiles
8514f450db Remove uneeded macro. 2017-11-28 03:07:16 +01:00
Bobby Smiles
3e45897c11 Avoid compilation of empty translation unit (instr_counters).
Fixes pedantic warning.
2017-11-28 03:07:16 +01:00
Bobby Smiles
a5a0901059 Add fall through comments in some places to avoid warning. 2017-11-28 03:07:16 +01:00
Bobby Smiles
9155c7299e Fix some sign compare warnings. 2017-11-28 03:07:16 +01:00
Bobby Smiles
cd0f85a0d5 Replace usage of enum with values that can't be encoded as int.
Fixes various pedantic warnings.
2017-11-28 03:07:16 +01:00
Bobby Smiles
992db3d029 Simplify gen_asm_defines.awk 2017-11-28 03:07:16 +01:00
Bobby Smiles
b104b33fd2 Remove extra semi-colons in asm_defines. 2017-11-28 03:07:16 +01:00
Richard Goedeken
dd5f09ad2a
Merge pull request #483 from bsmiles32/pif_rcp
Extract PIF, RCP and RDRAM modules
2017-11-27 18:00:38 -08:00
Bobby Smiles
4a081d7c27 Use device header instead of individual parts in debugger. 2017-11-20 20:48:21 +01:00
Bobby Smiles
7fd59d7eb0 Remove unneeded headers. 2017-11-20 20:44:37 +01:00
Bobby Smiles
99f00d78a2 Avoid dependency on rdp_core from fb. 2017-11-20 20:37:31 +01:00
Bobby Smiles
366dd5d03f Extract RDRAM module. 2017-11-20 19:14:00 +01:00
Bobby Smiles
2ff020d1f1 Regroup all rcp submodules inside rcp module. 2017-11-18 17:13:35 +01:00
Bobby Smiles
d8876f91c3 Extract pif module from si module. 2017-11-18 17:13:35 +01:00
Bobby Smiles
e1c1f82cf4 Extract mi from r4300. 2017-11-18 17:13:35 +01:00
Richard Goedeken
2b31626d9f update Makefile method for finding OSX_SDK_PATH 2017-11-14 16:12:28 -08:00
Richard Goedeken
8443927fc0
Merge pull request #476 from bsmiles32/predd
Preliminary refactorings
2017-11-14 16:05:22 -08:00
bsmiles32
e8ad019126
Merge pull request #480 from fzurita/40_winks
Fix 40 winks ini
2017-11-13 15:36:40 +01:00
Francisco Zurita
b8c78117bb Fix 40 winks ini 2017-11-13 07:20:54 -05:00
Bobby Smiles
067f45cfc4 Fix compilation on msvc (inline -> osal_inline) 2017-11-12 01:48:59 +01:00
bsmiles32
6cdd60509d
Merge pull request #478 from bsmiles32/fbinfo
Fix FbInfo 2
2017-11-12 01:42:50 +01:00
Bobby Smiles
eacc998859 Take into account the write mask. Fix Dr Mario pills. 2017-11-11 21:29:10 +01:00
Bobby Smiles
33b6d83962 Notify gfx plugin after a write, not before.
As per the spec it says:
"This function is called to notify the dll that the
frame buffer has been modified by CPU at the given address."
2017-11-11 20:11:59 +01:00
Bobby Smiles
b208cae25a Clean fb code. 2017-11-11 20:11:59 +01:00
Bobby Smiles
54e4941815 Fix fb dirty page tracking. 2017-11-11 15:53:53 +01:00
Bobby Smiles
261ac3569b Use raise_maskable_interrupt instead of some ad hoc code.
It should be more "accurate" than previous code and seems to greatly
reduce chances of bogus soft-reset.
2017-11-11 02:05:31 +01:00
Bobby Smiles
c3ab4ae15f Rename some memory mapping constants. 2017-11-11 01:31:46 +01:00
Bobby Smiles
b9094a606d Move rdram detection hack test in pi_controller. 2017-11-11 01:22:03 +01:00
Bobby Smiles
4af90354b8 Pass dram pointer to flashram. 2017-11-11 00:45:28 +01:00
Bobby Smiles
630e1fd744 Refactor r4300_check_interrupt function. 2017-11-11 00:41:03 +01:00
Bobby Smiles
9080ad8a56 Add CIC name field and print it at initialization. 2017-11-11 00:36:16 +01:00
bsmiles32
44ecb3b74a
Merge pull request #475 from bsmiles32/fix_dynarec
Fix handlers[i].{read,write}32 comparison in dynarec.
2017-11-10 21:13:03 +01:00
Richard Goedeken
813bfdb417
Merge pull request #460 from bsmiles32/flashram
Add support for different flashram types.
2017-11-09 17:38:52 -08:00
Bobby Smiles
a6482f8656 Fix handlers[i].{read,write}32 comparison in dynarec.
Regressions have been introduced in
commit 82b20c8a1b (wrong offset computation)
and commit 83f594eff1 (using virtual
address instead of the physical address for handler comparison).

NOTE: Implementation assumes that sizeof(mem_handler) is 3*sizeof(void*)
therefore we just need to multiply ((address >> 16) & 0x1fff) by 3 to
get the right offset. Multiplication by 3 can be achieved with
lea dst, [reg + 2*reg] instruction.
2017-11-09 23:53:28 +01:00
bsmiles32
6efa0971a2
Merge pull request #474 from bsmiles32/big_alloc_fallback
Big alloc fallback
2017-11-09 08:07:30 +01:00
bsmiles32
4a0e602b53
Merge pull request #473 from Enker/patch-1
CountPerOp=1 for Bokujou Monogatari 2
2017-11-08 20:46:59 +01:00