[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 4/5] target/riscv: progressively load the instruction duri
Re: [PATCH v1 4/5] target/riscv: progressively load the instruction during decode
Tue, 11 Feb 2020 10:00:57 -0800
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
On 2/7/20 7:01 AM, Alex Bennée wrote:
> The plugin system would throw up a harmless warning when it detected
> that a disassembly of an instruction didn't use all it's bytes. Fix
> the riscv decoder to only load the instruction bytes it needs as it
> needs them.
> This drops opcode from the ctx in favour if passing the appropriately
> sized opcode down a few levels of the decode.
> Signed-off-by: Alex Bennée <address@hidden>
> target/riscv/translate.c | 39 ++++++++++++++++++++-------------------
> 1 file changed, 20 insertions(+), 19 deletions(-)
Reviewed-by: Richard Henderson <address@hidden>