diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-06-09 19:04:45 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2016-06-09 19:04:45 -0700 |
commit | e9f43f8b92f921ec63288f38fffee1204d4e6d6d (patch) | |
tree | 442dc9c0cd404ba545575cf0d3e1200232937b53 /encoding.h | |
parent | 56696c7f53f7d67ecea8c5b5d3d1ba42dfaea586 (diff) | |
download | riscv-opcodes-e9f43f8b92f921ec63288f38fffee1204d4e6d6d.zip riscv-opcodes-e9f43f8b92f921ec63288f38fffee1204d4e6d6d.tar.gz riscv-opcodes-e9f43f8b92f921ec63288f38fffee1204d4e6d6d.tar.bz2 |
Update breakpoint spec
Diffstat (limited to 'encoding.h')
-rw-r--r-- | encoding.h | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -101,14 +101,21 @@ #define DRAM_BASE 0x80000000 // breakpoint control fields -#define BPCONTROL_X 0x00000001 -#define BPCONTROL_W 0x00000002 -#define BPCONTROL_R 0x00000004 -#define BPCONTROL_U 0x00000008 -#define BPCONTROL_S 0x00000010 -#define BPCONTROL_H 0x00000020 -#define BPCONTROL_M 0x00000040 -#define BPCONTROL_MATCHCOND 0x00000180 +#define BPCONTROL_X 0x00000001 +#define BPCONTROL_W 0x00000002 +#define BPCONTROL_R 0x00000004 +#define BPCONTROL_U 0x00000008 +#define BPCONTROL_S 0x00000010 +#define BPCONTROL_H 0x00000020 +#define BPCONTROL_M 0x00000040 +#define BPCONTROL_BPMATCH 0x00000780 +#ifdef __riscv64 +# define BPCONTROL_BPAMASKMAX 0x0F80000000000000 +# define BPCONTROL_TDRTYPE 0xF000000000000000 +#else +# define BPCONTROL_BPAMASKMAX 0x0F800000 +# define BPCONTROL_TDRTYPE 0xF0000000 +#endif // page table entry (PTE) fields #define PTE_V 0x001 // Valid |