aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/sc_d.h
blob: aeeabd350d36e0c98e2c76bf02dc8adc1f87905b (plain)
1
2
3
4
5
6
7
8
9
10
11
require_extension('A');
require_rv64;
if (MMU.check_load_reservation(RS1))
{
  MMU.store_uint64(RS1, RS2);
  WRITE_RD(0);
}
else
  WRITE_RD(1);

MMU.yield_load_reservation();