mbox series

[0/2] target/riscv: fixup atomic implementation

Message ID 20200629130731.1080-1-zhiwei_liu@c-sky.com (mailing list archive)
Headers show
Series target/riscv: fixup atomic implementation | expand

Message

LIU Zhiwei June 29, 2020, 1:07 p.m. UTC
When I tested RVA with RISU, I found there is something wrong.
In particular, amo*.w instructions should only operate the lowerest 32
bits. However, the current implementation uses the whole XLEN bits.

LIU Zhiwei (2):
  tcg/tcg-op: Fix nonatomic_op load with MO_SIGN
  target/riscv: Do amo*.w insns operate with 32 bits

 target/riscv/insn_trans/trans_rva.inc.c | 60 +++++++++++++++++++------
 tcg/tcg-op.c                            |  4 +-
 2 files changed, 49 insertions(+), 15 deletions(-)