mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-26 19:42:33 -06:00
plugins/execlog.c: correct dump of registers values
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>
This commit is contained in:
parent
2d4f2c8cde
commit
8d073d48b7
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ static void insn_check_regs(CPU *cpu)
|
||||||
GByteArray *temp = reg->last;
|
GByteArray *temp = reg->last;
|
||||||
g_string_append_printf(cpu->last_exec, ", %s -> 0x", reg->name);
|
g_string_append_printf(cpu->last_exec, ", %s -> 0x", reg->name);
|
||||||
/* TODO: handle BE properly */
|
/* 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",
|
g_string_append_printf(cpu->last_exec, "%02x",
|
||||||
reg->new->data[i]);
|
reg->new->data[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue