mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Slightly fleshes out models, for a sensible beginning.
This commit is contained in:
parent
3d1783ddae
commit
a41be61f99
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user