Commit Graph

120 Commits

Author SHA1 Message Date
Oliver Stöneberg
6faeb5b078 cleaner way of disabling memory initialization with MemorySanitizer (nw) 2013-06-25 12:18:05 +00:00
Oliver Stöneberg
170a4c996a added some flags for SANITIZE=memory (nw) 2013-06-25 11:40:17 +00:00
Miodrag Milanovic
1615025734 makemak wip (nw) 2013-06-21 07:22:13 +00:00
Ryan Holtz
bb786b81fe Make FULLNAME use ?= instead of =, allows users to override the final executable name from the command line (nw) 2013-06-19 01:41:40 +00:00
Miodrag Milanovic
6fbd776a21 put optional cpu, video, sound and machine cores in one library in order to prevent linking issues on small builds, also created temp solution for subtargets for arcade,fruit and pinball machines (nw) 2013-06-17 10:27:14 +00:00
smf-
e48c8d3c11 Build dependencies for files in src/emu [smf] 2013-06-14 10:49:25 +00:00
Oliver Stöneberg
d9c98de098 some MemorySanitizer preparations:
- put memory initialization in src/emu/emualloc.c behind NO_MEMORY_INITIALIZATION define
- disable memory initialization when msan is used
- use origin tracking for msan when clang is used
2013-06-11 13:01:11 +00:00
Oliver Stöneberg
28aff9d786 removed obsolete "tests" target from makefile (nw) 2013-06-11 12:58:47 +00:00
smf-
dd3135cc47 uncommented it now that the .mak file is in (nw) 2013-06-10 23:37:34 +00:00
Curt Coder
c87dab4a64 Fixed build temporarily. (nw) 2013-06-10 21:49:51 +00:00
smf-
603f354635 Added support to jedutil for decoding 82S153, PLS153 & CK2605 [Kevin Eshbach, Charles MacDonald] 2013-06-10 19:33:46 +00:00
Miodrag Milanovic
6f2f772e70 Moved video and machine part of emu in separate mak files and libraries (nw) 2013-06-04 13:17:29 +00:00
Miodrag Milanovic
4a09e17523 LUA 5.2.2 added to libraries, did basic hookup of LUA VM into running machine [Miodrag Milanovic]
added -script (or -autoboot_script) command to execute LUA script after driver startup
2013-05-09 13:57:44 +00:00
Oliver Stöneberg
89df8ed41e added additional compiler and linker flags necessary for ThreadSanitizer (nw) 2013-05-04 09:54:42 +00:00
Oliver Stöneberg
e7c50f6019 added makefile define SANITIZE to specify the sanitizer to use (supported by latest GCC and clang versions) / added additional library necessary to link with clang on linux (nw) 2013-05-04 09:48:04 +00:00
Oliver Stöneberg
9ac5ce729c disabled another clang warning for now (nw) 2013-03-20 00:36:26 +00:00
Oliver Stöneberg
25c9594626 disabled another clang warning for now (nw) 2013-03-09 10:33:40 +00:00
Curt Coder
50f5a58821 Delete dependency makefiles on clean. (nw) 2013-02-09 16:32:21 +00:00
Oliver Stöneberg
bbfb99e515 removed additional DEBUG flags again - they are causing too much problems (nw) 2013-02-01 22:24:03 +00:00
Oliver Stöneberg
582ec9dce4 fixed typo in previous commit / fixed DEBUG compilation of pmwinmm.c and zlib 2013-02-01 08:31:09 +00:00
Oliver Stöneberg
55c4155a19 set proper DEBUG defines in makefile (nw) 2013-02-01 08:00:12 +00:00
Oliver Stöneberg
4a3e6c608c disabled some clang warning for now to improve out-of-the-box experience (nw) 2013-01-17 11:36:58 +00:00
Oliver Stöneberg
0c33249b57 fixed tests target for non-Windows platforms (nw) 2013-01-09 19:46:18 +00:00
Oliver Stöneberg
57c86b0b3f optimized tests target (nw) 2013-01-09 05:52:17 +00:00
Oliver Stöneberg
585ecc7c2e first version of chdman unit test / fixed dependies of tests target (nw) 2013-01-05 16:17:42 +00:00
Oliver Stöneberg
e18a790e69 added a "tests" target to the makefile / added chdman unittest placeholders (nw) 2013-01-05 14:20:15 +00:00
Oliver Stöneberg
85568b3f92 added CPPCHECK makefile define - it contains the path to the cppcheck binary (nw) 2013-01-05 12:37:58 +00:00
Oliver Stöneberg
ef2a555302 forgot to change library name in makefile (nw) 2013-01-01 21:01:14 +00:00
R. Belmont
13c3e056aa Enable compiling PortMidi (nw)
Tested on: Linux x64, Mac OS X 10.8, Windows 8 x64 w/latest toolchain for both OSD=windows and OSD=sdl.  MIDI should auto-disable on other OSes (*BSD) but there may be problems.  Works fine on Linux when set to use the system's copy of the library as well, which many distros prefer.
2013-01-01 16:58:48 +00:00
Oliver Stöneberg
ab9137d652 reverted makefile change (nw) 2012-12-26 14:15:59 +00:00
Oliver Stöneberg
d8929ea694 removed duplicated build rule from makefile (nw) 2012-12-26 14:00:42 +00:00
R. Belmont
a9116a7973 SDL: Experimental Qt-based debugger [Andrew Gardner, R. Belmont] 2012-12-25 03:51:20 +00:00
Jonathan Gevaryahu
a73b2224f3 Fixed python to use env variable as described in root makefile; fixes builds on windows with spaces in the path. [Balrog, Lord Nightmare] 2012-12-06 22:12:59 +00:00
Miodrag Milanovic
fc20796818 Fix to make "make depend" work if on empty obj tree (no whatsnew) 2012-09-08 13:58:11 +00:00
Miodrag Milanovic
1f77747f86 made make depend to be defined per target to support special cases (no whatsnew) 2012-09-07 13:03:46 +00:00
Miodrag Milanovic
5f995d42a4 Added proper name of generated mak (no whatsnew) 2012-08-23 12:59:09 +00:00
Miodrag Milanovic
fc915eb2ff Made "make depend" to create files per target, also added "make depend_ume" as new target in case ume is used, since then it becomes complicated (no whatsnew) 2012-08-23 12:56:20 +00:00
Angelo Salese
2db7d3c1a9 A small unused code regarding ext i/o (not hooked because it then talks with the SCSI a lot) 2012-08-23 03:18:14 +00:00
Angelo Salese
5f1eb8b0bb Fixed Pad latch 2012-08-23 02:47:53 +00:00
smf-
68ba08589d swapped order of version.o linking for consistency 2012-06-11 18:55:35 +00:00
smf-
a2fa173090 stop repeated make all runs from toggling between building chdman & mame due to both being dependent on version.o, which is always recreated when either exe is built. 2012-06-11 18:11:48 +00:00
R. Belmont
c394be2133 Always miss a file (nw) 2012-05-28 18:16:17 +00:00
Miodrag Milanovic
07ee4afaba objdump doesn't work with VS binaries, so do not run it by Firewave (no whatsnew)
fixed uninitialized field in ioport_field.m_chars (fixes stack 
corruption with three PORT_CHAR definitions) / added some sanity 
checks for PORT_CHAR adding and lookup by Firewave

