projects
/
riscv-isa-sim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
temporary undoing of renaming
[riscv-isa-sim.git]
/
riscv
/
insns
/
amomax_d.h
diff --git a/riscv/insns/amomax_d.h
b/riscv/insns/amomax_d.h
new file mode 100644
(file)
index 0000000..
1a0bc8a
--- /dev/null
+++ b/
riscv/insns/amomax_d.h
@@ -0,0
+1,4
@@
+require_xpr64;
+sreg_t v = mmu.load_int64(RS1);
+mmu.store_uint64(RS1, std::max(sreg_t(RS2),v));
+RD = v;