From 4f4786166977029669ee5180bac63d1ff9a20625 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 24 May 2019 02:29:20 -0400 Subject: [PATCH] A64/translate/impl: Mark DecodeBitMasks and AdvSIMDExpandImm as static These don't rely on instance state to perform their behavior. They're just helper functions. --- src/frontend/A64/translate/impl/impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/A64/translate/impl/impl.h b/src/frontend/A64/translate/impl/impl.h index 3798f118..565cbb17 100644 --- a/src/frontend/A64/translate/impl/impl.h +++ b/src/frontend/A64/translate/impl/impl.h @@ -43,8 +43,8 @@ struct TranslatorVisitor final { u64 wmask, tmask; }; - std::optional DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate); - u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8); + static std::optional DecodeBitMasks(bool immN, Imm<6> imms, Imm<6> immr, bool immediate); + static u64 AdvSIMDExpandImm(bool op, Imm<4> cmode, Imm<8> imm8); IR::UAny I(size_t bitsize, u64 value); IR::UAny X(size_t bitsize, Reg reg);