aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/amoand_w.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-01-20 20:37:22 -0800
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-01-20 20:37:22 -0800
commitf0063c2e8b2ba6ec5e0147121e5ee2d9ee3ad2a4 (patch)
tree456311a9256f664949b5cc958f224c13900b2347 /riscv/insns/amoand_w.h
parent21ce327f5d60d6805b5d9328b68f7ad2c261a859 (diff)
downloadspike-f0063c2e8b2ba6ec5e0147121e5ee2d9ee3ad2a4.zip
spike-f0063c2e8b2ba6ec5e0147121e5ee2d9ee3ad2a4.tar.gz
spike-f0063c2e8b2ba6ec5e0147121e5ee2d9ee3ad2a4.tar.bz2
[sim, pk, xcc, opcodes] great instruction renaming of 2011
Diffstat (limited to 'riscv/insns/amoand_w.h')
-rw-r--r--riscv/insns/amoand_w.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/amoand_w.h b/riscv/insns/amoand_w.h
new file mode 100644
index 0000000..18a9249
--- /dev/null
+++ b/riscv/insns/amoand_w.h
@@ -0,0 +1,3 @@
+reg_t v = mmu.load_int32(RS1);
+mmu.store_uint32(RS1, RS2 & v);
+RD = v;