aboutsummaryrefslogtreecommitdiff
path: root/riscv/encoding.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-13 16:42:02 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2014-01-13 16:42:02 -0800
commit77f281580773fe5217ae40bcf8a0f8bc05c28ded (patch)
tree79885362aa51ce842ec912ba4523f36620b1dce8 /riscv/encoding.h
parent7f457c47b339cc7c79f56bb277ed8ed989e88ae1 (diff)
downloadspike-77f281580773fe5217ae40bcf8a0f8bc05c28ded.zip
spike-77f281580773fe5217ae40bcf8a0f8bc05c28ded.tar.gz
spike-77f281580773fe5217ae40bcf8a0f8bc05c28ded.tar.bz2
Improve performance for branchy code
We now use a heavily unrolled loop as the software I$, which allows the host machine's branch target prediction to associate target PCs with unique-ish host PCs.
Diffstat (limited to 'riscv/encoding.h')
-rw-r--r--riscv/encoding.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/encoding.h b/riscv/encoding.h
index 48a0108..711ef7b 100644
--- a/riscv/encoding.h
+++ b/riscv/encoding.h
@@ -288,7 +288,7 @@
#define MASK_SRET 0xffffffff
#define MATCH_FNMADD_S 0x4f
#define MASK_FNMADD_S 0x600007f
-#define MATCH_JAL 0x67
+#define MATCH_JAL 0x6f
#define MASK_JAL 0x7f
#define MATCH_LWU 0x6003
#define MASK_LWU 0x707f
@@ -392,7 +392,7 @@
#define MASK_DIVU 0xfe00707f
#define MATCH_AMOSWAP_W 0x800202f
#define MASK_AMOSWAP_W 0xf800707f
-#define MATCH_JALR 0x6f
+#define MATCH_JALR 0x67
#define MASK_JALR 0x707f
#define MATCH_FSD 0x3027
#define MASK_FSD 0x707f