mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
target/riscv: Move insn_len to internals.h
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20250425152311.804338-7-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
9ef792a78d
commit
dd9953a554
2 changed files with 5 additions and 5 deletions
|
@ -201,4 +201,9 @@ static inline target_ulong adjust_addr_virt(CPURISCVState *env,
|
|||
return adjust_addr_body(env, addr, true);
|
||||
}
|
||||
|
||||
static inline int insn_len(uint16_t first_word)
|
||||
{
|
||||
return (first_word & 3) == 3 ? 4 : 2;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1209,11 +1209,6 @@ static uint32_t opcode_at(DisasContextBase *dcbase, target_ulong pc)
|
|||
/* The specification allows for longer insns, but not supported by qemu. */
|
||||
#define MAX_INSN_LEN 4
|
||||
|
||||
static inline int insn_len(uint16_t first_word)
|
||||
{
|
||||
return (first_word & 3) == 3 ? 4 : 2;
|
||||
}
|
||||
|
||||
const RISCVDecoder decoder_table[] = {
|
||||
{ always_true_p, decode_insn32 },
|
||||
{ has_xthead_p, decode_xthead},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue