Skip to content

Commit

Permalink
target/mips/translate: Make gen_rdhwr() public
Browse files Browse the repository at this point in the history
We will use gen_rdhwr() outside of translate.c, make it public.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210214175912.732946-28-f4bug@amsat.org>
  • Loading branch information
philmd committed Mar 13, 2021
1 parent 1f9408d commit f9fa53f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion target/mips/translate.c
Expand Up @@ -12349,7 +12349,7 @@ static void gen_flt3_arith(DisasContext *ctx, uint32_t opc,
}
}

static void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel)
void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel)
{
TCGv t0;

Expand Down
2 changes: 2 additions & 0 deletions target/mips/translate.h
Expand Up @@ -148,6 +148,8 @@ void gen_op_addr_add(DisasContext *ctx, TCGv ret, TCGv arg0, TCGv arg1);
bool gen_lsa(DisasContext *ctx, int rd, int rt, int rs, int sa);
bool gen_dlsa(DisasContext *ctx, int rd, int rt, int rs, int sa);

void gen_rdhwr(DisasContext *ctx, int rt, int rd, int sel);

extern TCGv cpu_gpr[32], cpu_PC;
#if defined(TARGET_MIPS64)
extern TCGv_i64 cpu_gpr_hi[32];
Expand Down

0 comments on commit f9fa53f

Please sign in to comment.