diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2020-11-29 21:17:46 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-14 17:13:53 +0100 |
commit | 54ccff51022fcb93d8b3febe18c2bd663ce15ed9 (patch) | |
tree | ac2b556f6311b64991a24a99753ff11fa215f40e /target | |
parent | edb23847283341bc22ed3830edb21647f49d15dd (diff) | |
download | qemu-54ccff51022fcb93d8b3febe18c2bd663ce15ed9.zip qemu-54ccff51022fcb93d8b3febe18c2bd663ce15ed9.tar.gz qemu-54ccff51022fcb93d8b3febe18c2bd663ce15ed9.tar.bz2 |
target/mips: Declare gen_msa/_branch() in 'translate.h'
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/mips/translate.c | 4 | ||||
-rw-r--r-- | target/mips/translate.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index 6741862..0f1f89a 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -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; @@ -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; diff --git a/target/mips/translate.h b/target/mips/translate.h index 190d415..ea9c180 100644 --- a/target/mips/translate.h +++ b/target/mips/translate.h @@ -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 |