[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 07/16] plugins/execlog.c: correct dump of registers values
From: |
Alex Bennée |
Subject: |
[PULL 07/16] plugins/execlog.c: correct dump of registers values |
Date: |
Mon, 22 Jul 2024 12:04:04 +0100 |
From: Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
Register values are dumped as 'sz' chunks of two nibbles in the execlog
plugin, sz was 1 too big.
Signed-off-by: Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240620083805.73603-1-frederic.petrot@univ-grenoble-alpes.fr>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240718094523.1198645-8-alex.bennee@linaro.org>
diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c
index 371db97eb1..1c1601cc0b 100644
--- a/contrib/plugins/execlog.c
+++ b/contrib/plugins/execlog.c
@@ -101,7 +101,7 @@ static void insn_check_regs(CPU *cpu)
GByteArray *temp = reg->last;
g_string_append_printf(cpu->last_exec, ", %s -> 0x", reg->name);
/* TODO: handle BE properly */
- for (int i = sz; i >= 0; i--) {
+ for (int i = sz - 1; i >= 0; i--) {
g_string_append_printf(cpu->last_exec, "%02x",
reg->new->data[i]);
}
--
2.39.2
- [PULL 00/16] Final bits for 9.1-rc0 (docker, plugins, gdbstub, semihosting), Alex Bennée, 2024/07/22
- [PULL 01/16] testing: bump to latest libvirt-ci, Alex Bennée, 2024/07/22
- [PULL 02/16] tests/avocado: Remove non-working sparc leon3 test, Alex Bennée, 2024/07/22
- [PULL 04/16] plugins/stoptrigger: TCG plugin to stop execution under conditions, Alex Bennée, 2024/07/22
- [PULL 03/16] gdbstub: Re-factor gdb command extensions, Alex Bennée, 2024/07/22
- [PULL 07/16] plugins/execlog.c: correct dump of registers values,
Alex Bennée <=
- [PULL 05/16] plugins: fix mem callback array size, Alex Bennée, 2024/07/22
- [PULL 09/16] target/m68k: Add semihosting stub, Alex Bennée, 2024/07/22
- [PULL 08/16] semihosting: Include missing 'gdbstub/syscalls.h' header, Alex Bennée, 2024/07/22
- [PULL 12/16] target/mips: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- [PULL 16/16] tests/tcg/aarch64: Fix test-mte.py, Alex Bennée, 2024/07/22
- [PULL 06/16] tests/plugins: use qemu_plugin_outs for inline stats, Alex Bennée, 2024/07/22
- [PULL 10/16] target/mips: Add semihosting stub, Alex Bennée, 2024/07/22
- [PULL 15/16] semihosting: Restrict to TCG, Alex Bennée, 2024/07/22
- [PULL 11/16] target/m68k: Restrict semihosting to TCG, Alex Bennée, 2024/07/22
- [PULL 14/16] target/xtensa: Restrict semihosting to TCG, Alex Bennée, 2024/07/22