Commit Graph

9385 Commits

Author SHA1 Message Date
Aaron Giles
8b90eb19d5 Fix SDL debugger. 2010-07-06 02:04:15 +00:00
Aaron Giles
5d21c672af Moved debugging structure away from CPUs only and attached to all
devices. Debugger now creates one for each device. C++-ified most
debugger operations to hang off the debugging class, and updated
most callers. This still needs a little cleanup, but it fixes most
issues introduced when the CPUs were moved to their own devices.

Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly 
broken. Also removed cpu_is_executing, cpu_is_suspended,
cpu_get_local_time, and cpu_abort_timeslice.

Some minor name changes:
  state_value() -> state()
  state_set_value() -> set_state()
2010-07-06 00:52:36 +00:00
Angelo Salese
995097894f Hooked up second layer, no whatsnew 2010-07-05 23:52:39 +00:00
Fabio Priuli
b0a74c9e0f New clone added:
Exerizer (Japan) [N. Francfort, blib, Smitdogg, The Dumping Union]


roms are a mixup of Sky Fox and the bootleg, but they've been dumped from an original board (and label are correct)
2010-07-05 21:47:01 +00:00
Nicola Salmoria
df76263805 317-5000 decryption (same as 315-5177). Reorganised decryption code. 2010-07-05 21:08:18 +00:00
Michaël Banaan Ananas
de67a76a60 un-CAPS svc 2010-07-05 19:57:29 +00:00
Nicola Salmoria
0664448c9d divided segacrpt.c in two files, one for the old encryption and one for the new one. 2010-07-05 19:38:55 +00:00
Brian Troha
c82cf78f39 standardize PCB location form for a few rom names in slapfght.c. 2010-07-05 18:19:45 +00:00
Michaël Banaan Ananas
c2e8493cc1 minor naming cleanup 2010-07-05 13:34:20 +00:00
Michaël Banaan Ananas
4f3100924b directly casting to UINT caused compile-time negative values to become 0 2010-07-05 12:18:11 +00:00
Angelo Salese
cc86ec423e Improved video emulation in cb2001 [David Haywood] 2010-07-05 11:53:00 +00:00
Miodrag Milanovic
1538288109 Removed need for messdrv.h (no whatsnew) 2010-07-05 10:34:34 +00:00
Miodrag Milanovic
c14878e59a Imported image related utils from MESS into /lib/util [Miodrag Milanovic] 2010-07-05 10:19:05 +00:00
Michaël Banaan Ananas
66a88c930f modelr -> suprshot:
http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=226445&page=&view=&sb=5&o=&fpart=1&vc=1
2010-07-05 09:52:24 +00:00
Miodrag Milanovic
5cf07785d0 Software list update: [Wilbert Pol]
- Software list xml files are now read in full such that information for clone and parent sets is available.
- Added validity check to check for existence of parent sets.
2010-07-04 19:16:47 +00:00
Angelo Salese
79dbd821c0 new clones
----------

Boggy '84 (original Kaneko) [Klaus Sommer, Team Europe, The Dumping Union]
2010-07-04 13:12:53 +00:00
Fabio Priuli
22a2473cb6 fixed a MMC1 minor detail in multigam.c. I'm not sure if it was affecting any game, so there is no need of whatsnew mention. 2010-07-04 13:00:11 +00:00
Miodrag Milanovic
c31a033b9f Fixed compiler error (no whatsnew) 2010-07-04 06:09:43 +00:00
Bryan McPhail
e8f96f3aba no whatnews. woops - meikyuh coin input wiring is inverted from Ghostbusters. 2010-07-03 18:41:27 +00:00
Bryan McPhail
0de759962b whatsnew
Hooked up Gondomania I8751 MCU [Bryan McPhail, Dr Decapitator]
Reimplemented Meikyuu Hunter G I8751 MCU according to schematics [Bryan McPhail]
2010-07-03 18:36:14 +00:00
Quench
1079dd15d8 Stop MingW-32 Seg-Faulting on WinXP [no whatsnew] 2010-07-03 17:44:15 +00:00
Roberto Zandona
7aecd327d0 [cb2001] added 2 new opcodes [robiza] 2010-07-03 16:47:24 +00:00
Angelo Salese
4333bf7b83 new not working
------------

