Skip to content

Commit

Permalink
disas/nanomips: Expand Dis_info struct
Browse files Browse the repository at this point in the history
This patch expands the Dis_info struct, which should hold the
necessary data for handling runtime errors. Fields fprintf_func and
stream are in charge of error printing. Field buf enables the use of
sigsetjmp() and siglongjmp() functions. Support for runtime error
handling will be added later.

We're filling Dis_info at the entrance of the nanoMIPS disassembler,
i.e. print_insn_nanomips. Next, we're adding that information as an
argument wherever we need to.

Signed-off-by: Milica Lazarevic <milica.lazarevic@syrmia.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220912122635.74032-21-milica.lazarevic@syrmia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
  • Loading branch information
milica-lazarevic authored and philmd committed Oct 31, 2022
1 parent 49ec1c9 commit 3f2aec0
Showing 1 changed file with 1,357 additions and 1,351 deletions.

0 comments on commit 3f2aec0

Please sign in to comment.