diff options
| author | Frédéric Pétrot <frederic.petrot@univ-grenoble-alpes.fr> | 2024-07-18 10:45:15 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2024-07-22 09:38:01 +0100 |
| commit | 8d073d48b7eae34dad6ec71d6d0ef418d931602b (patch) | |
| tree | 97c0098c1a386ddb2d0c05bef128877edeb7ba8e /contrib/plugins/execlog.c | |
| parent | 2d4f2c8cde67820ce3f6138313fa2d6455681384 (diff) | |
| download | focaccia-qemu-8d073d48b7eae34dad6ec71d6d0ef418d931602b.tar.gz focaccia-qemu-8d073d48b7eae34dad6ec71d6d0ef418d931602b.zip | |
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>
Diffstat (limited to 'contrib/plugins/execlog.c')
| -rw-r--r-- | contrib/plugins/execlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); } |