1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

No need for this hoop jumping here.

This commit is contained in:
Thomas Harte 2022-06-01 08:20:06 -04:00
parent 8e0fa3bb5f
commit 73815ba1dd

View File

@ -104,9 +104,9 @@ enum class Operation: uint8_t {
Max = RESET
};
template <Model model, Operation t_op = Operation::Undefined>
constexpr bool requires_supervisor(Operation r_op = Operation::Undefined) {
switch(t_op != Operation::Undefined ? t_op : r_op) {
template <Model model>
constexpr bool requires_supervisor(Operation op) {
switch(op) {
case Operation::MOVEfromSR:
if constexpr (model == Model::M68000) {
return false;