From a41be61f9941b887785bf1c7af67b5e08d536aba Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 1 Jan 2021 17:36:47 -0500 Subject: [PATCH] Slightly fleshes out models, for a sensible beginning. --- Processors/Decoders/PowerPC/PowerPC.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Processors/Decoders/PowerPC/PowerPC.hpp b/Processors/Decoders/PowerPC/PowerPC.hpp index 3dd214134..37d4ebb29 100644 --- a/Processors/Decoders/PowerPC/PowerPC.hpp +++ b/Processors/Decoders/PowerPC/PowerPC.hpp @@ -17,7 +17,12 @@ namespace Decoder { namespace PowerPC { enum class Model { + /// i.e. 32-bit, with POWER carry-over instructions. MPC601, + /// i.e. 32-bit, no POWER instructions. + MPC603, + /// i.e. 64-bit. + MPC620, }; enum class Operation: uint8_t { @@ -198,11 +203,11 @@ struct Decoder { Model model_; bool is64bit() { - return false; + return model_ == Model::MPC620; } bool is32bit() { - return true; + return !is64bit(); } bool is601() {