Commit graph

2672 commits

Author SHA1 Message Date
Richard Goedeken
3ea632b500 Added speed limiter control variable in main.c 2011-07-16 07:42:16 -07:00
richard42
a2c2b2ef91 Win32 fixes 2011-07-11 23:05:14 -07:00
Sven Eckelmann
c50a3b5037 Remove extraneous parentheses around comparison which could hide GCC warnings 2011-07-10 22:43:45 +02:00
Sven Eckelmann
c792b2b39d Remove comparison unsigned < 0 2011-07-10 22:24:19 +02:00
Sven Eckelmann
5a03b61fb0 Allow to force PIC to remove text relocations 2011-07-10 13:37:54 +02:00
Sven Eckelmann
5efe246437 Don't require executable memory for cached interpreter 2011-07-10 11:34:10 +02:00
Sven Eckelmann
b1f9a9d154 Readd set_rounding in fpu instructions for interpreter modes 2011-07-10 11:06:50 +02:00
Sven Eckelmann
5fd974cac9 Use common fpu implementation for interpreter modes to fix missing round/trunc/ceil/floor 2011-07-10 10:25:27 +02:00
Sven Eckelmann
625ab60be8 Show error on failed malloc_exec in cached interpreter mode instead of segfaulting 2011-07-10 01:36:28 +02:00
Sven Eckelmann
b6ada95740 Show error on failed first malloc_exec instead of segfaulting 2011-07-09 23:45:13 +02:00
Sven Eckelmann
a1c8fc62b7 Allocate exec memory using mmap
mprotect has no defined behavior when it is used with memory regions not
allocated by mmap. Therefore, it is easier to use mmap directly with the
RWX flags instead of using mmap and then mprotect.
2011-07-09 23:02:35 +02:00
Sven Eckelmann
48d49d8135 Prevent data corruption with caller managed OSD text
OSD text like the volume information is update by the caller in main.c, but the
drawing function in osd.c maybe already deleted the corresponding data
structure. The workaround was to check if the pointer to data structure could
be found in the list. It could happen that another text was shown inbetween and
the libc reused the old memory region for another text message. The
osd_message_valid function would wrongly inform the caller that the OSD text
wasn't deleted and the following osd_update_message would modify the wrong
message.

