dolphin/Source/Core/Core/PowerPC
Lioncash 6f473b96d0 PowerPC: Convert CPUCore enum into an enum class
Makes the enum values strongly-typed and prevents the identifiers from
polluting the PowerPC namespace. This also cleans up the parameters of
some functions where we were accepting an ambiguous int type and
expecting the correct values to be passed in.

Now those parameters accept a PowerPC::CPUCore type only, making it
immediately obvious which values should be passed in. It also turns out
we were storing these core types into other structures as plain ints,
which have also been corrected.

As this type is used directly with the configuration code, we need to
provide our own overloaded insertion (<<) and extraction (>>) operators
in order to make it compatible with it. These are fairly trivial to
implement, so there's no issue here.

A minor adjustment to TryParse() was required, as our generic function
was doing the following:

N tmp = 0;

which is problematic, as custom types may not be able to have that
assignment performed (e.g. strongly-typed enums), so we change this to:

N tmp;

which is sufficient, as the value is attempted to be initialized
immediately under that statement.
2018-06-15 10:27:59 -04:00
..
CachedInterpreter JitBase: Centralize location of code buffer 2018-06-09 08:16:53 -04:00
Interpreter Gekko: Centralize bitmasking of the FPSCR within UReg_FPSCR 2018-06-12 14:15:50 -04:00
Jit64 JitCommon/JitBase: Rename x86-specific logging define to be platform agnostic 2018-06-14 08:35:35 -04:00
Jit64Common Enable Accurate Double to Single Conversion 2018-06-04 11:49:12 -04:00
JitArm64 JitBase: Centralize location of code buffer 2018-06-09 08:16:53 -04:00
JitArmCommon
JitCommon Merge pull request #7116 from lioncash/log 2018-06-14 15:00:34 +02:00
SignatureDB PowerPC: Move MMU-specifics from PowerPC.h to MMU.h 2018-05-17 19:18:55 -04:00
BreakPoints.cpp BreakPoints: Make OverlapsMemcheck() a const member function 2018-05-22 09:42:20 -04:00
BreakPoints.h BreakPoints: Make OverlapsMemcheck() a const member function 2018-05-22 09:42:20 -04:00
CPUCoreBase.h
GDBStub.cpp
GDBStub.h
Gekko.h Gekko: Centralize bitmasking of the FPSCR within UReg_FPSCR 2018-06-12 14:15:50 -04:00
JitInterface.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
JitInterface.h PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
MMU.cpp Gekko: Make register constructors explicit where applicable 2018-06-03 12:37:17 -04:00
MMU.h PowerPC: Move MMU-specifics from PowerPC.h to MMU.h 2018-05-17 19:18:55 -04:00
PowerPC.cpp PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
PowerPC.h PowerPC: Convert CPUCore enum into an enum class 2018-06-15 10:27:59 -04:00
PPCAnalyst.cpp PPCAnalyst: get rid of code buffer size variable 2018-06-09 08:17:17 -04:00
PPCAnalyst.h SymbolDB: Namespace code under the Common namespace 2018-05-27 18:01:40 -04:00
PPCCache.cpp
PPCCache.h
PPCSymbolDB.cpp SymbolDB: Namespace code under the Common namespace 2018-05-27 18:01:40 -04:00
PPCSymbolDB.h SymbolDB: Namespace code under the Common namespace 2018-05-27 18:01:40 -04:00
PPCTables.cpp
PPCTables.h
Profiler.cpp
Profiler.h