From a005bf3023d6cee3af6d1c6064f891d07ebc57bc Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Fri, 31 May 2024 07:47:43 +0200 Subject: [PATCH] cpu/mipsx/mipsxdasm.cpp: fix compilation on Clang --- src/devices/cpu/mipsx/mipsxdasm.cpp | 2 +- src/devices/cpu/mipsx/mipsxdasm.h | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/devices/cpu/mipsx/mipsxdasm.cpp b/src/devices/cpu/mipsx/mipsxdasm.cpp index 26535a845e8..7705a666ccd 100644 --- a/src/devices/cpu/mipsx/mipsxdasm.cpp +++ b/src/devices/cpu/mipsx/mipsxdasm.cpp @@ -45,7 +45,7 @@ constexpr int get_compute_compfunc(u32 opcode) return BIT(opcode, 0, 12); } -constexpr int get_offset(u32 opcode) +[[maybe_unused]] constexpr int get_offset(u32 opcode) { return BIT(opcode, 0, 17); } diff --git a/src/devices/cpu/mipsx/mipsxdasm.h b/src/devices/cpu/mipsx/mipsxdasm.h index 96f788d4526..dd8e5562bf3 100644 --- a/src/devices/cpu/mipsx/mipsxdasm.h +++ b/src/devices/cpu/mipsx/mipsxdasm.h @@ -14,20 +14,6 @@ public: virtual u32 opcode_alignment() const override; virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer ¶ms) override; - -private: - int get_ty(u32 opcode); - int get_op(u32 opcode); - int get_src1(u32 opcode); - int get_src2_dest(u32 opcode); - int get_offset(u32 opcode); - int get_sq(u32 opcode); - int get_compute_dest(u32 opcode); - int get_compute_compfunc(u32 opcode); - int get_asr_amount(int shift); - int get_sh_amount(int shift); - - const char *get_regname(u8 reg); }; #endif