We must forbid that the messages is deleted by both the caller and the osd
drawing mainloop. The mainloop restricts itself to removing it from the list
when the caller marked it as user_managed directly after it was allocated. The
caller has to remove it manually using osd_delete_message in that situation.
2011-07-09 22:08:58 +02:00
Sven Eckelmann
fd0565c7f1 Consistently name the test as m64p_test_rom.v64 2011-07-09 20:43:28 +02:00
Sven Eckelmann
b0bc4ceb4d Cleanup savestates_select_filename as suggested in #412 2011-07-09 20:08:11 +02:00
Sven Eckelmann
517e5efce1 Synchronize MANDIR behaviour of bundle scripts with unix Makefile 2011-07-09 19:54:24 +02:00
Sven Eckelmann
09e4c2228a Fix linker search for libstdc++.so 2011-07-08 08:24:33 +00:00
Sven Eckelmann
5c685d6528 Don't use Debian specific liblircclient0 pkg-config files 2011-07-08 07:44:26 +00:00
Richard Goedeken
58cb394345 fix warning in NO_ASM build 2011-07-07 19:26:17 -07:00
Richard Goedeken
8504edc67a merged 244 and 252 2011-07-03 16:57:58 -07:00
Sven Eckelmann
3a2a7ac2d0 Inform user about the possibility to make the build verbose 2011-07-03 18:04:47 +02:00
Sven Eckelmann
5be4fd59c5 Set changeable default compiler optimization option 2011-07-03 18:03:15 +02:00
Sven Eckelmann
4deb188d41 Remove mupencheat.txt in uninstall target 2011-06-27 13:20:20 +02:00
Sven Eckelmann
08ee24e241 Fix unresolved SDL symbols 2011-06-27 13:06:28 +02:00
Sven Eckelmann
0dc48bce8d Test for essential build dependencies before getting their cflags/libs 2011-06-27 11:36:09 +02:00
Sven Eckelmann
c5bebb705d Allow to change the gnu make name using env variable MAKE in m64p_helper_scripts 2011-06-27 11:08:33 +02:00
Sven Eckelmann
62d924b182 Use sdl-config to find sdl gcc parameters to not interfere with Auria's OSX hacks 2011-06-27 10:34:02 +02:00
Sven Eckelmann
9e6ba133ad Add fallback to create symlink in installation directory for some *BSDs 2011-06-26 21:28:24 +02:00
Sven Eckelmann
2ae00b480b Add fallback to create symlink in installation directory for some *BSDs 2011-06-26 21:26:03 +02:00
Sven Eckelmann
4bddc37c3f Use ldconfig -n on Linux and ldconfig -m on *BSD 2011-06-26 21:20:25 +02:00
Sven Eckelmann
912cd431ff Don't use _BIG_ENDIAN to check for endianness as it is always set on OpenBSD 2011-06-26 20:18:10 +02:00
Sven Eckelmann
141c5f2acc Use rom.c as base definition place for isGoldeneyeRom 2011-06-26 19:42:10 +02:00
Sven Eckelmann
d72328e2a7 Add OpenBSD as half-supported OS with FreeBSD userspace tools 2011-06-26 18:37:19 +02:00
Sven Eckelmann
5b12eed5e8 Remove -v parameter of install which is not available everywhere 2011-06-26 18:29:24 +02:00
Sven Eckelmann
fe1604aaba Don't run ldconfig on all directories 2011-06-26 16:05:12 +02:00
Sven Eckelmann
5ba45f4748 Synchronize build rules with standard gnu make rules 2011-06-26 15:32:42 +02:00
Sven Eckelmann
020ba6c91e Remove bashism in helper tools 2011-06-26 13:55:39 +02:00
Sven Eckelmann
efaef036d2 Provide prototypes of exported functions for use inside the core 2011-06-26 01:04:53 +02:00
Sven Eckelmann
e20674dbca Don't use plain 0 for pointers 2011-06-25 23:05:19 +02:00
Sven Eckelmann
56208dfc40 Remove carriage return from line ending 2011-06-25 23:03:55 +02:00
Sven Eckelmann
34ca3d7c49 Mark local only functions as static or fix their definition 2011-06-25 22:40:58 +02:00
Sven Eckelmann
5137e8e264 Don't define variable isGoldeneyeRom in each file 2011-06-25 21:47:50 +02:00
Sven Eckelmann
293e2ddbdd Fix compilation with BITS=32 when using gcc-4.6 2011-06-25 21:29:58 +02:00
Sven Eckelmann
cf4a4027c2 Provide prototypes to assist plugin developers 2011-06-25 21:07:42 +02:00
Sven Eckelmann
52999b1e13 Remove unused variable tmp 2011-06-25 15:14:00 +02:00
Sven Eckelmann
ebc651a9cd Remove unneccessary define PIC 2011-06-25 15:09:32 +02:00
Sven Eckelmann
b798eb425c Don't override optimisations set by linux build environment 2011-06-25 13:58:11 +02:00
Sven Eckelmann
5aea4de9a8 Use pkg-config as more portable way to find liblircclient0, libpng, zlib, freetype2, gl, glu and sdl 2011-06-25 11:03:54 +02:00
Sven Eckelmann
8e68e71935 Prevent over-optimization of rjump related data
GCC tries to remove and/or rename local symbols when trying to optimize
the code. This is a common problem when using link time optimization or
other optimization with deep inspection of dataflow. Inline assembler
code has to be annotated when it tries to access data behind such
symbols to prevent over optimization and to correctly name these
symbols.

This also removes partially the requirement of having different
implementation of the rjump code for different combination of OS and
PIC/PIE targets.
2011-06-05 18:52:30 +02:00
Richard Goedeken
e3c987f3ec updated core for new Mupen64plus 2.0 API versioning scheme 2011-05-16 21:47:02 -07:00
Richard Goedeken
a60d4a6cd8 bugfix issue 423: we should call video extension override _before_ checking for SDL state in VidExt_GL_GetProcAddress function 2011-04-13 10:30:09 -07:00