diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-14 02:14:50 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-05-14 02:15:40 -0700 |
commit | c177bd3efcfc88596b99f4c90bfc5ffe0ae764e5 (patch) | |
tree | 00a832a55e727df4a71f548dd08db1a8962fe055 | |
parent | fc8ac29790a09f6b5ab6ac1c0ceb27eaecd68b8e (diff) | |
download | riscv-opcodes-c177bd3efcfc88596b99f4c90bfc5ffe0ae764e5.zip riscv-opcodes-c177bd3efcfc88596b99f4c90bfc5ffe0ae764e5.tar.gz riscv-opcodes-c177bd3efcfc88596b99f4c90bfc5ffe0ae764e5.tar.bz2 |
Fix VM, MIP encoding
-rw-r--r-- | encoding.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -31,9 +31,9 @@ #define MIP_SSIP 0x00000002 #define MIP_HSIP 0x00000004 #define MIP_MSIP 0x00000008 -#define MIP_STIP 0x00000200 -#define MIP_HTIP 0x00000400 -#define MIP_MTIP 0x00000800 +#define MIP_STIP 0x00000020 +#define MIP_HTIP 0x00000040 +#define MIP_MTIP 0x00000080 #define SIP_SSIP MIP_SSIP #define SIP_STIP MIP_STIP @@ -46,9 +46,9 @@ #define VM_MBARE 0 #define VM_MBB 1 #define VM_MBBID 2 -#define VM_SV32 4 -#define VM_SV39 5 -#define VM_SV48 6 +#define VM_SV32 8 +#define VM_SV39 9 +#define VM_SV48 10 #define UA_RV32 0 #define UA_RV64 4 |