Keep DCSR_XDEBUGVER unsigned.
authorTim Newsome <tim@sifive.com>
Fri, 3 Jun 2016 22:07:04 +0000 (15:07 -0700)
committerTim Newsome <tim@sifive.com>
Fri, 3 Jun 2016 22:08:48 +0000 (15:08 -0700)
riscv/encoding.h

index 1d5fb0d618c7ebcf2d6350ad5ee9c85648940036..032626ea9f105d93d194877d43e48d1de65c3090 100644 (file)
@@ -33,7 +33,7 @@
 #define SSTATUS32_SD        0x80000000
 #define SSTATUS64_SD        0x8000000000000000
 
-#define DCSR_XDEBUGVER      (3<<30)
+#define DCSR_XDEBUGVER      (3U<<30)
 #define DCSR_NDRESET        (1<<29)
 #define DCSR_FULLRESET      (1<<28)
 #define DCSR_HWBPCOUNT      (0xfff<<16)