summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/libflac/examples/c/decode
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/libflac/examples/c/decode')
0 files changed, 0 insertions, 0 deletions
ine' src='//www.gravatar.com/avatar/9c50c7d9ea51b7d191cd6f862aa2b117?s=13&d=retro' /> Nathan Woods2009-01-071-1/+4 | | | | | are in debug mode or not * Cleanups and version bump.mame0129 Aaron Giles2009-01-041-2/+2 | * CPU interface organization shuffle. The file cpuintrf.h now merely Aaron Giles2008-12-221-10/+104 | | | | | | | | | | | | | | | | | | | describes the interface, but does not contain any implementation. All remaining bits of implementation have been migrated either to cpuexec.c or to debugcpu.c. Specifically, cpu_dasm() is now debug_cpu_disassemble(), and cpu_set_dasm_override() is now debug_cpu_set_dasm_override(). Also moved memory_address_physical() to debug_cpu_translate(), since it was only ever used for debugging. Changed all CPU and sound cores to use memory_find_address_space() instead of cpu_get_address_space(). The former is reliable even during early initialization when the CPU cores generally need it. Removed the dummy CPU core and cpuintrf.c. Changed the core execution loop to directly call the execute function instead of using the inline helper (which has been removed). * Cleanups and version bump. Aaron Giles2008-12-221-1/+1 | * Renamed CPUINFO_PTR_* to CPUINFO_FCT_* for function get infos. Aaron Giles2008-12-191-3/+3 | | | | Changed Z80 over to the new cpu_state_table mechanism. * Cleaned up device and sound interfaces to match the CPU Aaron Giles2008-12-191-8/+5 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interfaces when handling strings. Namely, the generic get_info functions allocate a temporary string and the device in question copies its string to the target, instead of assigning a const char *. Updated all device and sound cores to operate this way. Added the concept of a cpu_state_table, which is supplied by the CPU cores and which describes all the register state accessible to the debugger and other subsystems. The format of the table is such that most data can be simply fetched from memory without the further involvement of the CPU core, including the display of common formats. Extensibility points are available for custom display and for importing/exporting the data to intermediate variables for more complicated scenarios. Updated the ADSP21xx, TMS340x0, and i86 cores to use this. Removed the old debugger register list, which was never used. Replaced it with using ordering from the cpu_state_table. Renamed REG_PC -> REG_GENPC, REG_SP -> REG_GENSP, and REG_PREVIOUSPC -> REG_GENPCBASE. Updated a few spots that were using these directly. Moved these definitions into the end of the register area rather than leaving them outside which put them in a weird range. * More device normalization: Aaron Giles2008-12-161-3/+3 | | | | | | | | | | cpu_get_info_* -> device_get_info_* cpu_set_info_* -> device_set_info_* cpu_reset -> device_reset Removed the cputype_get_* macros as they are not necessary. Removed cpuintrf_init() which is no longer necessary. * Made CPUs into proper devices. CPUs are now added in the Aaron Giles2008-12-161-173/+168 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | machine configuration just as any other device, and the standard CPU configuration is performed via the inline configuration macros. Change cpu_type from an enumeration into a pointer to the CPU's get_info function, very similar to device behavior. For now all CPUs are declared in cpuintrf.h, but eventually they should be declared in the CPU's header file, and the driver should #include that header. Added function cpu_get_type() to return the CPU type. Changed several cpu_* functions into macros that call through to the equivalent device_* function. The device system now maintains a parallel list of devices based on type, for faster iteration through all devices of a given type. Cleaned up code that looped over CPUs via the machine->cpu array to now loop using the type-based device list. Removed start/stop/reset/nvram functions from the device_config in favor of grabbing them as needed. Cleaned up the generic interrupt_enable code to work with CPU devices instead of numbers. Mapped the devtag_* functions to device_* functions via macros instead of parallel implementations. * Cleanups and version bump. Aaron Giles2008-12-151-3/+3 | * Fixed compile error, and fixed crash when handling an exception when the Aaron Giles2008-12-111-2/+5 | | | | debugger is disabled. * Here's the big one.... Aaron Giles2008-12-111-4/+0 | | | | | | | | | | | | | | | | | | | | | | | | Added new function cpuexec_describe_context(machine) which can be used in logerror() and other printf-style functions to return a description of the current CPU/PC given only the machine. Changed several dozen sites to use this instead of directly interrogating the activecpu. Removed all other uses of activecpu throughout the system. Removed activecpu from the machine structure to prevent future abuse. Removed cpu_push_context() and cpu_pop_context(), and all call sites. Voodoo devices now require a CPU to be defined in the configuration in order to know whom to steal cycles from or stall when FIFOs get full. Updated all voodoo users to specify one. CPD1869 devices now also require a CPU to be defined in the configuration, in order to know which CPU's registers to fetch. Updated all cdp1869 users to specify one. Many other small changes to make this all work. * Added logic to track OSD updates separately from internal view updates in the Aaron Giles2008-12-081-0/+5 | | | | | | | | | debugger. In order to get the OSD to update, a new function debug_view_flush_updates() must be called. Currently this is automatically called before osd_wait_for_debugger(), and during the periodic updates while executing. The OSD code may occasionally need to call it under other circumstances (for example, the Windows code calls it explicitly while tracking scrollbar thumbs to get live scrolling). * Cleanups/version bump/added missing drivers.mame0128u5 Aaron Giles2008-12-061-1/+1 | * 02687: emuopts.c: CORE INPUT AUTOMATIC ENABLE OPTIONS Aaron Giles2008-12-041-30/+9 | | | | | | | | | | | 02683: Pressing F5 while running debugger causes access violation 02669: pandoras: music tempo is too fast 02691: Some drivers with z80/ay8910 Audio: Audio tempo has changed Also fixed debugger memory leak. Added a number of new cputag_* macros to cpuexec.h. * CPU_IS_LE -> ENDIANNESS_LITTLE Aaron Giles2008-12-041-18/+18 | | | | | | CPU_IS_BE -> ENDIANNESS_BIG Also fixed help for step over/in to specify correct keys. * More debugger changes. Aaron Giles2008-12-031-14/+17 | | | | | | | | | | | | | | | | | Added the concept of 'subviews' to the debugger views. The core now creates a list of possible subviews, and the OSD can select between them. This removes code from the OSD that was previously required to find all possible memory and disassembly views. Added machine parameters to debugger console output functions. Fixed some oddities in the memory view. Moved globals to hang off of the machine structure. Fixed bug where the visiblecpu was not updated immediately upon a break. * Big debugger cleanup. Aaron Giles2008-12-031-129/+95 | | | | | | | | | | | | | | | | | | | | | | | Important note for OSD ports: the get/set property functions have been retired for debug_views. Instead, there are specific functions to perform each get/set operation. In addition, the format of the update callback has changed to pass the osd private data in, and the update callback/osd private data must be passed in at view allocation time. And osd_wait_for_debugger() now gets a CPU object instead of the machine. Removed extra debugger tracking for address spaces and added some of the useful data to the address_space structure. Updated all debugger commands and views to use CPU and address space objects where appropriate. Added new memory functions for converting between bytes and addresses, and for performing translations for a given address space. Removed debugger macros that did similar things in favor of calling these functions. Rewrote most of the memory view handling. Disasm and register views still need some additional tweaking. * Changed timer_alloc, timer_set, timer_pulse, timer_call_after_resynch, Aaron Giles2008-11-261-3/+3 | | | | | and timer_get_time to pass the machine parameter. Moved timer globals to hang off of the running_machine. * Cleanups and version bump for 0.128u4.mame0128u4 Aaron Giles2008-11-241-21/+21 | * change_pc? What change_pc? Aaron Giles2008-11-241-4/+0 | * Further debugger cleanup. Symbol tables now have a global ref Aaron Giles2008-11-221-894/+914 | | | | | as well as a per-symbol ref. Debugcpu is now clear of active CPU references and global Machine references. * Debugger interfaces cleanup. Still more to do but this compiles and Aaron Giles2008-11-211-458/+548 | | | | | | | works. Added callback parameters to the expression engine. Improved CPU parsing so you can use a CPU tag or index in most commands that take one. Switched to passing CPU and address space objects around where appropriate. Lots of other minor tweaks. * Another big one. Aaron Giles2008-11-201-446/+437 | | | | | | | | | | | | | | | | | | | | Moved memory global state into a struct hanging off of the machine. Updated almost all memory APIs to take an address_space * where appropriate, and updated all callers. Changed memory internals to use address spaces where appropriate. Changed accessors to point to the memory_* functions instead of the address space-specific functions. Improved internal handling of watchpoints. Added cputag_* functions: cputag_reset(), cputag_get_index(), cputag_get_address_space(). These just expand via macros to an initial fetch of the CPU via cputag_get_cpu() followed by the standard CPU call. Added debugger_interrupt_hook() and debugger_exception_hook() calls which intelligently look at the debugger flags before calling. Did minimal cleanup of debugger, mainly moving CPU-specific data to hang off of the CPU classdata for more direct access. * Converted change_pc() into a no-op. Changed memory_set_direct_region() to Aaron Giles2008-11-191-1/+1 | | | | | | | | | | | | | | return a boolean indicating whether the given address was successfully located in a bank. Change raw/decrypted access to look at this result, and if the given address is not in a bank, calls through to the standard read handlers. In theory, this should prevent crashes when accessing opcodes. It does in fact prevent mp_col3 from crashing. Fixed address space mapping handlers to invalidate direct access regions if a change is made to the mapping. This is needed to prevent the Sega dynamic memory mapping chips from falling over. * Generalized the concept of opbase access into "direct" access. Aaron Giles2008-11-171-1/+1 | | | | | | | | Removed opbase globals to the address_space structure. Cleaned up names of pointers (decrypted and raw versus rom and ram). Added inline functions to read/write data via any address space. Added macros for existing functions to point them to the new functions. Other related cleanups. * WARNING: this compiles, but not fully cleanly, and a number of drivers Aaron Giles2008-11-141-14/+14 | | | | | | | | | | | | | | | | are broken. Changed READ/WRITE handlers to accept an address_space * instead of a machine *. The address_space object was enhanced to contain a machine and a pointer to the relevant CPU object. Fixed a number of errors found by the compiler, mostly in the core and CPU/sound handlers, but there is a lot remaining to fix. Added new function cpu_get_address_space() to fetch the address space for calling in manually to these functions. In some instances, code which should eventually be converted to a device is hard-coding fetching the program space of CPU #0 in order to have something valid to pass. * This patch: Aaron Giles2008-11-131-6/+7 | | | | | | | | | | | | | - removed unnecessary deprecat.h includes - replaces Machine with existing running_machine* instances - re-adds a peroid I accidentally removed when changed a message to use defines - adds a running_machine* to win_window_info and debugwin_info to get rid of most Machine occurances and clean up the running_machine* parameters I added in the past [Oliver Stoeneberg] * Massive API cleanup/change. The primary goal is that all CPU- Aaron Giles2008-11-131-7/+8 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | related APIs now take a device pointer instead of an index. All functions that take a CPU device are prefixed with cpu_* All functions that are globally related to cpu execution are prefixed with cpuexec_*. Below is a list of some of the mappings: cpu_boost_interleave -> cpuexec_boost_interleave cpunum_suspend -> cpu_suspend cpunum_resume -> cpu_resume cpunum_is_suspended -> cpu_is_suspended cpunum_get_clock -> cpu_get_clock cpunum_set_clock -> cpu_set_clock cpunum_get_clockscale -> cpu_get_clockscale cpunum_set_clockscale -> cpu_set_clockscale cpunum_get_localtime -> cpu_get_local_time cpunum_gettotalcycles -> cpu_get_total_cycles activecpu_eat_cycles -> cpu_eat_cycles activecpu_adjust_icount -> cpu_adjust_icount cpu_trigger -> cpuexec_trigger cpu_triggertime -> cpuexec_triggertime cpunum_set_input_line -> cpu_set_input_line cpunum_set_irq_callback -> cpu_set_irq_callback In addition, a number of functions retain the same name but now require a specific CPU parameter to be passed in: cpu_yield cpu_spin cpu_spinuntil_time cpu_spinuntil_int cpu_spinuntil_trigger cpu_triggerint Merged cpuint.c into cpuexec.c. One side-effect of this change is that driver reset callbacks are called AFTER the CPUs and devices are reset. This means that if you make changes to the CPU state and expect the reset vectors to recognize the changes in your reset routine, you will need to manually reset the CPU after making the change (since it has already been reset). Added a number of inline helper functions to cpuintrf.h for managing addresses Removed cpu_gettotalcpu(). This information is rarely needed outside of the core and can be obtained by looking at the machine->cpu[] array. Changed CPU interrupt acknowledge callbacks to pass a CPU device instead of machine/cpunum pair. Changed VBLANK and periodic timer callbacks to pass a CPU device instead of machine/cpunum pair. Renamed all information getters from cpu_* to cpu_get_* and from cputype_* to cputype_get_*. * Added CPU device parameters to all CPU callbacks except for the Aaron Giles2008-11-101-30/+31 | | | | | | | | context ones (which are going away), the disassembler (which should have no dependencies on the live CPU), and the validity check. Removed global token from all pointer-ified CPU cores that don't have internal read/write callbacks (which still need to reference it). * Major cpuintrf changes: Aaron Giles2008-11-101-65/+66 | | | | | | | | | | | | | | | | | | | | | | * added a set of cpu_* calls which accept a CPU device object; these are now the preferred means of manipulating a CPU * removed the cpunum_* calls; added an array of cpu[] to the running_machine object; converted all existing cpunum_* calls to cpu_* calls, pulling the CPU device object from the new array in the running_machine * removed the activecpu_* calls; added an activecpu member to the running_machine object; converted all existing activecpu_* calls to cpu_* calls, pulling the active CPU device object from the running_machine * changed cpuintrf_push_context() to cpu_push_context(), taking a CPU object pointer; changed cpuintrf_pop_context() to cpu_pop_context(); eventually these will go away * many other similar changes moving toward a model where all CPU references are done by the CPU object and not by index * Cleanups and version bump.mame0127u5 Aaron Giles2008-09-261-3/+3 | * From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-09-261-0/+2 | | | | | | | | | | | | | | | | | | | | Sent: Sunday, September 21, 2008 10:45 AM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] More static qualifiers Hi mamedev, Another static function update from yours truly, almost entirely affecting code added in the last few months to MAME. The fixes are the usual lot, changing enum definitions so they aren't declared, decorating dead code/declarations with #if...#endif, and of course, adding static where appropriate. In addition, I fixed a bunch of UNUSED_FUNCTON symbols to be spelled correctly (I didn't introduce this). ~aa * 02280: any set with multiple CPUs: Disassembler freezes when doing a Run on ↵ Aaron Giles2008-09-221-20/+48 | | | | any CPU other than CPU 0 * Changed requirements for laserdisc CHDs to require a new chunk of