Intel 28F320J3D flash support by Lukasz Markowski

snapquik.c  fixed uninitialized variable that causes random assertion 
failure by Sandro Ronco
2012-05-15 06:56:17 +00:00
Aaron Giles
2a88e54278 ioport.c C++ conversion. Mostly internal changes, with no
intended differences from previous behavior. For drivers,
the main change is that input_port_read() no longer exists.
Instead, the port must be fetched from the appropriate device,
and then read() is called.

For member functions, this is actually simpler/cleaner:

  value = ioport("tag")->read()

For legacy functions which have a driver_data state, it goes:

  value = state->ioport("tag")->read()

For other legacy functions, they need to fetch the root device:

  value = machine.root_device().ioport("tag")->read()

The other big change for drivers is that IPT_VBLANK is gone.
Instead, it has been replaced by a device line callback on the
screen device. There's a new macro PORT_VBLANK("tag") which
automatically points things to the right spot.

Here's a set of imperfect search & replace strings to convert
the input_port_read calls and fix up IPT_VBLANK:

input_port_read( *\( *)(machine\(\)) *, *([^)]+ *\))
ioport\1\3->read\(\)

input_port_read( *\( *)(.*machine[()]*) *, *([^)]+ *\))
\2\.root_device\(\)\.ioport\1\3->read\(\)

(state = .*driver_data[^}]+)space->machine\(\)\.root_device\(\)\.
\1state->

(state = .*driver_data[^}]+)device->machine\(\)\.root_device\(\)\.
\1state->

input_port_read_safe( *\( *)(machine\(\)) *, *([^,]+), *([^)]+\))
ioport\1\3->read_safe\(\4\)

IPT_VBLANK( *\))
IPT_CUSTOM\1 PORT_VBLANK("screen")
2012-05-03 09:00:08 +00:00
Michaël Banaan Ananas
651da72fe8 optimized optimization options :p 2012-04-29 21:47:31 +00:00
R. Belmont
647311cde1 Allow compilation with compatible system-installed versions of libjpeg and libflac [wallyweek, R. Belmont] 2012-03-29 21:56:18 +00:00
Miodrag Milanovic
97c3d0cb39 - removed need for *_dev.lst files [Miodrag Milanovic]
- enforced short names for slot card devices
- updated validation, romverify and listxml output accordingly
- slotoptions now also contain shortnames so it's possible to link
  slot option and device
