0045-Fix-sim-build-since-op-match_func-have-more-argument.patch 772 B

12345678910111213141516171819202122232425
  1. From baabe8640ae726f4244ba08713bf2312a5ea1be3 Mon Sep 17 00:00:00 2001
  2. From: Nelson Chu <nelson.chu@sifive.com>
  3. Date: Mon, 21 Dec 2020 15:12:42 +0800
  4. Subject: [PATCH 45/48] Fix sim build since op->match_func have more arguments.
  5. ---
  6. sim/riscv/sim-main.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/sim/riscv/sim-main.c b/sim/riscv/sim-main.c
  9. index d773a35cb5..037e1641fb 100644
  10. --- a/sim/riscv/sim-main.c
  11. +++ b/sim/riscv/sim-main.c
  12. @@ -2220,7 +2220,7 @@ void step_once (SIM_CPU *cpu)
  13. for (; op->name; op++)
  14. {
  15. /* Does the opcode match? */
  16. - if (!(op->match_func) (op, iw))
  17. + if (!(op->match_func) (op, iw, 0, NULL))
  18. continue;
  19. /* Is this a pseudo-instruction? */
  20. if ((op->pinfo & INSN_ALIAS))
  21. --
  22. 2.33.0