From: Tim Newsome Date: Tue, 9 Jan 2018 20:29:34 +0000 (-0800) Subject: Use new debug_defines.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11780eabc0147a58c575d089c4afe5732b55bb05;p=riscv-isa-sim.git Use new debug_defines.h. --- diff --git a/riscv/debug_defines.h b/riscv/debug_defines.h index 1d3e1c0..58826f0 100644 --- a/riscv/debug_defines.h +++ b/riscv/debug_defines.h @@ -295,7 +295,7 @@ * * Other values are reserved for future use. */ -#define CSR_TDATA1_TYPE_OFFSET XLEN-4 +#define CSR_TDATA1_TYPE_OFFSET (XLEN-4) #define CSR_TDATA1_TYPE_LENGTH 4 #define CSR_TDATA1_TYPE (0xfULL << CSR_TDATA1_TYPE_OFFSET) /* @@ -307,14 +307,14 @@ * * This bit is only writable from Debug Mode. */ -#define CSR_TDATA1_DMODE_OFFSET XLEN-5 +#define CSR_TDATA1_DMODE_OFFSET (XLEN-5) #define CSR_TDATA1_DMODE_LENGTH 1 #define CSR_TDATA1_DMODE (0x1ULL << CSR_TDATA1_DMODE_OFFSET) /* * Trigger-specific data. */ #define CSR_TDATA1_DATA_OFFSET 0 -#define CSR_TDATA1_DATA_LENGTH XLEN - 5 +#define CSR_TDATA1_DATA_LENGTH (XLEN - 5) #define CSR_TDATA1_DATA (((1L<