Skip to content
Snippets Groups Projects
Commit b4c32caf authored by Anton Johansson's avatar Anton Johansson Committed by Anton
Browse files

Fixed bug in dump function


Commas weren't printed correctly for constants

Signed-off-by: default avatarAnton Johansson <anjo@rev.ng>
parent e718c206
No related branches found
No related tags found
No related merge requests found
......@@ -164,15 +164,13 @@ void libtcg_dump_instruction_to_buffer(LibTinyCodeInstruction *insn, char *buf,
(void) ldst_name;
(void) cond_name;
uint32_t start_index = 0;
/*
* The first constant argument might need some special treatment
* depending on the instruction.
*/
for (uint32_t i = 0; i < insn->nb_cargs; ++i) {
if (i > 0) {
if (i > 0 || insn->nb_oargs > 0 || insn->nb_iargs > 0) {
fmt_append_to_stringbuffer(&buffer, ",");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment