test: trigger SIGSEGV instead of SIGTRAP in issue11656.go
test: trigger SIGSEGV instead of SIGTRAP in issue11656.go

In issue11656.go, it tests that if the runtime can get a
reasonable traceback when it faults at a non-function PC. It does
it by jumping to an address that contains an illegal or trap
instruction. When it traps, the SIGTRAP crashes the runtime.

This CL changes it to use an instruction that triggers SIGSEGV.
This is due to two reasons:
- currently, the handling of bad PC is done by preparePanic,
  which is only used for a panicking signal (SIGSEGV, SIGBUS,
  SIGFPE), not a fatal signal (e.g. SIGTRAP).
- the test uses defer+recover to get a traceback, which only
  works for panicking signals, not fatal signals.

Ideally, we should handle all kinds of faults (SIGSEGV, SIGBUS,
SIGILL, SIGTRAP, etc.) with a nice traceback. I'll leave this
for the future.

This CL also adds RISCV64 support.

Fixes #43283.

Change-Id: I5e0fbf8530cc89d16e05c3257d282bc1d4d03405
Reviewed-on: https://go-review.googlesource.com/c/go/+/279423
Trust: Cherry Zhang <d62e63aa42ce272d7b6a5055d97e942b33a34679@google.com>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

CAFxX/go,golang/go,nawawi/go,nawawi/go,CAFxX/go,nawawi/go,cloudflare/go,golang/go,golang/go,cloudflare/go,CAFxX/go,CAFxX/go,CAFxX/go,nawawi/go,nawawi/go,golang/go,CAFxX/go,nawawi/go,cloudflare/go,cloudflare/go,nawawi/go,cloudflare/go,golang/go,golang/go,golang/go,cloudflare/go,cloudflare/go,cloudflare/go,golang/go,nawawi/go,CAFxX/go,CAFxX/go