0048-fix-incorrect-shfli-and-unshfli-opcode.patch 867 B

12345678910111213141516171819202122232425262728
  1. From 121340d222814e74833c6cce8be887c20af20769 Mon Sep 17 00:00:00 2001
  2. From: "max.ma" <max.ma@starfivetech.com>
  3. Date: Wed, 30 Jun 2021 23:19:07 -0700
  4. Subject: [PATCH 48/48] fix incorrect shfli and unshfli opcode
  5. ---
  6. include/opcode/riscv-opc.h | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. diff --git a/include/opcode/riscv-opc.h b/include/opcode/riscv-opc.h
  9. index d481d5e2e6..12cc31ec45 100644
  10. --- a/include/opcode/riscv-opc.h
  11. +++ b/include/opcode/riscv-opc.h
  12. @@ -308,9 +308,9 @@
  13. #define MATCH_BFP 0x48007033
  14. #define MASK_BFP 0xfe00707f
  15. #define MATCH_SHFLI 0x8001013
  16. -#define MASK_SHFLI 0xfe00707f
  17. +#define MASK_SHFLI 0xfc00707f
  18. #define MATCH_UNSHFLI 0x8005013
  19. -#define MASK_UNSHFLI 0xfe00707f
  20. +#define MASK_UNSHFLI 0xfc00707f
  21. #define MATCH_BMATFLIP 0x60301013
  22. #define MASK_BMATFLIP 0xfff0707f
  23. #define MATCH_CRC32_D 0x61301013
  24. --
  25. 2.33.0