target: use 'ULL' suffix for long constants
On 32 bit hosts, gcc should consider constants without suffix as 32 bits values. Use the suffix 'ULL' to guarantee it is a 64 bit. Detected through 'sparse' tool. Change-Id: I205ca986968fef9a536f87492d1f6c80e41829f3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7601 Tested-by: jenkins
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#undef LOWER16
|
||||
#define UPPER16(v) ((uint32_t)((v >> 16) & 0xFFFF))
|
||||
#define LOWER16(v) ((uint32_t)(v & 0xFFFF))
|
||||
#define MIPS64_PRACC_FASTDATA_AREA 0xffffffffFF200000
|
||||
#define MIPS64_PRACC_FASTDATA_AREA 0xffffffffFF200000ull
|
||||
#define MIPS64_PRACC_FASTDATA_SIZE 16
|
||||
#define MIPS64_FASTDATA_HANDLER_SIZE 0x80
|
||||
|
||||
|
||||
Reference in New Issue
Block a user