diff --git a/InstructionSets/M68k/Instruction.hpp b/InstructionSets/M68k/Instruction.hpp index ce211dbec..314729f8d 100644 --- a/InstructionSets/M68k/Instruction.hpp +++ b/InstructionSets/M68k/Instruction.hpp @@ -104,9 +104,9 @@ enum class Operation: uint8_t { Max = RESET }; -template -constexpr bool requires_supervisor(Operation r_op = Operation::Undefined) { - switch(t_op != Operation::Undefined ? t_op : r_op) { +template +constexpr bool requires_supervisor(Operation op) { + switch(op) { case Operation::MOVEfromSR: if constexpr (model == Model::M68000) { return false;