riscv64: improve disassembler support for FENCE

This commit adds disassembler support for FENCE.TSO in both gnu and
plan9 disassembly. It also adds support for FENCE operands in plan9
disassembly. These were previously supported for gnu syntax
disassembly but not for plan9 disassembly. We also add a few more
checks to ensure that reserved FENCE encodings are decoded as full
fences, rather than say FENCE ,.

Change-Id: I89fb8cef3fc57a2dcd282bd9c4c27d63f47eaea0
Reviewed-on: https://go-review.googlesource.com/c/arch/+/762800
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
4 files changed
tree: 7a400dc2b03af4c87a62e3ace680a3368d1b5d0a
  1. arm/
  2. arm64/
  3. loong64/
  4. ppc64/
  5. riscv64/
  6. s390x/
  7. x86/
  8. codereview.cfg
  9. CONTRIBUTING.md
  10. go.mod
  11. go.sum
  12. LICENSE
  13. PATENTS
  14. README.md
README.md

arch

Go Reference

This repository holds machine architecture information used by the Go toolchain. The parts needed in the main Go repository are copied in.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/arch.

The main issue tracker for the arch repository is located at https://go.dev/issues. Prefix your issue with “x/arch:” in the subject line, so it is easy to find.