Skip to content

Commit

Permalink
Change pollentropy temporary opcode.
Browse files Browse the repository at this point in the history
- It clashed with sha256.sum1

 On branch dev/next-release
 Your branch is up-to-date with 'origin/dev/next-release'.

 Changes to be committed:
	modified:   sail/riscv_insts_crypto.sail
	modified:   tools/opcodes-crypto-scalar
	modified:   tools/patch-binutils.patch
	modified:   tools/patch-spike.patch

 Changes not staged for commit:
	modified:   extern/riscv-gnu-toolchain (modified content, untracked content)
	modified:   extern/riscv-isa-sim (modified content)
  • Loading branch information
ben-marshall committed Sep 3, 2020
1 parent d22e5be commit bf86ef1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sail/riscv_insts_crypto.sail
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ union clause ast = POLLENTROPY : (bits(5),regidx)

/* Encode / decode mapping for pollentropy */
mapping clause encdec = POLLENTROPY (shamtw,rd) <->
0b0000111 @ shamtw @ 0b01010111 @ rd @ 0b0101011
0b0001111 @ shamtw @ 0b01010111 @ rd @ 0b0101011

/* Assembly string mapping for pollentropy */
mapping clause assembly = POLLENTROPY (shamtw,rd) <->
Expand Down
2 changes: 1 addition & 1 deletion tools/opcodes-crypto-scalar
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ ssha512.sum0 rd rs1 31..25=7 24..20=6 14..12=7 6..0=0x2B
ssha512.sum1 rd rs1 31..25=7 24..20=7 14..12=7 6..0=0x2B

# Poll Entropy Instruction
pollentropy rd shamtw 31..25=7 19..15=10 14..12=7 6..0=0x2B
pollentropy rd shamtw 31..25=15 19..15=10 14..12=7 6..0=0x2B

2 changes: 1 addition & 1 deletion tools/patch-binutils.patch
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ index 6c750a33b1..2748204cf2 100644
+#define MASK_SSHA512_SUM0 0xfff0707f
+#define MATCH_SSHA512_SUM1 0xe70702b
+#define MASK_SSHA512_SUM1 0xfff0707f
+#define MATCH_POLLENTROPY 0xe05702b
+#define MATCH_POLLENTROPY 0x1e05702b
+#define MASK_POLLENTROPY 0xfe0ff07f
+// Crypto ISE - end
#define MATCH_FSLW 0x400103b
Expand Down
2 changes: 1 addition & 1 deletion tools/patch-spike.patch
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ index 3c4bf1c..714d88b 100644
+#define MASK_SSHA512_SUM0 0xfff0707f
+#define MATCH_SSHA512_SUM1 0xe70702b
+#define MASK_SSHA512_SUM1 0xfff0707f
+#define MATCH_POLLENTROPY 0xe05702b
+#define MATCH_POLLENTROPY 0x1e05702b
+#define MASK_POLLENTROPY 0xfe0ff07f
+// Crypto ISE - end
#define MATCH_AMOADD_W 0x202f
Expand Down

0 comments on commit bf86ef1

Please sign in to comment.