Skip to content

Commit

Permalink
target/mips: Declare gen_msa/_branch() in 'translate.h'
Browse files Browse the repository at this point in the history
Make gen_msa() and gen_msa_branch() public declarations
so we can keep calling them once extracted from the big
translate.c in the next commit.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201215225757.764263-18-f4bug@amsat.org>
Tested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
  • Loading branch information
philmd committed Jan 14, 2021
1 parent edb2384 commit 54ccff5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/mips/translate.c
Expand Up @@ -28659,7 +28659,7 @@ static bool gen_msa_BxZ(DisasContext *ctx, int df, int wt, int s16, bool if_not)
return true;
}

static void gen_msa_branch(DisasContext *ctx, uint32_t op1)
void gen_msa_branch(DisasContext *ctx, uint32_t op1)
{
uint8_t df = (ctx->opcode >> 21) & 0x3;
uint8_t wt = (ctx->opcode >> 16) & 0x1f;
Expand Down Expand Up @@ -30435,7 +30435,7 @@ static void gen_msa_vec(DisasContext *ctx)
}
}

static void gen_msa(DisasContext *ctx)
void gen_msa(DisasContext *ctx)
{
uint32_t opcode = ctx->opcode;

Expand Down
2 changes: 2 additions & 0 deletions target/mips/translate.h
Expand Up @@ -174,5 +174,7 @@ extern TCGv bcond;

/* MSA */
void msa_translate_init(void);
void gen_msa(DisasContext *ctx);
void gen_msa_branch(DisasContext *ctx, uint32_t op1);

#endif

0 comments on commit 54ccff5

Please sign in to comment.