mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07: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:
committed by
Alistair Francis
parent
9ef792a78d
commit
dd9953a554
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user