Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
disas: Fix tabs and braces in disas.c
Fix these before moving the file, for checkpatch.pl.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230510170812.663149-1-richard.henderson@linaro.org>
  • Loading branch information
rth7680 committed May 11, 2023
1 parent faf852d commit 619f02c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions disas.c
Expand Up @@ -226,11 +226,12 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code,
}

for (pc = code; size > 0; pc += count, size -= count) {
fprintf(out, "0x" TARGET_FMT_lx ": ", pc);
count = s.info.print_insn(pc, &s.info);
fprintf(out, "\n");
if (count < 0)
break;
fprintf(out, "0x" TARGET_FMT_lx ": ", pc);
count = s.info.print_insn(pc, &s.info);
fprintf(out, "\n");
if (count < 0) {
break;
}
if (size < count) {
fprintf(out,
"Disassembler disagrees with translator over instruction "
Expand Down

0 comments on commit 619f02c

Please sign in to comment.