]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/avr: Fix buffer read in avr_print_insn
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 23 Mar 2025 01:43:36 +0000 (18:43 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 5 Apr 2025 13:47:01 +0000 (16:47 +0300)
commitfa7638d8c117bf6c4fa68509c58e5765db2798d7
treee528547696b59f0bf188731e1b8f3512f3704d63
parent358f7c68920e1aa6fbd4f1f68d9265b33d0bda55
target/avr: Fix buffer read in avr_print_insn

Do not unconditionally attempt to read 4 bytes, as there
may only be 2 bytes remaining in the translator cache.

Cc: qemu-stable@nongnu.org
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250325224403.4011975-2-richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 070a500cc0da70c1b4c62a6c95e41f0a1b19dc0b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/avr/disas.c