Model Racing Shooting Game (unknown title) [Luigi, Volker Hahn, Team Europe]
Out Run 2 (Rev. A) [GDX-0004A]  [Team Europe, The Dumping Union, Alex]
2010-07-03 12:34:20 +00:00
Bryan McPhail
3c8f6c6159 Hooked up Heavy Barrel I8751 MCU [Bryan McPhail, Dr Decapitator] 2010-07-03 11:45:25 +00:00
Aaron Giles
c70c5fee5a Created CPU-specific device types for all CPUs, using new macros
DECLARE_LEGACY_CPU_DEVICE and DEFINE_LEGACY_CPU_DEVICE. Changed CPUs
to be their own device types, rather than all of type CPU with a
special internal subtype. Note that as part of this process I removed
the CPU_ prefix from the ALL-CAPS device name, so CPU_Z80 is just
plain old Z80 now. This required changing a couple of names like
8080 to I8080 so that there was an alphabetic first character.

Added memory interfaces to the list of fast-access interfaces. To do
this properly I had to add a separate method to devices which is
called immediately after construction, when it is possible to perform
dynamic_casts on fully-constructed objects. (This is just internal,
no changes necessary to the devices themselves.)

Some additional notes:
 * SH2 and SH4 had typedefs that conflicted with their CPU_-less names
    so I bulk renamed to structures to sh2_state and sh4_state; RB, feel
    free to choose alternate names if you don't like 'em
 * SCSP was caught doing something to the 3rd indexed CPU. Since several
    systems that use SCSP don't even have 3 CPUs, I had no idea what
    this was supposed to do, so I changed to it reference "audiocpu"
    assuming that stv was the assumed target. This is really gross and
    should be a configuration parameter, not a hard-coded assumption.
2010-07-03 00:12:44 +00:00
Aaron Giles
46e30c4f68 Remove obsolete type. 2010-07-02 15:54:09 +00:00
Aaron Giles
7f11224184 Added overrides to fetch the execute and state interfaces without doing
a dynamic_cast<> to speed up common legacy operations.
2010-07-02 15:42:18 +00:00
Aaron Giles
553ec7f427 Some more cases to directly access the state interface instead of using the old
cpu_* macros. Also changed the ADSP21xx callbacks to take a cpu_device.
2010-07-02 15:12:58 +00:00
Aaron Giles
af9e6f531f Kill cpu_get_sp(). 2010-07-02 13:29:03 +00:00
Miodrag Milanovic
48d8e3d3cf Update cheat loading to support image devices (moved implementation from MESS), use only CRC of first found image. [Miodrag Milanovic] 2010-07-02 12:21:03 +00:00
Aaron Giles
a0ce1569b6 More slowdown relief. 2010-07-02 06:01:44 +00:00
Aaron Giles
030c1ee79f Fix coolridr speed regression. 2010-07-02 04:49:37 +00:00
Aaron Giles
8a73491965 Fix dynamic cast in machine->describe_context(). 2010-07-02 04:41:18 +00:00
Aaron Giles
001f2462c9 Speed up attckufo. 2010-07-02 04:06:07 +00:00
Aaron Giles
fa2d8a88a4 Oops, forgot to remove some dead code. 2010-07-02 03:55:48 +00:00
Aaron Giles
b67fd48c9f Winmain cleanup:
* created dynamic_bind<> template class to handle dynamically binding to
    optionally-supported functions
 * wrapped stack walking code in a class
 * wrapped symbol lookup code in a class
 * added support for parsing objdump-produced symbol dumps which include
    non-global functions for much better stack dumps and profiling in gcc builds

Also: modified makefile for win32 targets to automatically run objdump and
produce a .sym file if SYMBOLS is enabled.
2010-07-02 03:49:56 +00:00
Michaël Banaan Ananas
2c6e27c547 regression fix way back at r152, atarimo_set_xscroll wasn't updated when some MDRV_SCREEN_RAW_PARAMS were increased by 8 (like with rampart.c) 2010-07-01 21:28:53 +00:00
Michaël Banaan Ananas
c8e49537f3 write/control ports were not default 2010-07-01 20:28:26 +00:00
Michaël Banaan Ananas
fff2175e6e whatsnew (from Tafoid), please disregard raiden2.c:
New games marked as GAME_NOT_WORKING
------------------------------------
Raiden DX (Great Britain) [arcaderelics]