2012-02-23 14:19:37 +00:00
Aaron Giles
f0823886a6 Major CHD/chdman update. The CHD version number has been increased
from 4 to 5. This means any diff CHDs will no longer work. If you
absolutely need to keep the data for any existing ones you have,
find both the diff CHD and the original CHD for the game in question 
and upgrade using these commands:

  rename diff\game.dif diff\game-old.dif
  chdman copy -i diff\game-old.dif -ip roms\game.chd -o diff\game.dif -op roms\game.chd -c none

Specifics regarding this change:

Defined a new CHD version 5. New features/behaviors of this version:
  - support for up to 4 codecs; each block can use 1 of the 4
  - new LZMA codec, which tends to do better than zlib overall
  - new FLAC codec, primarily used for CDs (but can be applied anywhere)
  - upgraded AVHuff codec now uses FLAC for encoding audio
  - new Huffman codec, used to catch more nearly-uncompressable blocks
  - compressed CHDs now use a compressed map for significant savings
  - CHDs now are aware of a "unit" size; each hunk holds 1 or more units
     (in general units map to sectors for hard disks/CDs)
  - diff'ing against a parent now diffs at the unit level, greatly
     improving compression

Rewrote and modernized chd.c. CHD versions prior to 3 are unsupported,
and version 3/4 CHDs are only supported for reading. Creating a new
CHD now leaves the file open.  Added methods to read and write at the 
unit and byte level, removing the need to handle this manually. Added
metadata access methods that pass astrings and dynamic_buffers to
simplify the interfaces. A companion class chd_compressor now
implements full multithreaded compression, analyzing and compressing
multiple hunks independently in parallel. Split the codec 
implementations out into a separate file chdcodec.*

Updated harddisk.c and cdrom.c to rely on the caching/byte-level read/
write capabilities of the chd_file class. cdrom.c (and chdman) now also 
pad CDs to 4-frame boundaries instead of hunk boundaries, ensuring that
the same SHA1 hashes are produced regardless of the hunk size.

Rewrote chdman.exe entirely, switching from positional parameters to
proper options. Use "chdman help" to get a list of commands, and
"chdman help <command>" to get help for any particular command. Many 
redundant commands were removed now that additional flexibility is
available. Some basic mappings:

  Old: chdman -createblankhd <out.chd> <cyls> <heads> <secs>
  New: chdman createhd -o <out.chd> -chs <cyls>,<heads>,<secs>

  Old: chdman -createuncomphd <in.raw> <out.chd> ....
  New: chdman createhd -i <in.raw> -o <out.chd> -c none ....

  Old: chdman -verifyfix <in.chd>
  New: chdman verify -i <in.chd> -f

  Old: chdman -merge <parent.chd> <diff.chd> <out.chd>
  New: chdman copy -i <diff.chd> -ip <parent.chd> -o <out.chd>

  Old: chdman -diff <parent.chd> <compare.chd> <diff.chd>
  New: chdman copy -i <compare.chd> -o <diff.chd> -op <parent.chd>

  Old: chdman -update <in.chd> <out.chd>
  New: chdman copy -i <in.chd> -o <out.chd>

Added new core file coretmpl.h to hold core template classes. For now
just one class, dynamic_array<> is defined, which acts like an array
of a given object but which can be appended to and/or resized. Also
defines dynamic_buffer as dynamic_array<UINT8> for holding an 
arbitrary buffer of bytes. Expect to see these used a lot.

Added new core helper hashing.c/.h which defines classes for each of
the common hashing methods and creator classes to wrap the 
computation of these hashes. A future work item is to reimplement
the core emulator hashing code using these.

Split bit buffer helpers out into C++ classes and into their own
public header in bitstream.h.

Updated huffman.c/.h to C++, and changed the interface to make it
more flexible to use in nonstandard ways. Also added huffman compression
of the static tree for slightly better compression rates.

Created flac.c/.h as simplified C++ wrappers around the FLAC interface.
A future work item is to convert the samples sound device to a modern
device and leverage this for reading FLAC files.

Renamed avcomp.* to avhuff.*, updated to C++, and added support for
FLAC as the audio encoding mechanism. The old huffman audio is still
supported for decode only.

Added a variant of core_fload that loads to a dynamic_buffer.

Tweaked winwork.c a bit to not limit the maximum number of processors
unless the work queue was created with the WORK_QUEUE_FLAG_HIGH_FREQ
option. Further adjustments here are likely going to be necessary.

Fixed bug in aviio.c which caused errors when reading some AVI files.
2012-02-16 09:47:18 +00:00
R. Belmont
d75dbab0de Add LZMA codec and .7z container support [David Haywood, R. Belmont] 2012-02-12 17:55:51 +00:00
Angelo Salese
39e3b5398b Doesn't compile, red card for ya 2012-02-05 16:54:00 +00:00