1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-11 22:56:20 +00:00

Slightly fleshes out models, for a sensible beginning.

This commit is contained in:
Thomas Harte 2021-01-01 17:36:47 -05:00
parent 3d1783ddae
commit a41be61f99

View File

@ -17,7 +17,12 @@ namespace Decoder {
namespace PowerPC { namespace PowerPC {
enum class Model { enum class Model {
/// i.e. 32-bit, with POWER carry-over instructions.
MPC601, MPC601,
/// i.e. 32-bit, no POWER instructions.
MPC603,
/// i.e. 64-bit.
MPC620,
}; };
enum class Operation: uint8_t { enum class Operation: uint8_t {
@ -198,11 +203,11 @@ struct Decoder {
Model model_; Model model_;
bool is64bit() { bool is64bit() {
return false; return model_ == Model::MPC620;
} }
bool is32bit() { bool is32bit() {
return true; return !is64bit();
} }
bool is601() { bool is601() {