dolphin/Source/Core/Core/DSP
Léo Lam 118b2a3580
Core/DSP: Fix improper uses of offsetof
According to the C standard, an offsetof expression must evaluate to an
address constant, otherwise it's undefined behavior.

Fixes https://bugs.dolphin-emu.org/issues/12409

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95942

There are still improper uses of offsetof (mostly in JitArm64) but
fixing that will take more effort since there's a PPCSTATE_OFF wrapper
macro that is sometimes used with non-array members and sometimes used
with arrays and variable indices... Let's keep that for another PR.
2021-02-10 02:03:16 +01:00
..
Interpreter DSPCore: Make IRAM CRC and step counter private 2020-12-29 14:32:11 -05:00
Jit Core/DSP: Fix improper uses of offsetof 2021-02-10 02:03:16 +01:00
DSPAccelerator.cpp Core: Convert logging over to fmt pt. 1 2020-11-19 14:21:06 -05:00
DSPAccelerator.h DSPAccelerator: const qualify pointer parameter for Read() 2018-06-04 14:50:42 -04:00
DSPAnalyzer.cpp DSPAnalyzer: Separate instruction searching and idle skip finding 2020-12-28 13:15:48 -05:00
DSPAnalyzer.h DSPAnalyzer: Separate instruction searching and idle skip finding 2020-12-28 13:15:48 -05:00
DSPAssembler.cpp Core: Replace usages of StringFromFormat with fmt where applicable 2019-11-11 07:32:57 -05:00
DSPAssembler.h DSPAssembler: Convert typedef into a using alias 2018-06-18 15:45:59 -04:00
DSPBreakpoints.h Reformat all the things! 2018-04-12 21:28:39 +02:00
DSPCaptureLogger.cpp rename Common/File to Common/IOFile 2021-01-27 14:29:48 -08:00
DSPCaptureLogger.h PcapFile: Namespace code under the Common namespace 2018-05-29 17:56:15 -04:00
DSPCodeUtil.cpp rename Common/File to Common/IOFile 2021-01-27 14:29:48 -08:00
DSPCodeUtil.h Use size_t in some DSP code code 2020-07-24 15:06:39 -07:00
DSPCommon.h DSP: Namespace remaining un-namespaced DSP code 2016-12-31 17:20:14 -05:00
DSPCore.cpp DSPCore: Make IRAM CRC and step counter private 2020-12-29 14:32:11 -05:00
DSPCore.h DSPCore: Make IRAM CRC and step counter private 2020-12-29 14:32:11 -05:00
DSPDisassembler.cpp Core: Convert logging over to fmt pt. 1 2020-11-19 14:21:06 -05:00
DSPDisassembler.h DSPDisassembler: Remove unnecessary includes 2018-06-08 18:55:57 -04:00
DSPHWInterface.cpp DSPCore: Make IRAM CRC and step counter private 2020-12-29 14:32:11 -05:00
DSPHost.h DSP: Eliminate most global state 2020-12-27 06:38:02 -05:00
DSPMemoryMap.cpp DSP: Eliminate most global state 2020-12-27 06:38:02 -05:00
DSPStacks.cpp DSP: Eliminate most global state 2020-12-27 06:38:02 -05:00
DSPTables.cpp DSP: Eliminate most global state 2020-12-27 06:38:02 -05:00
DSPTables.h DSP: Eliminate most global state 2020-12-27 06:38:02 -05:00
LabelMap.cpp Core: Convert logging over to fmt pt. 1 2020-11-19 14:21:06 -05:00
LabelMap.h Core: Convert logging over to fmt pt. 1 2020-11-19 14:21:06 -05:00