cpu/mipsx/mipsxdasm.cpp: fix compilation on Clang

This commit is contained in:
Ivan Vangelista 2024-05-31 07:47:43 +02:00
parent d77c0ae185
commit a005bf3023
2 changed files with 1 additions and 15 deletions

View File

@ -45,7 +45,7 @@ constexpr int get_compute_compfunc(u32 opcode)
return BIT(opcode, 0, 12); return BIT(opcode, 0, 12);
} }
constexpr int get_offset(u32 opcode) [[maybe_unused]] constexpr int get_offset(u32 opcode)
{ {
return BIT(opcode, 0, 17); return BIT(opcode, 0, 17);
} }

View File

@ -14,20 +14,6 @@ public:
virtual u32 opcode_alignment() const override; virtual u32 opcode_alignment() const override;
virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params) override; virtual offs_t disassemble(std::ostream &stream, offs_t pc, const data_buffer &opcodes, const data_buffer &params) 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 #endif