From e0c757926743ee21f1a60b4b6948ca3eb895c373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 17 Dec 2017 13:31:25 +0100 Subject: Put qtmips_machine to machine namespace --- qtmips_machine/alu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qtmips_machine/alu.h') diff --git a/qtmips_machine/alu.h b/qtmips_machine/alu.h index 4d09013..1f89acf 100644 --- a/qtmips_machine/alu.h +++ b/qtmips_machine/alu.h @@ -6,6 +6,8 @@ #include #include +namespace machine { + // TODO Any other operations? We seems to be missing a lot of them. enum AluOp : std::uint8_t { ALU_OP_SLL = 0, @@ -47,6 +49,8 @@ std::uint32_t alu_operate(enum AluOp operation, std::uint32_t s, std::uint32_t t // Returns string representation of ALU instruction (internally used by Instruction::to_str) QString alu_str(enum AluOp operation, std::uint32_t s, std::uint32_t t, std::uint8_t sa); -Q_DECLARE_METATYPE(AluOp) +} + +Q_DECLARE_METATYPE(machine::AluOp) #endif // ALU_H -- cgit v1.2.3