change to:
New clones added
----------------
Raiden DX (UK) [Irongiant]
2010-07-01 16:33:23 +00:00
Michaël Banaan Ananas
a749bc9ce7 added COPX romloading for sets that didn't have it, marked as BAD_DUMP until the assumption that they're the same is (un)confirmed 2010-07-01 16:13:15 +00:00
Michaël Banaan Ananas
1856b0703c make the new dx set the parent, clean up setnames, change year to 94 2010-07-01 15:29:40 +00:00
Curt Coder
465487a221 New games marked as GAME_NOT_WORKING
------------------------------------
Raiden DX (Great Britain) [arcaderelics]
2010-07-01 15:15:53 +00:00
Fabio Priuli
997936e985 namcos22.c: updated ridgerac, raveracw and acedrvrw to use keys instead of dipswitches for shifters [Fabio Priuli]
out of whatsnew: the code is maybe not the ideal solution, but dipswitches were neither, imho. test mode shows no change in functionalities compared to the old code, but the new implementation makes a lot easier the actual use of shifter in-game
2010-07-01 14:24:53 +00:00
Aaron Giles
7bdb4bf083 Use UINT64s for converting cycles <-> clocks. 2010-07-01 05:01:12 +00:00
Brian Troha
884cadfde0 correct dipswitch location order in World Rally to match actual dips as seen by the game / service menu 2010-07-01 02:08:24 +00:00
Aaron Giles
de771cbfeb Remove the following functions:
cpu_get_total_cycles()   == cpudevice->total_cycles()
  cpu_clocks_to_attotime() == cpudevice->cycles_to_attotime()
  cpu_attotime_to_clocks() == cpudevice->attotime_to_cycles()

In some cases, I updated existing code that fetched and cached 
devices to fetch them as cpu_device so that these can be called
without casting.

In other cases, I did the quick & dirty thing which was to downcast
a generic device to a cpu_device and then call the function.

Note that cpu_clocks_to_attotime() and cpu_attotime_to_clocks()
were previously mapping to the device-level functions
clocks_to_attotime() and attotime_to_clocks(). This was different
behavior than before the big devices change, so with this update
I have fixed it to match the previous behavior (i.e., map cycles
not clocks).

This may impact timing of drivers that used these functions on
CPUs that have clock dividers or multipliers.
2010-07-01 00:34:46 +00:00
Aaron Giles
dfc04871c4 Remove most other instances of cpu_get_total_cycles. 2010-06-30 23:35:26 +00:00
Wilbert Pol
daccd1f46c Fixes to get OSX debugger working again. (no whatsnew) 2010-06-30 21:55:38 +00:00
Aaron Giles
e7e1e04b7f Fix performance regression for PowerPC games. The timing made heavy use of
cpu_get_total_cycles() which is now slow. Better to use the legacy_cpu_device
directly and call device->total_cycles() which avoids the dynamic_cast to find
the execute interface from a generic device.

Also added cycles_to_attotime() and attotime_to_cycles() which is more often
what is requested. (Clocks are the raw input clock, while cycles are internal
clock after dividers/multipliers.)
2010-06-30 20:48:26 +00:00
Aaron Giles
77f2ea0e3e Resurrect the old sampling profiler, and improve it to be useful:
- always available now, just specify -profile <n> to enable it
 - supports stack walking to uniquely identify call chains; the <n> parameter
    to the -profile option specifies how deep to go
 - automatically turns off throttling and multithreading, and sets the number of
    processors available to 1 (since we only sample the main thread)
 - output now uses the common symbol lookup, which actually uses the PDB for
    MSVC builds and gives excellent results (may eventually figure out how to
    extract gcc symbols someday)
 - the top 30 unique call chains are output
2010-06-30 20:29:12 +00:00